Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

14 static SkRRect path_contains_rrect(skiatest::Reporter* reporter, const SkPath& path,
17 REPORTER_ASSERT(reporter, path.isRRect(&out, dir, start));
20 REPORTER_ASSERT(reporter, path == recreatedPath);
35 REPORTER_ASSERT(reporter, xformed.isRRect(&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) {
111 REPORTER_ASSERT(reporter, SkPath::kMove_Verb == v);
113 REPORTER_ASSERT(reporter, SkPath::kConic_Verb == v);
127 force_path_contains_rrect(reporter, path, SkPath::kCW_Direction, 6);
140 force_path_contains_rrect(reporter, path, SkPath::kCW_Direction, 6);
153 force_path_contains_rrect(reporter, path, SkPath::kCW_Direction, 6);
166 force_path_contains_rrect(reporter, path, SkPath::kCW_Direction, 6);
172 static void test_tricky_radii(skiatest::Reporter* reporter) {
182 path_contains_rrect_check(reporter, rr, dir, start);
193 path_contains_rrect_nocheck(reporter, rr, dir, start);
199 static void test_empty_crbug_458524(skiatest::Reporter* reporter) {
206 path_contains_rrect_check(reporter, rr, dir, start);
212 path_contains_rrect_check(reporter, rr, dir, start);
217 static void test_inset(skiatest::Reporter* reporter) {
225 path_contains_rrect_check(reporter, rr, dir, start);
228 path_contains_rrect_check(reporter, rr, dir, start);
231 path_contains_rrect_check(reporter, rr, dir, start);
235 path_contains_rrect_check(reporter, rr, dir, start);
237 path_contains_rrect_check(reporter, rr, dir, start);
243 static void test_9patch_rrect(skiatest::Reporter* reporter,
252 path_contains_rrect_check(reporter, rr, dir, start);
254 path_contains_rrect_nocheck(reporter, rr, dir, start);
261 path_contains_rrect_check(reporter, rr, dir, start);
263 path_contains_rrect_nocheck(reporter, rr, dir, start);
270 static void test_round_rect_basic(skiatest::Reporter* reporter) {
278 path_contains_rrect_check(reporter, rr1, dir, start);
283 path_contains_rrect_check(reporter, rr1_2, dir, start);
286 path_contains_rrect_check(reporter, rr1_2, dir, start);
292 path_contains_rrect_check(reporter, rr2, dir, start);
300 path_contains_rrect_check(reporter, rr2_2, dir, start);
303 path_contains_rrect_check(reporter, rr2_3, dir, start);
309 path_contains_rrect_check(reporter, rr3, dir, start);
314 path_contains_rrect_check(reporter, rr3_2, dir, start);
317 path_contains_rrect_check(reporter, rr3_3, dir, start);
320 test_9patch_rrect(reporter, rect, 10, 9, 8, 7, true);
327 test_9patch_rrect(reporter,
338 path_contains_rrect_check(reporter, rr5, dir, start);
344 static void test_round_rect_rects(skiatest::Reporter* reporter) {
352 path_contains_rrect_check(reporter, rr1, dir, start);
360 path_contains_rrect_check(reporter, rr2, dir, start);
367 path_contains_rrect_check(reporter, rr3, dir, start);
373 static void test_round_rect_ovals(skiatest::Reporter* reporter) {
381 path_contains_rrect_check(reporter, rr1, dir, start);
387 static void test_round_rect_general(skiatest::Reporter* reporter) {
395 path_contains_rrect_check(reporter, rr1, dir, start);
403 path_contains_rrect_check(reporter, rr2, dir, start);
408 static void test_round_rect_iffy_parameters(skiatest::Reporter* reporter) {
415 path_contains_rrect_nocheck(reporter, rr1, dir, start);
425 static void test_skbug_3239(skiatest::Reporter* reporter) {
440 path_contains_rrect_check(reporter, rectx, radii, dir, start);
441 path_contains_rrect_check(reporter, recty, radii, dir, start);
447 static void test_mix(skiatest::Reporter* reporter) {
455 path_contains_rrect_check(reporter, rr, dir, start);
460 DEF_TEST(RoundRectInPath, reporter) {
461 test_tricky_radii(reporter);
462 test_empty_crbug_458524(reporter);
463 test_inset(reporter);
464 test_round_rect_basic(reporter);
465 test_round_rect_rects(reporter);
466 test_round_rect_ovals(reporter);
467 test_round_rect_general(reporter);
468 test_undetected_paths(reporter);
469 test_round_rect_iffy_parameters(reporter);
470 test_skbug_3239(reporter);
471 test_mix(reporter);