Lines Matching refs:Reporter
22 static void check_data(skiatest::Reporter* reporter, SkCachedData* data,
24 REPORTER_ASSERT(reporter, data->testing_only_getRefCnt() == refcnt);
25 REPORTER_ASSERT(reporter, data->testing_only_isInCache() == (kInCache == cacheState));
26 REPORTER_ASSERT(reporter, data->testing_only_isLocked() == (lockedState == kLocked));
41 static SkCachedData* test_locking(skiatest::Reporter* reporter,
47 check_data(reporter, data, 1, kNotInCache, kLocked);
50 check_data(reporter, data, 2, kNotInCache, kLocked);
52 check_data(reporter, data, 1, kNotInCache, kLocked);
55 check_data(reporter, data, 2, kInCache, kLocked);
58 check_data(reporter, data, 1, kInCache, kUnlocked);
61 check_data(reporter, data, 2, kInCache, kLocked);
74 DEF_TEST(CachedData, reporter) {
81 SkCachedData* data = test_locking(reporter, size, useDiscardable ? pool.get() : nullptr);
82 check_data(reporter, data, 2, kInCache, kLocked);
84 check_data(reporter, data, 1, kNotInCache, kLocked);
88 data = test_locking(reporter, size, useDiscardable ? pool.get() : nullptr);
89 check_data(reporter, data, 2, kInCache, kLocked);
91 check_data(reporter, data, 1, kInCache, kUnlocked);