Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

45 static void test_cache(skiatest::Reporter* reporter, SkResourceCache& cache, bool testPurge) {
50 REPORTER_ASSERT(reporter, !cache.find(key, TestingRec::Visitor, &value));
51 REPORTER_ASSERT(reporter, -1 == value);
55 REPORTER_ASSERT(reporter, cache.find(key, TestingRec::Visitor, &value));
56 REPORTER_ASSERT(reporter, i == value);
76 static void test_cache_purge_shared_id(skiatest::Reporter* reporter, SkResourceCache& cache) {
87 REPORTER_ASSERT(reporter, cache.find(key, TestingRec::Visitor, &value));
88 REPORTER_ASSERT(reporter, value == i);
100 REPORTER_ASSERT(reporter, !cache.find(key, TestingRec::Visitor, &value));
102 REPORTER_ASSERT(reporter, cache.find(key, TestingRec::Visitor, &value));
103 REPORTER_ASSERT(reporter, value == i);
116 DEF_TEST(ImageCache, reporter) {
121 test_cache(reporter, cache, true);
127 test_cache(reporter, cache, true);
131 test_cache(reporter, cache, false);
135 test_cache_purge_shared_id(reporter, cache);