Lines Matching refs:Reporter
19 static void standardTestCases(skiatest::Reporter* reporter) {
66 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2));
68 reporter->bumpTestCount();
387 static void oneOff(skiatest::Reporter* reporter, const CubicPts& cubic1, const CubicPts& cubic2,
416 REPORTER_ASSERT(reporter, !coin || intersections.used() >= 2);
430 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(iPt));
431 REPORTER_ASSERT(reporter, xy2.approximatelyEqual(iPt));
432 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2));
434 reporter->bumpTestCount();
437 static void oneOff(skiatest::Reporter* reporter, int outer, int inner) {
440 oneOff(reporter, cubic1, cubic2, false);
443 static void newOneOff(skiatest::Reporter* reporter, int outer, int inner) {
446 oneOff(reporter, cubic1, cubic2, false);
449 static void testsOneOff(skiatest::Reporter* reporter, int index) {
452 oneOff(reporter, cubic1, cubic2, false);
455 static void oneOffTests(skiatest::Reporter* reporter) {
458 oneOff(reporter, outer, inner);
463 newOneOff(reporter, outer, inner);
470 static void CubicIntersection_RandTest(skiatest::Reporter* reporter) {
513 REPORTER_ASSERT(reporter, 0);
520 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2));
522 reporter->bumpTestCount();
642 static void selfOneOff(skiatest::Reporter* reporter, int index) {
661 REPORTER_ASSERT(reporter, result == 2);
662 REPORTER_ASSERT(reporter, i.used() == 2);
666 REPORTER_ASSERT(reporter, pt1.approximatelyEqual(pt2));
667 reporter->bumpTestCount();
672 static void cubicIntersectionSelfTest(skiatest::Reporter* reporter) {
675 selfOneOff(reporter, index);
700 static void coinOneOff(skiatest::Reporter* reporter, int index) {
703 oneOff(reporter, cubic1, cubic2, true);
706 static void cubicIntersectionCoinTest(skiatest::Reporter* reporter) {
709 coinOneOff(reporter, index);
713 DEF_TEST(PathOpsCubicCoinOneOff, reporter) {
714 coinOneOff(reporter, 0);
717 DEF_TEST(PathOpsCubicIntersectionOneOff, reporter) {
718 newOneOff(reporter, 0, 1);
721 DEF_TEST(PathOpsCubicIntersectionTestsOneOff, reporter) {
722 testsOneOff(reporter, 10);
725 DEF_TEST(PathOpsCubicSelfOneOff, reporter) {
726 selfOneOff(reporter, 0);
729 DEF_TEST(PathOpsCubicIntersection, reporter) {
730 oneOffTests(reporter);
731 cubicIntersectionSelfTest(reporter);
732 cubicIntersectionCoinTest(reporter);
733 standardTestCases(reporter);
735 if (false) CubicIntersection_RandTest(reporter);