Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
skia
/
f0b8bf35a8518ee8e76bd033758a9ea52fd31686
/
.
/
tests
/
MemoryTest.cpp
blob: 9e5d5d3b3f5803b52c5e4a97e1c241461e7838ab [
file
] [
log
] [
blame
]
#include
"tests/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
);
}