Lines Matching defs:cnt
56 static void check_allocator_helper(SkTBlockList<C, N>* allocator, int cnt, int popCnt,
58 REPORTER_ASSERT(reporter, (0 == cnt) == allocator->empty());
59 REPORTER_ASSERT(reporter, cnt == allocator->count());
60 REPORTER_ASSERT(reporter, cnt == C::gInstCnt);
68 REPORTER_ASSERT(reporter, i == cnt);
70 if (cnt > 0) {
71 REPORTER_ASSERT(reporter, cnt-1 == allocator->back().fID);
78 check_allocator_helper(allocator, cnt - popCnt, 0, reporter);
127 // Adds cnt items to the allocator, tests the cnts and iterators, pops popCnt items and checks
130 static void check_allocator(SkTBlockList<C, N>* allocator, int cnt, int popCnt,
144 for (int i = 0; i < cnt; ++i) {
165 check_allocator_helper(allocator, cnt, popCnt, reporter);