Lines Matching refs:REPORTER_ASSERT
65 REPORTER_ASSERT(reporter, curCacheSize <= maxCacheSize); in test_cache()
91 REPORTER_ASSERT(reporter, in test_stencil_buffers()
102 REPORTER_ASSERT(reporter, in test_stencil_buffers()
119 REPORTER_ASSERT(reporter, in test_stencil_buffers()
139 REPORTER_ASSERT(reporter, in test_stencil_buffers()
149 REPORTER_ASSERT(reporter, in test_stencil_buffers()
165 REPORTER_ASSERT(reporter, in test_stencil_buffers()
302 REPORTER_ASSERT(reporter, 4 == TestResource::NumAlive()); in test_no_key()
303 REPORTER_ASSERT(reporter, 4 == cache->getResourceCount()); in test_no_key()
304 REPORTER_ASSERT(reporter, a->gpuMemorySize() + b->gpuMemorySize() + c->gpuMemorySize() + in test_no_key()
309 REPORTER_ASSERT(reporter, 4 == TestResource::NumAlive()); in test_no_key()
314 REPORTER_ASSERT(reporter, 3 == TestResource::NumAlive()); in test_no_key()
315 REPORTER_ASSERT(reporter, 3 == cache->getResourceCount()); in test_no_key()
316 REPORTER_ASSERT(reporter, b->gpuMemorySize() + c->gpuMemorySize() + d->gpuMemorySize() == in test_no_key()
320 REPORTER_ASSERT(reporter, 2 == TestResource::NumAlive()); in test_no_key()
321 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_no_key()
322 REPORTER_ASSERT(reporter, b->gpuMemorySize() + d->gpuMemorySize() == in test_no_key()
326 REPORTER_ASSERT(reporter, 1 == TestResource::NumAlive()); in test_no_key()
327 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_no_key()
328 REPORTER_ASSERT(reporter, b->gpuMemorySize() == cache->getResourceBytes()); in test_no_key()
331 REPORTER_ASSERT(reporter, 0 == TestResource::NumAlive()); in test_no_key()
332 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); in test_no_key()
333 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_no_key()
369 REPORTER_ASSERT(reporter, NULL == cache->findAndRefUniqueResource(uniqueKey2)); in test_budgeting()
372 REPORTER_ASSERT(reporter, 4 == cache->getResourceCount()); in test_budgeting()
373 REPORTER_ASSERT(reporter, scratch->gpuMemorySize() + unique->gpuMemorySize() + in test_budgeting()
376 REPORTER_ASSERT(reporter, 2 == cache->getBudgetedResourceCount()); in test_budgeting()
377 REPORTER_ASSERT(reporter, scratch->gpuMemorySize() + unique->gpuMemorySize() == in test_budgeting()
382 REPORTER_ASSERT(reporter, 4 == cache->getResourceCount()); in test_budgeting()
383 REPORTER_ASSERT(reporter, scratch->gpuMemorySize() + unique->gpuMemorySize() + in test_budgeting()
386 REPORTER_ASSERT(reporter, 2 == cache->getBudgetedResourceCount()); in test_budgeting()
387 REPORTER_ASSERT(reporter, scratch->gpuMemorySize() + unique->gpuMemorySize() == in test_budgeting()
392 REPORTER_ASSERT(reporter, 3 == cache->getResourceCount()); in test_budgeting()
393 REPORTER_ASSERT(reporter, scratch->gpuMemorySize() + unique->gpuMemorySize() + in test_budgeting()
401 REPORTER_ASSERT(reporter, 3 == cache->getResourceCount()); in test_budgeting()
402 REPORTER_ASSERT(reporter, scratch->gpuMemorySize() + wrapped->gpuMemorySize() + in test_budgeting()
404 REPORTER_ASSERT(reporter, 1 == cache->getBudgetedResourceCount()); in test_budgeting()
405 REPORTER_ASSERT(reporter, scratch->gpuMemorySize() == cache->getBudgetedResourceBytes()); in test_budgeting()
409 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_budgeting()
410 REPORTER_ASSERT(reporter, unbudgeted->gpuMemorySize() + wrapped->gpuMemorySize() == in test_budgeting()
412 REPORTER_ASSERT(reporter, 0 == cache->getBudgetedResourceCount()); in test_budgeting()
413 REPORTER_ASSERT(reporter, 0 == cache->getBudgetedResourceBytes()); in test_budgeting()
416 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_budgeting()
417 REPORTER_ASSERT(reporter, unbudgeted->gpuMemorySize() == cache->getResourceBytes()); in test_budgeting()
418 REPORTER_ASSERT(reporter, 0 == cache->getBudgetedResourceCount()); in test_budgeting()
419 REPORTER_ASSERT(reporter, 0 == cache->getBudgetedResourceBytes()); in test_budgeting()
422 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); in test_budgeting()
423 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_budgeting()
424 REPORTER_ASSERT(reporter, 0 == cache->getBudgetedResourceCount()); in test_budgeting()
425 REPORTER_ASSERT(reporter, 0 == cache->getBudgetedResourceBytes()); in test_budgeting()
445 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_unbudgeted()
446 REPORTER_ASSERT(reporter, 10 == cache->getResourceBytes()); in test_unbudgeted()
447 REPORTER_ASSERT(reporter, 1 == cache->getBudgetedResourceCount()); in test_unbudgeted()
448 REPORTER_ASSERT(reporter, 10 == cache->getBudgetedResourceBytes()); in test_unbudgeted()
454 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_unbudgeted()
455 REPORTER_ASSERT(reporter, 21 == cache->getResourceBytes()); in test_unbudgeted()
456 REPORTER_ASSERT(reporter, 2 == cache->getBudgetedResourceCount()); in test_unbudgeted()
457 REPORTER_ASSERT(reporter, 21 == cache->getBudgetedResourceBytes()); in test_unbudgeted()
462 REPORTER_ASSERT(reporter, 3 == cache->getResourceCount()); in test_unbudgeted()
463 REPORTER_ASSERT(reporter, 21 + large == cache->getResourceBytes()); in test_unbudgeted()
464 REPORTER_ASSERT(reporter, 2 == cache->getBudgetedResourceCount()); in test_unbudgeted()
465 REPORTER_ASSERT(reporter, 21 == cache->getBudgetedResourceBytes()); in test_unbudgeted()
468 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_unbudgeted()
469 REPORTER_ASSERT(reporter, 21 == cache->getResourceBytes()); in test_unbudgeted()
470 REPORTER_ASSERT(reporter, 2 == cache->getBudgetedResourceCount()); in test_unbudgeted()
471 REPORTER_ASSERT(reporter, 21 == cache->getBudgetedResourceBytes()); in test_unbudgeted()
475 REPORTER_ASSERT(reporter, 3 == cache->getResourceCount()); in test_unbudgeted()
476 REPORTER_ASSERT(reporter, 21 + large == cache->getResourceBytes()); in test_unbudgeted()
477 REPORTER_ASSERT(reporter, 2 == cache->getBudgetedResourceCount()); in test_unbudgeted()
478 REPORTER_ASSERT(reporter, 21 == cache->getBudgetedResourceBytes()); in test_unbudgeted()
481 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_unbudgeted()
482 REPORTER_ASSERT(reporter, 21 == cache->getResourceBytes()); in test_unbudgeted()
483 REPORTER_ASSERT(reporter, 2 == cache->getBudgetedResourceCount()); in test_unbudgeted()
484 REPORTER_ASSERT(reporter, 21 == cache->getBudgetedResourceBytes()); in test_unbudgeted()
487 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); in test_unbudgeted()
488 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_unbudgeted()
489 REPORTER_ASSERT(reporter, 0 == cache->getBudgetedResourceCount()); in test_unbudgeted()
490 REPORTER_ASSERT(reporter, 0 == cache->getBudgetedResourceBytes()); in test_unbudgeted()
508 REPORTER_ASSERT(reporter, resource->resourcePriv().getScratchKey() == key); in test_unbudgeted_to_scratch()
509 REPORTER_ASSERT(reporter, !resource->cacheAccess().isScratch()); in test_unbudgeted_to_scratch()
510 REPORTER_ASSERT(reporter, !resource->resourcePriv().isBudgeted()); in test_unbudgeted_to_scratch()
511 REPORTER_ASSERT(reporter, NULL == cache->findAndRefScratchResource(key)); in test_unbudgeted_to_scratch()
512 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_unbudgeted_to_scratch()
513 REPORTER_ASSERT(reporter, size == cache->getResourceBytes()); in test_unbudgeted_to_scratch()
514 REPORTER_ASSERT(reporter, 0 == cache->getBudgetedResourceCount()); in test_unbudgeted_to_scratch()
515 REPORTER_ASSERT(reporter, 0 == cache->getBudgetedResourceBytes()); in test_unbudgeted_to_scratch()
519 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_unbudgeted_to_scratch()
520 REPORTER_ASSERT(reporter, size == cache->getResourceBytes()); in test_unbudgeted_to_scratch()
521 REPORTER_ASSERT(reporter, 1 == cache->getBudgetedResourceCount()); in test_unbudgeted_to_scratch()
522 REPORTER_ASSERT(reporter, size == cache->getBudgetedResourceBytes()); in test_unbudgeted_to_scratch()
524 REPORTER_ASSERT(reporter, resource); in test_unbudgeted_to_scratch()
525 REPORTER_ASSERT(reporter, resource->resourcePriv().getScratchKey() == key); in test_unbudgeted_to_scratch()
526 REPORTER_ASSERT(reporter, resource->cacheAccess().isScratch()); in test_unbudgeted_to_scratch()
527 REPORTER_ASSERT(reporter, resource->resourcePriv().isBudgeted()); in test_unbudgeted_to_scratch()
536 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_unbudgeted_to_scratch()
537 REPORTER_ASSERT(reporter, size == cache->getResourceBytes()); in test_unbudgeted_to_scratch()
538 REPORTER_ASSERT(reporter, 1 == cache->getBudgetedResourceCount()); in test_unbudgeted_to_scratch()
539 REPORTER_ASSERT(reporter, size == cache->getBudgetedResourceBytes()); in test_unbudgeted_to_scratch()
540 REPORTER_ASSERT(reporter, !resource->resourcePriv().getScratchKey().isValid()); in test_unbudgeted_to_scratch()
541 REPORTER_ASSERT(reporter, !resource->cacheAccess().isScratch()); in test_unbudgeted_to_scratch()
542 REPORTER_ASSERT(reporter, resource->resourcePriv().isBudgeted()); in test_unbudgeted_to_scratch()
546 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); in test_unbudgeted_to_scratch()
547 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_unbudgeted_to_scratch()
548 REPORTER_ASSERT(reporter, 0 == cache->getBudgetedResourceCount()); in test_unbudgeted_to_scratch()
549 REPORTER_ASSERT(reporter, 0 == cache->getBudgetedResourceBytes()); in test_unbudgeted_to_scratch()
569 REPORTER_ASSERT(reporter, NULL == cache->findAndRefScratchResource(scratchKey1)); in test_duplicate_scratch_key()
575 REPORTER_ASSERT(reporter, 2 == TestResource::NumAlive()); in test_duplicate_scratch_key()
576 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key()
577 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_duplicate_scratch_key()
578 REPORTER_ASSERT(reporter, a->gpuMemorySize() + b->gpuMemorySize() == in test_duplicate_scratch_key()
583 REPORTER_ASSERT(reporter, 2 == TestResource::NumAlive()); in test_duplicate_scratch_key()
584 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_duplicate_scratch_key()
589 REPORTER_ASSERT(reporter, 2 == TestResource::NumAlive()); in test_duplicate_scratch_key()
590 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key()
594 REPORTER_ASSERT(reporter, 0 == TestResource::NumAlive()); in test_duplicate_scratch_key()
595 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); in test_duplicate_scratch_key()
596 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key()
616 REPORTER_ASSERT(reporter, cache->findAndRefScratchResource(scratchKey) == NULL); in test_remove_scratch_key()
620 REPORTER_ASSERT(reporter, 2 == TestResource::NumAlive()); in test_remove_scratch_key()
621 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
622 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_remove_scratch_key()
629 REPORTER_ASSERT(reporter, 2 == TestResource::NumAlive()); in test_remove_scratch_key()
630 SkDEBUGCODE(REPORTER_ASSERT(reporter, 1 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
631 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_remove_scratch_key()
635 REPORTER_ASSERT(reporter, 1 == TestResource::NumAlive()); in test_remove_scratch_key()
636 SkDEBUGCODE(REPORTER_ASSERT(reporter, 1 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
637 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_remove_scratch_key()
642 REPORTER_ASSERT(reporter, 1 == TestResource::NumAlive()); in test_remove_scratch_key()
643 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
644 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_remove_scratch_key()
648 REPORTER_ASSERT(reporter, 1 == TestResource::NumAlive()); in test_remove_scratch_key()
649 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
650 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_remove_scratch_key()
653 REPORTER_ASSERT(reporter, 0 == TestResource::NumAlive()); in test_remove_scratch_key()
654 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
655 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); in test_remove_scratch_key()
677 REPORTER_ASSERT(reporter, scratchKey1.size() == TestResource::ExpectedScratchKeySize()); in test_scratch_key_consistency()
678 REPORTER_ASSERT(reporter, scratchKey1 != scratchKey2); in test_scratch_key_consistency()
679 REPORTER_ASSERT(reporter, scratchKey2 != scratchKey1); in test_scratch_key_consistency()
681 REPORTER_ASSERT(reporter, scratchKey.size() == TestResource::ExpectedScratchKeySize()); in test_scratch_key_consistency()
682 REPORTER_ASSERT(reporter, scratchKey1 == scratchKey); in test_scratch_key_consistency()
683 REPORTER_ASSERT(reporter, scratchKey == scratchKey1); in test_scratch_key_consistency()
684 REPORTER_ASSERT(reporter, scratchKey2 != scratchKey); in test_scratch_key_consistency()
685 REPORTER_ASSERT(reporter, scratchKey != scratchKey2); in test_scratch_key_consistency()
687 REPORTER_ASSERT(reporter, scratchKey.size() == TestResource::ExpectedScratchKeySize()); in test_scratch_key_consistency()
688 REPORTER_ASSERT(reporter, scratchKey1 != scratchKey); in test_scratch_key_consistency()
689 REPORTER_ASSERT(reporter, scratchKey != scratchKey1); in test_scratch_key_consistency()
690 REPORTER_ASSERT(reporter, scratchKey2 == scratchKey); in test_scratch_key_consistency()
691 REPORTER_ASSERT(reporter, scratchKey == scratchKey2); in test_scratch_key_consistency()
696 REPORTER_ASSERT(reporter, cache->findAndRefScratchResource(scratchKey) == NULL); in test_scratch_key_consistency()
701 REPORTER_ASSERT(reporter, find != NULL); in test_scratch_key_consistency()
706 REPORTER_ASSERT(reporter, find != NULL); in test_scratch_key_consistency()
707 REPORTER_ASSERT(reporter, find == a || find == b); in test_scratch_key_consistency()
710 REPORTER_ASSERT(reporter, find2 != NULL); in test_scratch_key_consistency()
711 REPORTER_ASSERT(reporter, find2 == a || find2 == b); in test_scratch_key_consistency()
712 REPORTER_ASSERT(reporter, find2 != find); in test_scratch_key_consistency()
731 REPORTER_ASSERT(reporter, a == cache->findAndRefUniqueResource(key)); in test_duplicate_unique_key()
736 REPORTER_ASSERT(reporter, a == cache->findAndRefUniqueResource(key)); in test_duplicate_unique_key()
738 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_duplicate_unique_key()
739 REPORTER_ASSERT(reporter, a->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
740 REPORTER_ASSERT(reporter, 1 == TestResource::NumAlive()); in test_duplicate_unique_key()
746 REPORTER_ASSERT(reporter, b == cache->findAndRefUniqueResource(key)); in test_duplicate_unique_key()
750 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_duplicate_unique_key()
751 REPORTER_ASSERT(reporter, a->gpuMemorySize() + b->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
752 REPORTER_ASSERT(reporter, 2 == TestResource::NumAlive()); in test_duplicate_unique_key()
756 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_duplicate_unique_key()
757 REPORTER_ASSERT(reporter, b->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
758 REPORTER_ASSERT(reporter, 1 == TestResource::NumAlive()); in test_duplicate_unique_key()
768 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_duplicate_unique_key()
769 REPORTER_ASSERT(reporter, b->gpuMemorySize() + c->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
770 REPORTER_ASSERT(reporter, 2 == TestResource::NumAlive()); in test_duplicate_unique_key()
773 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_duplicate_unique_key()
774 REPORTER_ASSERT(reporter, c->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
775 REPORTER_ASSERT(reporter, 1 == TestResource::NumAlive()); in test_duplicate_unique_key()
779 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_duplicate_unique_key()
780 REPORTER_ASSERT(reporter, c->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
781 REPORTER_ASSERT(reporter, 1 == TestResource::NumAlive()); in test_duplicate_unique_key()
785 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_duplicate_unique_key()
786 REPORTER_ASSERT(reporter, c->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
787 REPORTER_ASSERT(reporter, 1 == TestResource::NumAlive()); in test_duplicate_unique_key()
790 REPORTER_ASSERT(reporter, c == cache->findAndRefUniqueResource(key)); in test_duplicate_unique_key()
793 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); in test_duplicate_unique_key()
794 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_duplicate_unique_key()
795 REPORTER_ASSERT(reporter, 0 == TestResource::NumAlive()); in test_duplicate_unique_key()
820 REPORTER_ASSERT(reporter, cache->hasUniqueKey(key1)); in test_purge_invalidated()
821 REPORTER_ASSERT(reporter, cache->hasUniqueKey(key2)); in test_purge_invalidated()
822 REPORTER_ASSERT(reporter, cache->hasUniqueKey(key3)); in test_purge_invalidated()
823 REPORTER_ASSERT(reporter, 3 == TestResource::NumAlive()); in test_purge_invalidated()
833 REPORTER_ASSERT(reporter, !cache->hasUniqueKey(key1)); in test_purge_invalidated()
834 REPORTER_ASSERT(reporter, !cache->hasUniqueKey(key2)); in test_purge_invalidated()
835 REPORTER_ASSERT(reporter, 2 == TestResource::NumAlive()); in test_purge_invalidated()
836 REPORTER_ASSERT(reporter, cache->hasUniqueKey(key3)); in test_purge_invalidated()
842 REPORTER_ASSERT(reporter, 2 == TestResource::NumAlive()); in test_purge_invalidated()
843 REPORTER_ASSERT(reporter, !cache->hasUniqueKey(key3)); in test_purge_invalidated()
847 REPORTER_ASSERT(reporter, 1 == TestResource::NumAlive()); in test_purge_invalidated()
853 REPORTER_ASSERT(reporter, scratch == c); in test_purge_invalidated()
859 REPORTER_ASSERT(reporter, 0 == TestResource::NumAlive()); in test_purge_invalidated()
860 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); in test_purge_invalidated()
861 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_purge_invalidated()
862 REPORTER_ASSERT(reporter, !scratch); in test_purge_invalidated()
885 REPORTER_ASSERT(reporter, 2 == TestResource::NumAlive()); in test_cache_chained_purge()
890 REPORTER_ASSERT(reporter, 2 == TestResource::NumAlive()); in test_cache_chained_purge()
893 REPORTER_ASSERT(reporter, 2 == TestResource::NumAlive()); in test_cache_chained_purge()
897 REPORTER_ASSERT(reporter, 2 == TestResource::NumAlive()); in test_cache_chained_purge()
900 REPORTER_ASSERT(reporter, 0 == TestResource::NumAlive()); in test_cache_chained_purge()
922 REPORTER_ASSERT(reporter, 200 == cache->getResourceBytes()); in test_resource_size_changed()
923 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_resource_size_changed()
933 REPORTER_ASSERT(reporter, 250 == cache->getResourceBytes()); in test_resource_size_changed()
934 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_resource_size_changed()
953 REPORTER_ASSERT(reporter, 200 == cache->getResourceBytes()); in test_resource_size_changed()
954 REPORTER_ASSERT(reporter, 2 == cache->getResourceCount()); in test_resource_size_changed()
961 REPORTER_ASSERT(reporter, !cache->hasUniqueKey(key1)); in test_resource_size_changed()
963 REPORTER_ASSERT(reporter, 201 == cache->getResourceBytes()); in test_resource_size_changed()
964 REPORTER_ASSERT(reporter, 1 == cache->getResourceCount()); in test_resource_size_changed()
1020 REPORTER_ASSERT(reporter, NULL == res); in test_timestamp_wrap()
1022 REPORTER_ASSERT(reporter, NULL != res); in test_timestamp_wrap()
1057 REPORTER_ASSERT(reporter, kFlushCount - i - 1 == cache->getResourceCount()); in test_flush()
1062 REPORTER_ASSERT(reporter, !SkToBool(r)); in test_flush()
1068 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); in test_flush()
1092 REPORTER_ASSERT(reporter, kFlushCount - i/2 - 1 == cache->getResourceCount()); in test_flush()
1104 REPORTER_ASSERT(reporter, kFlushCount >> 1 == cache->getResourceCount()); in test_flush()
1107 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); in test_flush()
1112 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); in test_flush()
1143 REPORTER_ASSERT(reporter, TestResource::NumAlive() == 2 * kResourceCnt); in test_large_resource_count()
1144 REPORTER_ASSERT(reporter, cache->getBudgetedResourceBytes() == 2 * kResourceCnt); in test_large_resource_count()
1145 REPORTER_ASSERT(reporter, cache->getBudgetedResourceCount() == 2 * kResourceCnt); in test_large_resource_count()
1146 REPORTER_ASSERT(reporter, cache->getResourceBytes() == 2 * kResourceCnt); in test_large_resource_count()
1147 REPORTER_ASSERT(reporter, cache->getResourceCount() == 2 * kResourceCnt); in test_large_resource_count()
1153 REPORTER_ASSERT(reporter, cache->hasUniqueKey(key1)); in test_large_resource_count()
1154 REPORTER_ASSERT(reporter, cache->hasUniqueKey(key2)); in test_large_resource_count()
1158 REPORTER_ASSERT(reporter, TestResource::NumAlive() == 0); in test_large_resource_count()
1159 REPORTER_ASSERT(reporter, cache->getBudgetedResourceBytes() == 0); in test_large_resource_count()
1160 REPORTER_ASSERT(reporter, cache->getBudgetedResourceCount() == 0); in test_large_resource_count()
1161 REPORTER_ASSERT(reporter, cache->getResourceBytes() == 0); in test_large_resource_count()
1162 REPORTER_ASSERT(reporter, cache->getResourceCount() == 0); in test_large_resource_count()
1169 REPORTER_ASSERT(reporter, !cache->hasUniqueKey(key1)); in test_large_resource_count()
1170 REPORTER_ASSERT(reporter, !cache->hasUniqueKey(key2)); in test_large_resource_count()