Lines Matching defs:reporter
14 static SkRRect path_contains_rrect(skiatest::Reporter* reporter, const SkPath& path,
17 REPORTER_ASSERT(reporter, SkPathPriv::IsRRect(path, &out, dir, start));
20 REPORTER_ASSERT(reporter, path == recreatedPath);
35 REPORTER_ASSERT(reporter, SkPathPriv::IsRRect(xformed, &xrr, &xd, &xs));
38 REPORTER_ASSERT(reporter, recreatedPath == xformed);
43 static SkRRect inner_path_contains_rrect(skiatest::Reporter* reporter, const SkRRect& in,
57 SkRRect rrect = path_contains_rrect(reporter, path, &outDir, &outStart);
58 REPORTER_ASSERT(reporter, outDir == dir && outStart == start);
62 static void path_contains_rrect_check(skiatest::Reporter* reporter, const SkRRect& in,
64 SkRRect out = inner_path_contains_rrect(reporter, in, dir, start);
68 REPORTER_ASSERT(reporter, in == out);
71 static void path_contains_rrect_nocheck(skiatest::Reporter* reporter, const SkRRect& in,
73 SkRRect out = inner_path_contains_rrect(reporter, in, dir, start);
79 static void path_contains_rrect_check(skiatest::Reporter* reporter, const SkRect& r,
83 path_contains_rrect_check(reporter, rrect, dir, start);
93 static void force_path_contains_rrect(skiatest::Reporter* reporter, SkPath& path,
98 path_contains_rrect(reporter, path, &outDir, &outStart);
99 REPORTER_ASSERT(reporter, outDir == dir && outStart == start);
102 static void test_undetected_paths(skiatest::Reporter* reporter) {
108 REPORTER_ASSERT(reporter, SkPath::kMove_Verb == SkPathPriv::VerbData(exactPath)[0]);
109 REPORTER_ASSERT(reporter, SkPath::kConic_Verb == SkPathPriv::VerbData(exactPath)[1]);
123 force_path_contains_rrect(reporter, path, SkPathDirection::kCW, 6);
136 force_path_contains_rrect(reporter, path, SkPathDirection::kCW, 6);
149 force_path_contains_rrect(reporter, path, SkPathDirection::kCW, 6);
162 force_path_contains_rrect(reporter, path, SkPathDirection::kCW, 6);
168 static void test_tricky_radii(skiatest::Reporter* reporter) {
178 path_contains_rrect_check(reporter, rr, dir, start);
189 path_contains_rrect_nocheck(reporter, rr, dir, start);
195 static void test_empty_crbug_458524(skiatest::Reporter* reporter) {
202 path_contains_rrect_check(reporter, rr, dir, start);
208 path_contains_rrect_check(reporter, rr, dir, start);
213 static void test_inset(skiatest::Reporter* reporter) {
221 path_contains_rrect_check(reporter, rr, dir, start);
224 path_contains_rrect_check(reporter, rr, dir, start);
227 path_contains_rrect_check(reporter, rr, dir, start);
231 path_contains_rrect_check(reporter, rr, dir, start);
233 path_contains_rrect_check(reporter, rr, dir, start);
239 static void test_9patch_rrect(skiatest::Reporter* reporter,
248 path_contains_rrect_check(reporter, rr, dir, start);
250 path_contains_rrect_nocheck(reporter, rr, dir, start);
257 path_contains_rrect_check(reporter, rr, dir, start);
259 path_contains_rrect_nocheck(reporter, rr, dir, start);
266 static void test_round_rect_basic(skiatest::Reporter* reporter) {
274 path_contains_rrect_check(reporter, rr1, dir, start);
279 path_contains_rrect_check(reporter, rr1_2, dir, start);
282 path_contains_rrect_check(reporter, rr1_2, dir, start);
288 path_contains_rrect_check(reporter, rr2, dir, start);
296 path_contains_rrect_check(reporter, rr2_2, dir, start);
299 path_contains_rrect_check(reporter, rr2_3, dir, start);
305 path_contains_rrect_check(reporter, rr3, dir, start);
310 path_contains_rrect_check(reporter, rr3_2, dir, start);
313 path_contains_rrect_check(reporter, rr3_3, dir, start);
316 test_9patch_rrect(reporter, rect, 10, 9, 8, 7, true);
323 test_9patch_rrect(reporter,
334 path_contains_rrect_check(reporter, rr5, dir, start);
340 static void test_round_rect_rects(skiatest::Reporter* reporter) {
348 path_contains_rrect_check(reporter, rr1, dir, start);
356 path_contains_rrect_check(reporter, rr2, dir, start);
363 path_contains_rrect_check(reporter, rr3, dir, start);
369 static void test_round_rect_ovals(skiatest::Reporter* reporter) {
377 path_contains_rrect_check(reporter, rr1, dir, start);
383 static void test_round_rect_general(skiatest::Reporter* reporter) {
391 path_contains_rrect_check(reporter, rr1, dir, start);
399 path_contains_rrect_check(reporter, rr2, dir, start);
404 static void test_round_rect_iffy_parameters(skiatest::Reporter* reporter) {
411 path_contains_rrect_nocheck(reporter, rr1, dir, start);
421 static void test_skbug_3239(skiatest::Reporter* reporter) {
436 path_contains_rrect_check(reporter, rectx, radii, dir, start);
437 path_contains_rrect_check(reporter, recty, radii, dir, start);
443 static void test_mix(skiatest::Reporter* reporter) {
451 path_contains_rrect_check(reporter, rr, dir, start);
456 DEF_TEST(RoundRectInPath, reporter) {
457 test_tricky_radii(reporter);
458 test_empty_crbug_458524(reporter);
459 test_inset(reporter);
460 test_round_rect_basic(reporter);
461 test_round_rect_rects(reporter);
462 test_round_rect_ovals(reporter);
463 test_round_rect_general(reporter);
464 test_undetected_paths(reporter);
465 test_round_rect_iffy_parameters(reporter);
466 test_skbug_3239(reporter);
467 test_mix(reporter);
470 DEF_TEST(RRect_fragile, reporter) {