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