Lines Matching refs:reporter
13 static void test_assign_and_comparison(skiatest::Reporter* reporter) { in test_assign_and_comparison() argument
38 REPORTER_ASSERT(reporter, s == copy); in test_assign_and_comparison()
42 REPORTER_ASSERT(reporter, s != copy); in test_assign_and_comparison()
48 REPORTER_ASSERT(reporter, s == copy); in test_assign_and_comparison()
55 REPORTER_ASSERT(reporter, s != copy); in test_assign_and_comparison()
63 REPORTER_ASSERT(reporter, s != copy); in test_assign_and_comparison()
70 REPORTER_ASSERT(reporter, s != copy); in test_assign_and_comparison()
75 REPORTER_ASSERT(reporter, s == copy); in test_assign_and_comparison()
78 REPORTER_ASSERT(reporter, s == copy); in test_assign_and_comparison()
85 REPORTER_ASSERT(reporter, s != copy); in test_assign_and_comparison()
88 static void assert_count(skiatest::Reporter* reporter, const SkClipStack& stack, in assert_count() argument
90 REPORTER_ASSERT(reporter, count == stack.getSaveCount()); in assert_count()
97 REPORTER_ASSERT(reporter, count == counter); in assert_count()
100 static void TestClipStack(skiatest::Reporter* reporter) { in TestClipStack() argument
103 assert_count(reporter, stack, 0); in TestClipStack()
121 REPORTER_ASSERT(reporter, clip); in TestClipStack()
122 REPORTER_ASSERT(reporter, clip->fRect); in TestClipStack()
123 REPORTER_ASSERT(reporter, !clip->fPath); in TestClipStack()
124 REPORTER_ASSERT(reporter, SkRegion::kIntersect_Op == clip->fOp); in TestClipStack()
125 REPORTER_ASSERT(reporter, *clip->fRect == answer); in TestClipStack()
127 REPORTER_ASSERT(reporter, !iter.next()); in TestClipStack()
130 assert_count(reporter, stack, 0); in TestClipStack()
132 test_assign_and_comparison(reporter); in TestClipStack()