Lines Matching refs:getResourceCount
357 SkASSERT(0 == cache->getResourceCount() && 0 == cache->getResourceBytes()); in Mock()
385 REPORTER_ASSERT(reporter, 4 == cache->getResourceCount()); in test_no_key()
397 REPORTER_ASSERT(reporter, 3 == cache->getResourceCount()); in test_no_key()
403 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_no_key()
409 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_no_key()
414 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); in test_no_key()
455 REPORTER_ASSERT(reporter, 4 == cache->getResourceCount()); in test_purge_unlocked()
470 REPORTER_ASSERT(reporter, 4 == cache->getResourceCount()); in test_purge_unlocked()
478 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_purge_unlocked()
486 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); in test_purge_unlocked()
526 REPORTER_ASSERT(reporter, 5 == cache->getResourceCount()); in test_budgeting()
539 REPORTER_ASSERT(reporter, 5 == cache->getResourceCount()); in test_budgeting()
554 REPORTER_ASSERT(reporter, 4 == cache->getResourceCount()); in test_budgeting()
568 REPORTER_ASSERT(reporter, 4 == cache->getResourceCount()); in test_budgeting()
578 REPORTER_ASSERT(reporter, 3 == cache->getResourceCount()); in test_budgeting()
592 REPORTER_ASSERT(reporter, 3 == cache->getResourceCount()); in test_budgeting()
603 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_budgeting()
610 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); in test_budgeting()
636 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_unbudgeted()
645 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_unbudgeted()
653 REPORTER_ASSERT(reporter, 3 == cache->getResourceCount()); in test_unbudgeted()
660 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_unbudgeted()
667 REPORTER_ASSERT(reporter, 3 == cache->getResourceCount()); in test_unbudgeted()
674 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_unbudgeted()
681 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); in test_unbudgeted()
709 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_unbudgeted_to_scratch()
717 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_unbudgeted_to_scratch()
736 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_unbudgeted_to_scratch()
748 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); in test_unbudgeted_to_scratch()
781 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_duplicate_scratch_key()
788 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_duplicate_scratch_key()
799 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); in test_duplicate_scratch_key()
827 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_remove_scratch_key()
836 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_remove_scratch_key()
842 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_remove_scratch_key()
849 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_remove_scratch_key()
855 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_remove_scratch_key()
860 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); in test_remove_scratch_key()
944 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_duplicate_unique_key()
955 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_duplicate_unique_key()
961 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_duplicate_unique_key()
972 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_duplicate_unique_key()
977 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_duplicate_unique_key()
983 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_duplicate_unique_key()
989 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_duplicate_unique_key()
997 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); in test_duplicate_unique_key()
1079 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); in test_purge_invalidated()
1224 REPORTER_ASSERT(reporter, cnt - i - 1 == cache->getResourceCount()); in test_time_purge()
1234 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); in test_time_purge()
1259 REPORTER_ASSERT(reporter, cnt - i / 2 - 1 == cache->getResourceCount()); in test_time_purge()
1266 REPORTER_ASSERT(reporter, cnt / 2 - i - 1 == cache->getResourceCount()); in test_time_purge()
1272 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); in test_time_purge()
1284 REPORTER_ASSERT(reporter, 10 == cache->getResourceCount()); in test_time_purge()
1286 REPORTER_ASSERT(reporter, 10 == cache->getResourceCount()); in test_time_purge()
1288 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); in test_time_purge()
1428 REPORTER_ASSERT(reporter, cache->getResourceCount() == 2 * kResourceCnt); in test_large_resource_count()
1444 REPORTER_ASSERT(reporter, cache->getResourceCount() == 0); in test_large_resource_count()