Lines Matching refs:Reporter
60 static void test_cmap(skiatest::Reporter* reporter) {
100 REPORTER_ASSERT(reporter, NGLYPHS == nglyphs);
101 REPORTER_ASSERT(reporter, index == first);
102 REPORTER_ASSERT(reporter,
105 REPORTER_ASSERT(reporter, NGLYPHS == first);
107 REPORTER_ASSERT(reporter, NGLYPHS > first);
114 static void test_filterlevel(skiatest::Reporter* reporter) {
117 REPORTER_ASSERT(reporter,
128 REPORTER_ASSERT(reporter, gLevels[i] == p0.getFilterLevel());
130 REPORTER_ASSERT(reporter, gLevels[i] == p1.getFilterLevel());
133 REPORTER_ASSERT(reporter,
138 static void test_copy(skiatest::Reporter* reporter) {
153 REPORTER_ASSERT(reporter, paint == copiedPaint);
159 REPORTER_ASSERT(reporter, paintGenID == copiedPaintGenID);
160 REPORTER_ASSERT(reporter, !memcmp(&paint, &copiedPaint, sizeof(paint)));
165 REPORTER_ASSERT(reporter, paint == copiedPaint);
169 REPORTER_ASSERT(reporter, paint.getGenerationID() == paintGenID);
170 REPORTER_ASSERT(reporter, copiedPaint.getGenerationID() != copiedPaintGenID);
172 REPORTER_ASSERT(reporter, memcmp(&paint, &copiedPaint, sizeof(paint)));
179 REPORTER_ASSERT(reporter, cleanPaint == paint);
180 REPORTER_ASSERT(reporter, cleanPaint == copiedPaint);
184 REPORTER_ASSERT(reporter, paint.getGenerationID() != paintGenID);
185 REPORTER_ASSERT(reporter, copiedPaint.getGenerationID() != copiedPaintGenID);
186 REPORTER_ASSERT(reporter, memcmp(&cleanPaint, &paint, sizeof(cleanPaint)));
187 REPORTER_ASSERT(reporter, memcmp(&cleanPaint, &copiedPaint, sizeof(cleanPaint)));
193 static void regression_cubic(skiatest::Reporter* reporter) {
222 REPORTER_ASSERT(reporter, maxR.contains(strokeR));
226 static void regression_measureText(skiatest::Reporter* reporter) {
236 REPORTER_ASSERT(reporter, r.isEmpty());
239 DEF_TEST(Paint, reporter) {
241 test_copy(reporter);
244 regression_cubic(reporter);
245 regression_measureText(reporter);
247 test_filterlevel(reporter);
252 test_cmap(reporter);