Lines Matching defs:reporter

21 static void standardTestCases(skiatest::Reporter* reporter) {
68 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2));
70 reporter->bumpTestCount();
390 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 setIdx) {
660 REPORTER_ASSERT(reporter, result == 2);
661 REPORTER_ASSERT(reporter, i.used() == 2);
665 REPORTER_ASSERT(reporter, pt1.approximatelyEqual(pt2));
666 reporter->bumpTestCount();
671 static void cubicIntersectionSelfTest(skiatest::Reporter* reporter) {
674 selfOneOff(reporter, index);
699 static void coinOneOff(skiatest::Reporter* reporter, int index) {
702 oneOff(reporter, cubic1, cubic2, true);
705 static void cubicIntersectionCoinTest(skiatest::Reporter* reporter) {
708 coinOneOff(reporter, index);
712 DEF_TEST(PathOpsCubicCoinOneOff, reporter) {
713 coinOneOff(reporter, 0);
716 DEF_TEST(PathOpsCubicIntersectionOneOff, reporter) {
717 newOneOff(reporter, 0, 1);
720 DEF_TEST(PathOpsCubicIntersectionTestsOneOff, reporter) {
721 testsOneOff(reporter, 10);
724 DEF_TEST(PathOpsCubicSelfOneOff, reporter) {
725 selfOneOff(reporter, 0);
728 DEF_TEST(PathOpsCubicIntersection, reporter) {
729 oneOffTests(reporter);
730 cubicIntersectionSelfTest(reporter);
731 cubicIntersectionCoinTest(reporter);
732 standardTestCases(reporter);
734 if (false) CubicIntersection_RandTest(reporter);