Lines Matching full:alloc
15 SkChunkAlloc alloc(min);
17 REPORTER_ASSERT(reporter, 0 == alloc.totalCapacity());
18 REPORTER_ASSERT(reporter, 0 == alloc.totalUsed());
19 REPORTER_ASSERT(reporter, 0 == alloc.blockCount());
20 REPORTER_ASSERT(reporter, !alloc.contains(NULL));
21 REPORTER_ASSERT(reporter, !alloc.contains(reporter));
23 alloc.reset();
24 REPORTER_ASSERT(reporter, 0 == alloc.totalCapacity());
25 REPORTER_ASSERT(reporter, 0 == alloc.totalUsed());
26 REPORTER_ASSERT(reporter, 0 == alloc.blockCount());
29 void* ptr = alloc.allocThrow(size);
30 REPORTER_ASSERT(reporter, alloc.totalCapacity() >= size);
31 REPORTER_ASSERT(reporter, alloc.totalUsed() == size);
32 REPORTER_ASSERT(reporter, alloc.blockCount() > 0);
33 REPORTER_ASSERT(reporter, alloc.contains(ptr));
35 alloc.reset();
36 REPORTER_ASSERT(reporter, !alloc.contains(ptr));
37 REPORTER_ASSERT(reporter, 0 == alloc.totalCapacity());
38 REPORTER_ASSERT(reporter, 0 == alloc.totalUsed());