Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

16 static void standardTestCases(skiatest::Reporter* reporter) {
60 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2));
62 reporter->bumpTestCount();
307 static void oneOff(skiatest::Reporter* reporter, const SkDCubic& cubic1, const SkDCubic& cubic2,
342 REPORTER_ASSERT(reporter, !coin || intersections.used() == 2);
356 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(iPt));
357 REPORTER_ASSERT(reporter, xy2.approximatelyEqual(iPt));
358 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2));
360 reporter->bumpTestCount();
363 static void oneOff(skiatest::Reporter* reporter, int outer, int inner) {
366 oneOff(reporter, cubic1, cubic2, false);
369 static void newOneOff(skiatest::Reporter* reporter, int outer, int inner) {
372 oneOff(reporter, cubic1, cubic2, false);
375 static void oneOffTests(skiatest::Reporter* reporter) {
378 oneOff(reporter, outer, inner);
383 newOneOff(reporter, outer, inner);
390 static void CubicIntersection_RandTest(skiatest::Reporter* reporter) {
430 REPORTER_ASSERT(reporter, 0);
437 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2));
439 reporter->bumpTestCount();
555 static void selfOneOff(skiatest::Reporter* reporter, int index) {
581 REPORTER_ASSERT(reporter, result == 1);
582 REPORTER_ASSERT(reporter, i.used() == 1);
583 REPORTER_ASSERT(reporter, !approximately_equal(i[0][0], i[1][0]));
586 REPORTER_ASSERT(reporter, pt1.approximatelyEqual(pt2));
587 reporter->bumpTestCount();
590 static void cubicIntersectionSelfTest(skiatest::Reporter* reporter) {
593 selfOneOff(reporter, index);
608 static void coinOneOff(skiatest::Reporter* reporter, int index) {
611 oneOff(reporter, cubic1, cubic2, true);
614 static void cubicIntersectionCoinTest(skiatest::Reporter* reporter) {
617 coinOneOff(reporter, index);
621 static void PathOpsCubicCoinOneOffTest(skiatest::Reporter* reporter) {
622 coinOneOff(reporter, 0);
625 static void PathOpsCubicIntersectionOneOffTest(skiatest::Reporter* reporter) {
626 newOneOff(reporter, 0, 1);
629 static void PathOpsCubicSelfOneOffTest(skiatest::Reporter* reporter) {
630 selfOneOff(reporter, 0);
633 static void PathOpsCubicIntersectionTest(skiatest::Reporter* reporter) {
634 oneOffTests(reporter);
635 cubicIntersectionSelfTest(reporter);
636 cubicIntersectionCoinTest(reporter);
637 standardTestCases(reporter);
639 if (false) CubicIntersection_RandTest(reporter);