Lines Matching refs:TestRec
220 struct TestRec : SkResourceCache::Rec { struct
229 TestRec(int sharedID, int32_t data, int* flagPtr) : fKey(sharedID, data), fFlags(flagPtr) { in TestRec() argument
249 auto rec0 = std::make_unique<TestRec>(sharedID, data, &flags0); in test_duplicate_add() argument
250 auto rec1 = std::make_unique<TestRec>(sharedID, data, &flags1); in test_duplicate_add()
253 TestRec* r0 = rec0.get(); // save the bare-pointer since we will release rec0 in test_duplicate_add()
256 REPORTER_ASSERT(reporter, !(flags0 & TestRec::kDidInstall)); in test_duplicate_add()
257 REPORTER_ASSERT(reporter, !(flags1 & TestRec::kDidInstall)); in test_duplicate_add()
260 REPORTER_ASSERT(reporter, flags0 & TestRec::kDidInstall); in test_duplicate_add()
261 REPORTER_ASSERT(reporter, !(flags1 & TestRec::kDidInstall)); in test_duplicate_add()
267 REPORTER_ASSERT(reporter, !(flags0 & TestRec::kDidInstall)); in test_duplicate_add()
268 REPORTER_ASSERT(reporter, flags1 & TestRec::kDidInstall); in test_duplicate_add()
271 REPORTER_ASSERT(reporter, flags0 & TestRec::kDidInstall); in test_duplicate_add()
272 REPORTER_ASSERT(reporter, !(flags1 & TestRec::kDidInstall)); in test_duplicate_add()