Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

17 #define TEST_NO_INTERSECT(rgn, rect)    REPORTER_ASSERT(reporter, !rgn.intersects(rect))
18 #define TEST_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, rgn.intersects(rect))
19 #define TEST_NO_CONTAINS(rgn, rect) REPORTER_ASSERT(reporter, !rgn.contains(rect))
23 static void test_fromchrome(skiatest::Reporter* reporter) {
80 static void test_empties(skiatest::Reporter* reporter) {
84 REPORTER_ASSERT(reporter, empty.isEmpty());
85 REPORTER_ASSERT(reporter, !valid.isEmpty());
88 REPORTER_ASSERT(reporter, !empty.intersects(empty2));
89 REPORTER_ASSERT(reporter, !valid.intersects(empty));
92 REPORTER_ASSERT(reporter, !empty.contains(empty2));
93 REPORTER_ASSERT(reporter, !valid.contains(empty));
94 REPORTER_ASSERT(reporter, !empty.contains(valid));
141 static void test_contains_iter(skiatest::Reporter* reporter, const SkRegion& rgn) {
145 REPORTER_ASSERT(reporter, rgn.contains(r));
147 REPORTER_ASSERT(reporter, !rgn.contains(r));
152 static void contains_proc(skiatest::Reporter* reporter,
157 REPORTER_ASSERT(reporter, c0 == c1);
164 REPORTER_ASSERT(reporter, c0 == c1);
166 test_contains_iter(reporter, a);
167 test_contains_iter(reporter, b);
170 static void test_intersects_iter(skiatest::Reporter* reporter, const SkRegion& rgn) {
174 REPORTER_ASSERT(reporter, rgn.intersects(r));
176 REPORTER_ASSERT(reporter, rgn.intersects(r));
181 static void intersects_proc(skiatest::Reporter* reporter,
185 REPORTER_ASSERT(reporter, c0 == c1);
187 test_intersects_iter(reporter, a);
188 test_intersects_iter(reporter, b);
191 static void test_proc(skiatest::Reporter* reporter,
192 void (*proc)(skiatest::Reporter*,
200 proc(reporter, outer, inner);
233 DEF_TEST(Region, reporter) {
238 REPORTER_ASSERT(reporter, test_rects(r2, SK_ARRAY_COUNT(r2)));
246 REPORTER_ASSERT(reporter, test_rects(rects, SK_ARRAY_COUNT(rects)));
257 REPORTER_ASSERT(reporter, test_rects(rect, N));
260 test_proc(reporter, contains_proc);
261 test_proc(reporter, intersects_proc);
262 test_empties(reporter);
263 test_fromchrome(reporter);
268 static void test_write(const SkRegion& region, skiatest::Reporter* r) {