Lines Matching refs:Reporter
23 static void check_data(skiatest::Reporter* reporter, SkCachedData* data,
25 REPORTER_ASSERT(reporter, data->testing_only_getRefCnt() == refcnt);
26 REPORTER_ASSERT(reporter, data->testing_only_isInCache() == (kInCache == cacheState));
28 REPORTER_ASSERT(reporter, isLocked == (lockedState == kLocked));
31 DEF_TEST(RRectMaskCache, reporter) {
43 REPORTER_ASSERT(reporter, nullptr == data);
52 check_data(reporter, data, 2, kInCache, kLocked);
55 check_data(reporter, data, 1, kInCache, kUnlocked);
59 REPORTER_ASSERT(reporter, data);
60 REPORTER_ASSERT(reporter, data->size() == size);
61 REPORTER_ASSERT(reporter, mask.fBounds.top() == 0 && mask.fBounds.bottom() == 100);
62 REPORTER_ASSERT(reporter, data->data() == (const void*)mask.fImage);
63 check_data(reporter, data, 2, kInCache, kLocked);
66 check_data(reporter, data, 1, kNotInCache, kLocked);
70 DEF_TEST(RectsMaskCache, reporter) {
81 REPORTER_ASSERT(reporter, nullptr == data);
90 check_data(reporter, data, 2, kInCache, kLocked);
93 check_data(reporter, data, 1, kInCache, kUnlocked);
97 REPORTER_ASSERT(reporter, data);
98 REPORTER_ASSERT(reporter, data->size() == size);
99 REPORTER_ASSERT(reporter, mask.fBounds.top() == 0 && mask.fBounds.bottom() == 100);
100 REPORTER_ASSERT(reporter, data->data() == (const void*)mask.fImage);
101 check_data(reporter, data, 2, kInCache, kLocked);
104 check_data(reporter, data, 1, kNotInCache, kLocked);