Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
skia
/
f27f1bcce50c8f95aea8469684a70b70c9baee09
/
.
/
tests
/
VarAllocTest.cpp
blob: 21534b29e070a0100c2f999986c25334e364ee7d [
file
] [
log
] [
blame
]
#include
"Test.h"
#include
"SkVarAlloc.h"
DEF_TEST
(
VarAlloc
,
r
)
{
SkVarAlloc
va
;
char
*
p
=
va
.
alloc
(
128
,
SK_MALLOC_THROW
);
sk_bzero
(
p
,
128
);
// Just checking this is safe.
REPORTER_ASSERT
(
r
,
va
.
approxBytesAllocated
()
>=
128
);
}