Lines Matching defs:reporter
13 static void is_empty(skiatest::Reporter* reporter, const SkPath& p) {
14 REPORTER_ASSERT(reporter, p.getBounds().isEmpty());
15 REPORTER_ASSERT(reporter, p.countPoints() == 0);
18 DEF_TEST(pathbuilder, reporter) {
21 is_empty(reporter, b.snapshot());
22 is_empty(reporter, b.detach());
31 REPORTER_ASSERT(reporter, SkPathPriv::HasComputedBounds(p0));
32 REPORTER_ASSERT(reporter, SkPathPriv::HasComputedBounds(p1));
33 REPORTER_ASSERT(reporter, SkPathPriv::HasComputedBounds(p2));
35 REPORTER_ASSERT(reporter, p0.getBounds() == SkRect::MakeLTRB(10, 10, 30, 20));
36 REPORTER_ASSERT(reporter, p0.countPoints() == 4);
38 REPORTER_ASSERT(reporter, p0 == p1);
39 REPORTER_ASSERT(reporter, p0 == p2);
41 is_empty(reporter, b.snapshot());
42 is_empty(reporter, b.detach());
45 DEF_TEST(pathbuilder_filltype, reporter) {
52 REPORTER_ASSERT(reporter, b.fillType() == fillType);
55 REPORTER_ASSERT(reporter, path.getFillType() == fillType);
56 is_empty(reporter, path);
97 DEF_TEST(pathbuilder_missing_move, reporter) {
104 REPORTER_ASSERT(reporter, check_points(b.snapshot(), pts0, SK_ARRAY_COUNT(pts0)));
111 REPORTER_ASSERT(reporter, check_points(b.snapshot(), pts1, SK_ARRAY_COUNT(pts1)));
114 DEF_TEST(pathbuilder_addRect, reporter) {
126 REPORTER_ASSERT(reporter, bp.isRect(&r2, &closed, &dir2));
127 REPORTER_ASSERT(reporter, r2 == r);
128 REPORTER_ASSERT(reporter, closed);
129 REPORTER_ASSERT(reporter, dir == dir2);
133 REPORTER_ASSERT(reporter, p == bp);
180 DEF_TEST(pathbuilder_addOval, reporter) {
189 REPORTER_ASSERT(reporter, is_eq(p, bp));
194 REPORTER_ASSERT(reporter, is_eq(p, bp));
198 REPORTER_ASSERT(reporter, !bp.isOval(&tmp));
200 REPORTER_ASSERT(reporter, !bp.isOval(&tmp));
204 DEF_TEST(pathbuilder_addRRect, reporter) {
215 REPORTER_ASSERT(reporter, is_eq(p, bp));
220 REPORTER_ASSERT(reporter, is_eq(p, bp));
225 REPORTER_ASSERT(reporter, !bp.isRRect(&tmp));
227 REPORTER_ASSERT(reporter, !bp.isRRect(&tmp));
233 DEF_TEST(pathbuilder_make, reporter) {
250 REPORTER_ASSERT(reporter, p0 == p1);
265 DEF_TEST(pathbuilder_addPolygon, reporter) {
286 REPORTER_ASSERT(reporter, path0 == path1);
291 DEF_TEST(pathbuilder_shrinkToFit, reporter) {
305 REPORTER_ASSERT(reporter, s.approximateBytesUsed() <= d.approximateBytesUsed());
308 REPORTER_ASSERT(reporter, any_smaller);
311 DEF_TEST(pathbuilder_addPath, reporter) {
321 REPORTER_ASSERT(reporter, p == SkPathBuilder().addPath(p).detach());
329 DEF_TEST(pathbuilder_lastmoveindex, reporter) {
353 REPORTER_ASSERT(reporter, a_last == expected);
354 REPORTER_ASSERT(reporter, b_last == expected);