Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
skia
/
912ed6ebb8e2813e72ed7a3dec3b6710ba7e7405
/
.
/
tests
/
MemoryTest.cpp
blob: c7eff30a564bcbe6513dc1c4df844b0524ee36f9 [
file
] [
log
] [
blame
]
#include
"Test.h"
DEF_TEST
(
memory_calloc
,
reporter
)
{
const
size_t
kNum
=
200
;
char
*
zeros
=
(
char
*)
sk_calloc_throw
(
kNum
*
sizeof
(
char
));
for
(
size_t
i
=
0
;
i
<
kNum
;
i
++)
{
REPORTER_ASSERT
(
reporter
,
0
==
zeros
[
i
]);
}
sk_free
(
zeros
);
}