Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

74 static void check_results(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2,
80 REPORTER_ASSERT(reporter, ts.used() != 1);
82 REPORTER_ASSERT(reporter, result1.approximatelyEqual(result2));
83 REPORTER_ASSERT(reporter, result1.approximatelyEqual(ts.pt(i).asSkPoint()));
88 static void testOne(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2) {
93 REPORTER_ASSERT(reporter, pts);
94 REPORTER_ASSERT(reporter, pts == i.used());
95 check_results(reporter, line1, line2, i);
104 check_results(reporter, line2, line1, ts);
111 check_results(reporter, line1, line2, ts);
118 check_results(reporter, line2, line1, ts);
125 check_results(reporter, line1, line2, ts);
127 reporter->bumpTestCount();
130 static void testOneCoincident(skiatest::Reporter* reporter, const SkDLine& line1,
136 REPORTER_ASSERT(reporter, pts == 2);
137 REPORTER_ASSERT(reporter, pts == ts.used());
138 check_results(reporter, line1, line2, ts);
147 REPORTER_ASSERT(reporter, pts == 2);
148 REPORTER_ASSERT(reporter, pts == ts.used());
149 check_results(reporter, line2, line1, ts);
156 REPORTER_ASSERT(reporter, pts == 2);
157 REPORTER_ASSERT(reporter, pts == ts.used());
158 check_results(reporter, line1, line2, ts);
165 REPORTER_ASSERT(reporter, pts == 2);
166 REPORTER_ASSERT(reporter, pts == ts.used());
167 check_results(reporter, line2, line1, ts);
174 REPORTER_ASSERT(reporter, pts == 2);
175 REPORTER_ASSERT(reporter, pts == ts.used());
176 check_results(reporter, line1, line2, ts);
178 reporter->bumpTestCount();
181 static void PathOpsLineIntersectionTest(skiatest::Reporter* reporter) {
186 testOneCoincident(reporter, line1, line2);
191 testOne(reporter, line1, line2);
198 REPORTER_ASSERT(reporter, !pts);
199 REPORTER_ASSERT(reporter, pts == ts.used());
200 reporter->bumpTestCount();
204 static void PathOpsLineIntersectionOneOffTest(skiatest::Reporter* reporter) {
207 testOne(reporter, tests[index][0], tests[index][1]);
208 testOne(reporter, tests[1][0], tests[1][1]);
211 static void PathOpsLineIntersectionOneCoincidentTest(skiatest::Reporter* reporter) {
216 testOneCoincident(reporter, line1, line2);