Home | History | Annotate | Download | only in tests

Lines Matching full:alloc

14     SkChunkAlloc alloc(min);
16 REPORTER_ASSERT(reporter, 0 == alloc.totalCapacity());
17 REPORTER_ASSERT(reporter, 0 == alloc.totalUsed());
18 REPORTER_ASSERT(reporter, 0 == alloc.blockCount());
19 REPORTER_ASSERT(reporter, !alloc.contains(NULL));
20 REPORTER_ASSERT(reporter, !alloc.contains(reporter));
22 alloc.reset();
23 REPORTER_ASSERT(reporter, 0 == alloc.totalCapacity());
24 REPORTER_ASSERT(reporter, 0 == alloc.totalUsed());
25 REPORTER_ASSERT(reporter, 0 == alloc.blockCount());
28 void* ptr = alloc.allocThrow(size);
29 REPORTER_ASSERT(reporter, alloc.totalCapacity() >= size);
30 REPORTER_ASSERT(reporter, alloc.totalUsed() == size);
31 REPORTER_ASSERT(reporter, alloc.blockCount() > 0);
32 REPORTER_ASSERT(reporter, alloc.contains(ptr));
34 alloc.reset();
35 REPORTER_ASSERT(reporter, !alloc.contains(ptr));
36 REPORTER_ASSERT(reporter, 0 == alloc.totalCapacity());
37 REPORTER_ASSERT(reporter, 0 == alloc.totalUsed());