Lines Matching refs:TestRec
222 struct TestRec : SkResourceCache::Rec { struct
231 TestRec(int sharedID, int32_t data, int* flagPtr) : fKey(sharedID, data), fFlags(flagPtr) { in TestRec() argument
251 auto rec0 = skstd::make_unique<TestRec>(sharedID, data, &flags0); in test_duplicate_add() argument
252 auto rec1 = skstd::make_unique<TestRec>(sharedID, data, &flags1); in test_duplicate_add()
255 TestRec* r0 = rec0.get(); // save the bare-pointer since we will release rec0 in test_duplicate_add()
258 REPORTER_ASSERT(reporter, !(flags0 & TestRec::kDidInstall)); in test_duplicate_add()
259 REPORTER_ASSERT(reporter, !(flags1 & TestRec::kDidInstall)); in test_duplicate_add()
262 REPORTER_ASSERT(reporter, flags0 & TestRec::kDidInstall); in test_duplicate_add()
263 REPORTER_ASSERT(reporter, !(flags1 & TestRec::kDidInstall)); in test_duplicate_add()
269 REPORTER_ASSERT(reporter, !(flags0 & TestRec::kDidInstall)); in test_duplicate_add()
270 REPORTER_ASSERT(reporter, flags1 & TestRec::kDidInstall); in test_duplicate_add()
273 REPORTER_ASSERT(reporter, flags0 & TestRec::kDidInstall); in test_duplicate_add()
274 REPORTER_ASSERT(reporter, !(flags1 & TestRec::kDidInstall)); in test_duplicate_add()