Home | History | Annotate | Download | only in tests

Lines Matching full:reporter

77 static void check_results(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2,
83 REPORTER_ASSERT(reporter, ts.used() != 1);
88 REPORTER_ASSERT(reporter, result1.approximatelyEqual(result2));
89 REPORTER_ASSERT(reporter, result1.approximatelyEqual(ts.pt(i).asSkPoint()));
94 static void testOne(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2) {
99 REPORTER_ASSERT(reporter, pts);
100 REPORTER_ASSERT(reporter, pts == i.used());
101 check_results(reporter, line1, line2, i);
110 check_results(reporter, line2, line1, ts);
117 check_results(reporter, line1, line2, ts);
124 check_results(reporter, line2, line1, ts);
131 check_results(reporter, line1, line2, ts);
133 reporter->bumpTestCount();
136 static void testOneCoincident(skiatest::Reporter* reporter, const SkDLine& line1,
142 REPORTER_ASSERT(reporter, pts == 2);
143 REPORTER_ASSERT(reporter, pts == ts.used());
144 check_results(reporter, line1, line2, ts);
153 REPORTER_ASSERT(reporter, pts == 2);
154 REPORTER_ASSERT(reporter, pts == ts.used());
155 check_results(reporter, line2, line1, ts);
162 REPORTER_ASSERT(reporter, pts == 2);
163 REPORTER_ASSERT(reporter, pts == ts.used());
164 check_results(reporter, line1, line2, ts);
171 REPORTER_ASSERT(reporter, pts == 2);
172 REPORTER_ASSERT(reporter, pts == ts.used());
173 check_results(reporter, line2, line1, ts);
180 REPORTER_ASSERT(reporter, pts == 2);
181 REPORTER_ASSERT(reporter, pts == ts.used());
182 check_results(reporter, line1, line2, ts);
184 reporter->bumpTestCount();
187 DEF_TEST(PathOpsLineIntersection, reporter) {
192 testOneCoincident(reporter, line1, line2);
197 testOne(reporter, line1, line2);
204 REPORTER_ASSERT(reporter, !pts);
205 REPORTER_ASSERT(reporter, pts == ts.used());
206 reporter->bumpTestCount();
210 DEF_TEST(PathOpsLineIntersectionOneOff, reporter) {
213 testOne(reporter, tests[index][0], tests[index][1]);
214 testOne(reporter, tests[1][0], tests[1][1]);
217 DEF_TEST(PathOpsLineIntersectionOneCoincident, reporter) {
222 testOneCoincident(reporter, line1, line2);