Lines Matching refs:Reporter
15 static SkRRect path_contains_rrect(skiatest::Reporter* reporter, const SkPath& path) {
17 REPORTER_ASSERT(reporter, path.isRRect(&out));
24 REPORTER_ASSERT(reporter, xorBoth.isEmpty());
28 static SkRRect inner_path_contains_rrect(skiatest::Reporter* reporter, const SkRRect& in) {
39 return path_contains_rrect(reporter, path);
42 static void path_contains_rrect_check(skiatest::Reporter* reporter, const SkRRect& in) {
43 SkRRect out = inner_path_contains_rrect(reporter, in);
47 REPORTER_ASSERT(reporter, in == out);
50 static void path_contains_rrect_nocheck(skiatest::Reporter* reporter, const SkRRect& in) {
51 SkRRect out = inner_path_contains_rrect(reporter, in);
57 static void path_contains_rrect_check(skiatest::Reporter* reporter, const SkRect& r,
61 path_contains_rrect_check(reporter, rrect);
71 static void force_path_contains_rrect(skiatest::Reporter* reporter, SkPath& path) {
73 path_contains_rrect(reporter, path);
76 static void test_undetected_paths(skiatest::Reporter* reporter) {
88 force_path_contains_rrect(reporter, path);
101 force_path_contains_rrect(reporter, path);
114 force_path_contains_rrect(reporter, path);
127 force_path_contains_rrect(reporter, path);
133 static void test_tricky_radii(skiatest::Reporter* reporter) {
141 path_contains_rrect_check(reporter, rr);
152 path_contains_rrect_nocheck(reporter, rr);
156 static void test_empty_crbug_458524(skiatest::Reporter* reporter) {
161 path_contains_rrect_check(reporter, rr);
167 path_contains_rrect_check(reporter, rr);
170 static void test_inset(skiatest::Reporter* reporter) {
176 path_contains_rrect_check(reporter, rr);
179 path_contains_rrect_check(reporter, rr);
182 path_contains_rrect_check(reporter, rr);
186 path_contains_rrect_check(reporter, rr);
188 path_contains_rrect_check(reporter, rr);
192 static void test_9patch_rrect(skiatest::Reporter* reporter,
199 path_contains_rrect_check(reporter, rr);
201 path_contains_rrect_nocheck(reporter, rr);
208 path_contains_rrect_check(reporter, rr);
210 path_contains_rrect_nocheck(reporter, rr);
215 static void test_round_rect_basic(skiatest::Reporter* reporter) {
222 path_contains_rrect_check(reporter, rr1);
227 path_contains_rrect_check(reporter, rr1_2);
230 path_contains_rrect_check(reporter, rr1_2);
236 path_contains_rrect_check(reporter, rr2);
242 path_contains_rrect_check(reporter, rr2_2);
245 path_contains_rrect_check(reporter, rr2_3);
251 path_contains_rrect_check(reporter, rr3);
256 path_contains_rrect_check(reporter, rr3_2);
259 path_contains_rrect_check(reporter, rr3_3);
262 test_9patch_rrect(reporter, rect, 10, 9, 8, 7, true);
268 test_9patch_rrect(reporter,
279 path_contains_rrect_check(reporter, rr5);
283 static void test_round_rect_rects(skiatest::Reporter* reporter) {
290 path_contains_rrect_check(reporter, rr1);
298 path_contains_rrect_check(reporter, rr2);
305 path_contains_rrect_check(reporter, rr3);
309 static void test_round_rect_ovals(skiatest::Reporter* reporter) {
315 path_contains_rrect_check(reporter, rr1);
319 static void test_round_rect_general(skiatest::Reporter* reporter) {
325 path_contains_rrect_check(reporter, rr1);
333 path_contains_rrect_check(reporter, rr2);
336 static void test_round_rect_iffy_parameters(skiatest::Reporter* reporter) {
341 path_contains_rrect_nocheck(reporter, rr1);
349 static void test_skbug_3239(skiatest::Reporter* reporter) {
362 path_contains_rrect_check(reporter, rectx, radii);
363 path_contains_rrect_check(reporter, recty, radii);
367 static void test_mix(skiatest::Reporter* reporter) {
373 path_contains_rrect_check(reporter, rr);
376 DEF_TEST(RoundRectInPath, reporter) {
377 test_tricky_radii(reporter);
378 test_empty_crbug_458524(reporter);
379 test_inset(reporter);
380 test_round_rect_basic(reporter);
381 test_round_rect_rects(reporter);
382 test_round_rect_ovals(reporter);
383 test_round_rect_general(reporter);
384 test_undetected_paths(reporter);
385 test_round_rect_iffy_parameters(reporter);
386 test_skbug_3239(reporter);
387 test_mix(reporter);