Sign in
skia
/
skia
/
6d467ecb8132914ea8a8d6b298d00f4c869e514f
/
.
/
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
);
}