Lines Matching refs:Reporter
87 static void check_results(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2,
96 REPORTER_ASSERT(reporter, ts.used() != 1);
101 REPORTER_ASSERT(reporter, result1.approximatelyEqual(result2));
102 REPORTER_ASSERT(reporter, result1.approximatelyEqual(ts.pt(i).asSkPoint()));
107 static void testOne(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2,
114 REPORTER_ASSERT(reporter, pts);
115 REPORTER_ASSERT(reporter, pts == i.used());
116 check_results(reporter, line1, line2, i, nearAllowed);
125 check_results(reporter, line2, line1, ts, nearAllowed);
132 check_results(reporter, line1, line2, ts, nearAllowed);
139 check_results(reporter, line2, line1, ts, nearAllowed);
146 check_results(reporter, line1, line2, ts, nearAllowed);
148 reporter->bumpTestCount();
151 static void testOneCoincident(skiatest::Reporter* reporter, const SkDLine& line1,
157 REPORTER_ASSERT(reporter, pts == 2);
158 REPORTER_ASSERT(reporter, pts == ts.used());
159 check_results(reporter, line1, line2, ts, false);
168 REPORTER_ASSERT(reporter, pts == 2);
169 REPORTER_ASSERT(reporter, pts == ts.used());
170 check_results(reporter, line2, line1, ts, false);
177 REPORTER_ASSERT(reporter, pts == 2);
178 REPORTER_ASSERT(reporter, pts == ts.used());
179 check_results(reporter, line1, line2, ts, false);
186 REPORTER_ASSERT(reporter, pts == 2);
187 REPORTER_ASSERT(reporter, pts == ts.used());
188 check_results(reporter, line2, line1, ts, false);
195 REPORTER_ASSERT(reporter, pts == 2);
196 REPORTER_ASSERT(reporter, pts == ts.used());
197 check_results(reporter, line1, line2, ts, false);
199 reporter->bumpTestCount();
202 DEF_TEST(PathOpsLineIntersection, reporter) {
207 testOneCoincident(reporter, line1, line2);
212 testOne(reporter, line1, line2, true);
219 REPORTER_ASSERT(reporter, !pts);
220 REPORTER_ASSERT(reporter, pts == ts.used());
221 reporter->bumpTestCount();
225 DEF_TEST(PathOpsLineIntersectionOneOff, reporter) {
228 testOne(reporter, tests[index][0], tests[index][1], true);
231 DEF_TEST(PathOpsLineIntersectionExactOneOff, reporter) {
234 testOne(reporter, tests[index][0], tests[index][1], false);
237 DEF_TEST(PathOpsLineIntersectionOneCoincident, reporter) {
242 testOneCoincident(reporter, line1, line2);