Lines Matching defs:cnt
26 static void check_allocator_helper(GrTAllocator<C>* allocator, int cnt, int popCnt,
29 // Adds cnt items to the allocator, tests the cnts and iterators, pops popCnt items and checks
31 static void check_allocator(GrTAllocator<C>* allocator, int cnt, int popCnt,
35 for (int i = 0; i < cnt; ++i) {
43 check_allocator_helper(allocator, cnt, popCnt, reporter);
50 static void check_allocator_helper(GrTAllocator<C>* allocator, int cnt, int popCnt,
52 REPORTER_ASSERT(reporter, (0 == cnt) == allocator->empty());
53 REPORTER_ASSERT(reporter, cnt == allocator->count());
54 REPORTER_ASSERT(reporter, cnt == C::gInstCnt);
57 for (int i = 0; i < cnt; ++i) {
61 if (cnt > 0) {
62 REPORTER_ASSERT(reporter, cnt-1 == allocator->back().fID);
69 check_allocator_helper(allocator, cnt - popCnt, 0, reporter);