Lines Matching refs:TestingRec
21 struct TestingRec : public SkResourceCache::Rec { struct
22 TestingRec(const TestingKey& key, uint32_t value) : fKey(key), fValue(value) {} in TestingRec() argument
33 const TestingRec& rec = static_cast<const TestingRec&>(baseRec); in Visitor()
50 REPORTER_ASSERT(reporter, !cache.find(key, TestingRec::Visitor, &value)); in test_cache()
53 cache.add(new TestingRec(key, i)); in test_cache()
55 REPORTER_ASSERT(reporter, cache.find(key, TestingRec::Visitor, &value)); in test_cache()
63 cache.add(new TestingRec(key, i)); in test_cache()
70 (void)cache.find(TestingKey(i), TestingRec::Visitor, &value); in test_cache()
79 cache.add(new TestingRec(key, i)); in test_cache_purge_shared_id()
87 REPORTER_ASSERT(reporter, cache.find(key, TestingRec::Visitor, &value)); in test_cache_purge_shared_id()
100 REPORTER_ASSERT(reporter, !cache.find(key, TestingRec::Visitor, &value)); in test_cache_purge_shared_id()
102 REPORTER_ASSERT(reporter, cache.find(key, TestingRec::Visitor, &value)); in test_cache_purge_shared_id()
146 cache.add(new TestingRec(key, 2)); in DEF_TEST()
147 cache.add(new TestingRec(key, 3)); in DEF_TEST()
151 REPORTER_ASSERT(r, cache.find(key, TestingRec::Visitor, &value)); in DEF_TEST()