Lines Matching refs:alloc
14 SkChunkAlloc alloc(min);
16 REPORTER_ASSERT(reporter, 0 == alloc.totalCapacity());
17 REPORTER_ASSERT(reporter, 0 == alloc.blockCount());
18 REPORTER_ASSERT(reporter, !alloc.contains(NULL));
19 REPORTER_ASSERT(reporter, !alloc.contains(reporter));
21 alloc.reset();
22 REPORTER_ASSERT(reporter, 0 == alloc.totalCapacity());
23 REPORTER_ASSERT(reporter, 0 == alloc.blockCount());
26 void* ptr = alloc.allocThrow(size);
27 REPORTER_ASSERT(reporter, alloc.totalCapacity() >= size);
28 REPORTER_ASSERT(reporter, alloc.blockCount() > 0);
29 REPORTER_ASSERT(reporter, alloc.contains(ptr));
31 alloc.reset();
32 REPORTER_ASSERT(reporter, !alloc.contains(ptr));