Home
last modified time | relevance | path

Searched refs:TestingRec (Results 1 – 1 of 1) sorted by relevance

/external/skia/tests/
DImageCacheTest.cpp21 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()
[all …]