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);
}