Lines Matching defs:reporter
165 static void test_rgn(skiatest::Reporter* reporter) {
170 REPORTER_ASSERT(reporter, equalsAAClip(rgn));
178 REPORTER_ASSERT(reporter, equalsAAClip(rgn));
186 REPORTER_ASSERT(reporter, equalsAAClip(rgn));
200 static void test_path_bounds(skiatest::Reporter* reporter) {
207 REPORTER_ASSERT(reporter, sheight == path.getBounds().height());
209 REPORTER_ASSERT(reporter, height == clip.getBounds().height());
221 REPORTER_ASSERT(reporter, sheight == path.getBounds().height());
223 REPORTER_ASSERT(reporter, teardrop_height == clip.getBounds().height());
226 static void test_empty(skiatest::Reporter* reporter) {
229 REPORTER_ASSERT(reporter, clip.isEmpty());
230 REPORTER_ASSERT(reporter, clip.getBounds().isEmpty());
233 REPORTER_ASSERT(reporter, clip.isEmpty());
234 REPORTER_ASSERT(reporter, clip.getBounds().isEmpty());
238 REPORTER_ASSERT(reporter, !clip.isEmpty());
239 REPORTER_ASSERT(reporter, !clip.getBounds().isEmpty());
240 REPORTER_ASSERT(reporter, clip.getBounds() == r);
243 REPORTER_ASSERT(reporter, clip.isEmpty());
244 REPORTER_ASSERT(reporter, clip.getBounds().isEmpty());
248 REPORTER_ASSERT(reporter, nullptr == mask.fImage);
249 REPORTER_ASSERT(reporter, mask.fBounds.isEmpty());
260 static void test_irect(skiatest::Reporter* reporter) {
280 ERRORF(reporter, "%s %s "
298 REPORTER_ASSERT(reporter, maskBW == maskAA);
303 static void test_path_with_hole(skiatest::Reporter* reporter) {
332 REPORTER_ASSERT(reporter, expected == mask);
336 static void test_really_a_rect(skiatest::Reporter* reporter) {
346 REPORTER_ASSERT(reporter, clip.getBounds() == SkIRect::MakeWH(100, 100));
347 REPORTER_ASSERT(reporter, !clip.isRect());
355 REPORTER_ASSERT(reporter, clip.getBounds() == SkIRect::MakeLTRB(10, 0, 50, 90));
357 REPORTER_ASSERT(reporter, clip.isRect());
360 static void did_dx_affect(skiatest::Reporter* reporter, const SkScalar dx[],
378 REPORTER_ASSERT(reporter, changed != (rc0 == rc1));
379 REPORTER_ASSERT(reporter, changed != (rc0 == rc2));
383 static void test_nearly_integral(skiatest::Reporter* reporter) {
389 did_dx_affect(reporter, gSafeX, SK_ARRAY_COUNT(gSafeX), false);
394 did_dx_affect(reporter, gUnsafeX, SK_ARRAY_COUNT(gUnsafeX), true);
418 static void test_crbug_422693(skiatest::Reporter* reporter) {
425 static void test_huge(skiatest::Reporter* reporter) {
434 DEF_TEST(AAClip, reporter) {
435 test_empty(reporter);
436 test_path_bounds(reporter);
437 test_irect(reporter);
438 test_rgn(reporter);
439 test_path_with_hole(reporter);
441 test_nearly_integral(reporter);
442 test_really_a_rect(reporter);
443 test_crbug_422693(reporter);
444 test_huge(reporter);