• Home
  • Raw
  • Download

Lines Matching refs:REPORTER_ASSERT

38     REPORTER_ASSERT(reporter, bounds == rrect.rect());  in test_add_rrect()
43 REPORTER_ASSERT(reporter, bounds == path.getBounds()); in test_add_rrect()
51 REPORTER_ASSERT(reporter, !path.isConvex()); in test_skbug_3469()
337 REPORTER_ASSERT(reporter, 50 == last.fX); in test_path_close_issue1474()
338 REPORTER_ASSERT(reporter, 50 == last.fY); in test_path_close_issue1474()
348 REPORTER_ASSERT(reporter, 75 == last.fX); in test_path_close_issue1474()
349 REPORTER_ASSERT(reporter, 75 == last.fY); in test_path_close_issue1474()
359 REPORTER_ASSERT(reporter, 85 == last.fX); in test_path_close_issue1474()
360 REPORTER_ASSERT(reporter, 85 == last.fY); in test_path_close_issue1474()
370 REPORTER_ASSERT(reporter, 95 == last.fX); in test_path_close_issue1474()
371 REPORTER_ASSERT(reporter, 95 == last.fY); in test_path_close_issue1474()
376 REPORTER_ASSERT(reporter, a.getGenerationID() == b.getGenerationID()); in test_gen_id()
380 REPORTER_ASSERT(reporter, z != b.getGenerationID()); in test_gen_id()
383 REPORTER_ASSERT(reporter, a.getGenerationID() == b.getGenerationID()); in test_gen_id()
387 REPORTER_ASSERT(reporter, z != y); in test_gen_id()
391 REPORTER_ASSERT(reporter, x != y && x != z); in test_gen_id()
394 REPORTER_ASSERT(reporter, b.getGenerationID() == y && a.getGenerationID() == x); in test_gen_id()
397 REPORTER_ASSERT(reporter, b.getGenerationID() == x); in test_gen_id()
400 REPORTER_ASSERT(reporter, c.getGenerationID() == x); in test_gen_id()
404 REPORTER_ASSERT(reporter, b.getGenerationID() == x); in test_gen_id()
405 REPORTER_ASSERT(reporter, a.getGenerationID() == x); in test_gen_id()
406 REPORTER_ASSERT(reporter, w != x); in test_gen_id()
416 REPORTER_ASSERT(reporter, (v == w) == kExpectGenIDToIgnoreFill); in test_gen_id()
419 REPORTER_ASSERT(reporter, v != c.getGenerationID()); in test_gen_id()
574 REPORTER_ASSERT(reporter, smallConvex == largeConvex); in test_tiny_path_convexity()
637 REPORTER_ASSERT(reporter, path.isRect(nullptr)); in test_addrect()
642 REPORTER_ASSERT(reporter, !path.isRect(nullptr)); in test_addrect()
647 REPORTER_ASSERT(reporter, !path.isRect(nullptr)); in test_addrect()
652 REPORTER_ASSERT(reporter, !path.isRect(nullptr)); in test_addrect()
657 REPORTER_ASSERT(reporter, !path.isRect(nullptr)); in test_addrect()
665 REPORTER_ASSERT(reporter, path.isFinite()); in test_addrect_isfinite()
669 REPORTER_ASSERT(reporter, !path.isFinite()); in test_addrect_isfinite()
672 REPORTER_ASSERT(reporter, !path.isFinite()); in test_addrect_isfinite()
675 REPORTER_ASSERT(reporter, path.isFinite()); in test_addrect_isfinite()
678 REPORTER_ASSERT(reporter, path.isFinite()); in test_addrect_isfinite()
733 REPORTER_ASSERT(reporter, SkRect::MakeLTRB(0, 0, 0, 0) == path.getBounds()); in test_bounds_crbug_513799()
736 REPORTER_ASSERT(reporter, SkRect::MakeLTRB(-5, -8, -5, -8) == path.getBounds()); in test_bounds_crbug_513799()
739 REPORTER_ASSERT(reporter, SkRect::MakeLTRB(-5, -8, 3, 4) == path.getBounds()); in test_bounds_crbug_513799()
742 REPORTER_ASSERT(reporter, SkRect::MakeLTRB(-5, -8, 3, 4) == path.getBounds()); in test_bounds_crbug_513799()
807 REPORTER_ASSERT(reporter, path.getBounds().isFinite()); in test_isfinite_after_transform()
808 REPORTER_ASSERT(reporter, !path.getBounds().isEmpty()); in test_isfinite_after_transform()
811 REPORTER_ASSERT(reporter, path.getBounds().isEmpty()); in test_isfinite_after_transform()
816 REPORTER_ASSERT(reporter, !path.isFinite()); in test_isfinite_after_transform()
817 REPORTER_ASSERT(reporter, path.getBounds().isEmpty()); in test_isfinite_after_transform()
883 REPORTER_ASSERT(reporter, temp.isConvex()); in test_arb_round_rect_is_convex()
911 REPORTER_ASSERT(reporter, temp.isRect(&result)); in test_arb_zero_rad_round_rect_is_rect()
912 REPORTER_ASSERT(reporter, r == result); in test_arb_zero_rad_round_rect_is_rect()
923 REPORTER_ASSERT(reporter, r.isFinite()); in test_rect_isfinite()
925 REPORTER_ASSERT(reporter, !r.isFinite()); in test_rect_isfinite()
927 REPORTER_ASSERT(reporter, !r.isFinite()); in test_rect_isfinite()
936 REPORTER_ASSERT(reporter, isFine); in test_rect_isfinite()
937 REPORTER_ASSERT(reporter, !r.isEmpty()); in test_rect_isfinite()
941 REPORTER_ASSERT(reporter, !isFine); in test_rect_isfinite()
942 REPORTER_ASSERT(reporter, r.isEmpty()); in test_rect_isfinite()
946 REPORTER_ASSERT(reporter, !isFine); in test_rect_isfinite()
947 REPORTER_ASSERT(reporter, r.isEmpty()); in test_rect_isfinite()
956 REPORTER_ASSERT(reporter, path.isFinite()); in test_path_isfinite()
959 REPORTER_ASSERT(reporter, path.isFinite()); in test_path_isfinite()
963 REPORTER_ASSERT(reporter, path.isFinite()); in test_path_isfinite()
967 REPORTER_ASSERT(reporter, !path.isFinite()); in test_path_isfinite()
971 REPORTER_ASSERT(reporter, !path.isFinite()); in test_path_isfinite()
981 REPORTER_ASSERT(reporter, !path.isLastContourClosed()); in test_islastcontourclosed()
983 REPORTER_ASSERT(reporter, !path.isLastContourClosed()); in test_islastcontourclosed()
985 REPORTER_ASSERT(reporter, path.isLastContourClosed()); in test_islastcontourclosed()
987 REPORTER_ASSERT(reporter, !path.isLastContourClosed()); in test_islastcontourclosed()
989 REPORTER_ASSERT(reporter, !path.isLastContourClosed()); in test_islastcontourclosed()
991 REPORTER_ASSERT(reporter, path.isLastContourClosed()); in test_islastcontourclosed()
993 REPORTER_ASSERT(reporter, !path.isLastContourClosed()); in test_islastcontourclosed()
1013 REPORTER_ASSERT(reporter, firstTime); in test_poly()
1014 REPORTER_ASSERT(reporter, pts[0] == srcPts[0]); in test_poly()
1019 REPORTER_ASSERT(reporter, !firstTime); in test_poly()
1020 REPORTER_ASSERT(reporter, pts[1] == srcPts[0]); in test_poly()
1033 REPORTER_ASSERT(reporter, !firstTime); in test_poly()
1034 REPORTER_ASSERT(reporter, !foundClose); in test_poly()
1035 REPORTER_ASSERT(reporter, expectClose); in test_poly()
1043 REPORTER_ASSERT(reporter, foundClose == expectClose); in test_poly()
1066 REPORTER_ASSERT(reporter, rec.isFillStyle()); in test_strokerec()
1069 REPORTER_ASSERT(reporter, rec.isHairlineStyle()); in test_strokerec()
1072 REPORTER_ASSERT(reporter, SkStrokeRec::kStroke_Style == rec.getStyle()); in test_strokerec()
1075 REPORTER_ASSERT(reporter, SkStrokeRec::kStrokeAndFill_Style == rec.getStyle()); in test_strokerec()
1078 REPORTER_ASSERT(reporter, SkStrokeRec::kHairline_Style == rec.getStyle()); in test_strokerec()
1081 REPORTER_ASSERT(reporter, SkStrokeRec::kFill_Style == rec.getStyle()); in test_strokerec()
1097 REPORTER_ASSERT(reporter, dir == expected); in check_direction()
1099 REPORTER_ASSERT(reporter, SkPathPriv::kUnknown_FirstDirection == expected); in check_direction()
1106 REPORTER_ASSERT(reporter, !SkPathPriv::CheapComputeFirstDirection(path, nullptr)); in test_direction()
1107REPORTER_ASSERT(reporter, !SkPathPriv::CheapIsFirstDirection(path, SkPathPriv::kCW_FirstDirection)… in test_direction()
1108REPORTER_ASSERT(reporter, !SkPathPriv::CheapIsFirstDirection(path, SkPathPriv::kCCW_FirstDirection… in test_direction()
1109REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(path, SkPathPriv::kUnknown_FirstDirect… in test_direction()
1122 REPORTER_ASSERT(reporter, valid); in test_direction()
1123 REPORTER_ASSERT(reporter, !SkPathPriv::CheapComputeFirstDirection(path, nullptr)); in test_direction()
1138 REPORTER_ASSERT(reporter, valid); in test_direction()
1154 REPORTER_ASSERT(reporter, valid); in test_direction()
1187 REPORTER_ASSERT(reporter, SkPath::kConvex_Convexity == path.getConvexity()); in test_direction()
1213 REPORTER_ASSERT(reporter, path0.getBounds() == path1.getBounds()); in test_bounds()
1268 REPORTER_ASSERT(reporter, mv == pts[0]); in check_close()
1277 REPORTER_ASSERT(reporter, !i || nMT == nCL); in check_close()
1352 REPORTER_ASSERT(reporter, c == expected); in check_convexity()
1523 REPORTER_ASSERT(reporter, p.isConvex()); in check_convex_bounds()
1524 REPORTER_ASSERT(reporter, p.getBounds() == bounds); in check_convex_bounds()
1527 REPORTER_ASSERT(reporter, p2.isConvex()); in check_convex_bounds()
1528 REPORTER_ASSERT(reporter, p2.getBounds() == bounds); in check_convex_bounds()
1532 REPORTER_ASSERT(reporter, other.isConvex()); in check_convex_bounds()
1533 REPORTER_ASSERT(reporter, other.getBounds() == bounds); in check_convex_bounds()
1567REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(path, SkPathPriv::kCCW_FirstDirection)… in test_convexity()
1572REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(path, SkPathPriv::kCW_FirstDirection)); in test_convexity()
1603REPORTER_ASSERT(reporter, (gRec[i].fExpectedDirection == SkPathPriv::kUnknown_FirstDirection) in test_convexity()
1605 REPORTER_ASSERT(reporter, !foundDir || gRec[i].fExpectedDirection == dir); in test_convexity()
1608 REPORTER_ASSERT(reporter, gRec[i].fExpectedConvexity == path.getConvexity()); in test_convexity()
1691 REPORTER_ASSERT(reporter, !path.isLine(nullptr)); in test_isLine()
1696 REPORTER_ASSERT(reporter, !path.isLine(pts)); in test_isLine()
1698 REPORTER_ASSERT(reporter, pts[0].equals(value, value)); in test_isLine()
1699 REPORTER_ASSERT(reporter, pts[1].equals(value, value)); in test_isLine()
1703 REPORTER_ASSERT(reporter, value != moveX && value != moveY); in test_isLine()
1706 REPORTER_ASSERT(reporter, !path.isLine(nullptr)); in test_isLine()
1707 REPORTER_ASSERT(reporter, !path.isLine(pts)); in test_isLine()
1709 REPORTER_ASSERT(reporter, pts[0].equals(value, value)); in test_isLine()
1710 REPORTER_ASSERT(reporter, pts[1].equals(value, value)); in test_isLine()
1714 REPORTER_ASSERT(reporter, value != lineX && value != lineY); in test_isLine()
1717 REPORTER_ASSERT(reporter, path.isLine(nullptr)); in test_isLine()
1719 REPORTER_ASSERT(reporter, !pts[0].equals(moveX, moveY)); in test_isLine()
1720 REPORTER_ASSERT(reporter, !pts[1].equals(lineX, lineY)); in test_isLine()
1721 REPORTER_ASSERT(reporter, path.isLine(pts)); in test_isLine()
1722 REPORTER_ASSERT(reporter, pts[0].equals(moveX, moveY)); in test_isLine()
1723 REPORTER_ASSERT(reporter, pts[1].equals(lineX, lineY)); in test_isLine()
1726 REPORTER_ASSERT(reporter, !path.isLine(nullptr)); in test_isLine()
1727 REPORTER_ASSERT(reporter, !path.isLine(pts)); in test_isLine()
1728 REPORTER_ASSERT(reporter, pts[0].equals(moveX, moveY)); in test_isLine()
1729 REPORTER_ASSERT(reporter, pts[1].equals(lineX, lineY)); in test_isLine()
1733 REPORTER_ASSERT(reporter, !path.isLine(nullptr)); in test_isLine()
1839 REPORTER_ASSERT(reporter, kQueries[q].fInRect == in test_conservativelyContains()
1844 REPORTER_ASSERT(reporter, kQueries[q].fInCircle == in test_conservativelyContains()
1849 REPORTER_ASSERT(reporter, kQueries[q].fInRR == in test_conservativelyContains()
1861 REPORTER_ASSERT(reporter, kQueries[q].fInCubicRR == in test_conservativelyContains()
1873 REPORTER_ASSERT(reporter, !path.conservativelyContainsRect(qRect)); in test_conservativelyContains()
1884 REPORTER_ASSERT(reporter, path.conservativelyContainsRect(SkRect::MakeXYWH(SkIntToScalar(50), 0, in test_conservativelyContains()
1888 REPORTER_ASSERT(reporter, !path.conservativelyContainsRect( in test_conservativelyContains()
1894 REPORTER_ASSERT(reporter, !path.conservativelyContainsRect(SkRect::MakeXYWH(SkIntToScalar(-10), in test_conservativelyContains()
1900 REPORTER_ASSERT(reporter, !path.conservativelyContainsRect(SkRect::MakeXYWH(SkIntToScalar(10), in test_conservativelyContains()
1912 REPORTER_ASSERT(reporter, path.conservativelyContainsRect(SkRect::MakeXYWH(SkIntToScalar(50), 0, in test_conservativelyContains()
1924 REPORTER_ASSERT(reporter, path.conservativelyContainsRect(SkRect::MakeXYWH(SkIntToScalar(50), 0, in test_conservativelyContains()
1936 REPORTER_ASSERT(reporter, path.conservativelyContainsRect(SkRect::MakeXYWH(SkIntToScalar(50), 0, in test_conservativelyContains()
1950 REPORTER_ASSERT(reporter, !path.conservativelyContainsRect( in test_conservativelyContains()
1957 REPORTER_ASSERT(reporter, !path.conservativelyContainsRect(SkRect::MakeXYWH(0, 0, 1, 1))); in test_conservativelyContains()
1967 REPORTER_ASSERT(reporter, path.isRect(nullptr, &isClosed, nullptr)); in test_isRect_open_close()
1968 REPORTER_ASSERT(reporter, isClosed); in test_isRect_open_close()
2071 REPORTER_ASSERT(reporter, tests[testIndex].fIsRect == path.isRect(nullptr)); in test_isRect()
2079REPORTER_ASSERT(reporter, SkPathPriv::CheapComputeFirstDirection(path, &cheapDirection)); in test_isRect()
2080 REPORTER_ASSERT(reporter, path.isRect(&computed, &isClosed, &direction)); in test_isRect()
2081 REPORTER_ASSERT(reporter, expected == computed); in test_isRect()
2082 REPORTER_ASSERT(reporter, isClosed == tests[testIndex].fClose); in test_isRect()
2083 REPORTER_ASSERT(reporter, SkPathPriv::AsFirstDirection(direction) == cheapDirection); in test_isRect()
2089 REPORTER_ASSERT(reporter, !path.isRect(&computed, &isClosed, &direction)); in test_isRect()
2090 REPORTER_ASSERT(reporter, computed.fLeft == 123 && computed.fTop == 456); in test_isRect()
2091 REPORTER_ASSERT(reporter, computed.fRight == 789 && computed.fBottom == 1011); in test_isRect()
2092 REPORTER_ASSERT(reporter, isClosed == (bool) -1); in test_isRect()
2093 REPORTER_ASSERT(reporter, direction == (SkPath::Direction) -1); in test_isRect()
2105 REPORTER_ASSERT(reporter, !path1.isRect(nullptr)); in test_isRect()
2117 REPORTER_ASSERT(reporter, !path1.isRect(nullptr)); in test_isRect()
2126 REPORTER_ASSERT(reporter, !path1.isRect(nullptr)); in test_isRect()
2138 REPORTER_ASSERT(reporter, !path1.isRect(nullptr)); in test_isRect()
2150 REPORTER_ASSERT(reporter, !path1.isRect(nullptr)); in test_isRect()
2159 REPORTER_ASSERT(reporter, SkPathPriv::IsSimpleClosedRect(path, &r, &d, &s)); in check_simple_closed_rect()
2160 REPORTER_ASSERT(reporter, r == rect); in check_simple_closed_rect()
2161 REPORTER_ASSERT(reporter, d == dir); in check_simple_closed_rect()
2162 REPORTER_ASSERT(reporter, s == start); in check_simple_closed_rect()
2182 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleClosedRect(path2, &r, &d, &s)); in test_is_simple_closed_rect()
2185 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleClosedRect(path2, &r, &d, &s)); in test_is_simple_closed_rect()
2188 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleClosedRect(path2, &r, &d, &s)); in test_is_simple_closed_rect()
2209 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleClosedRect(path2, &r, &d, &s)); in test_is_simple_closed_rect()
2219 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleClosedRect(path2, &r, &d, &s)); in test_is_simple_closed_rect()
2224 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleClosedRect(path2, &r, &d, &s)); in test_is_simple_closed_rect()
2229 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleClosedRect(path2, &r, &d, &s)); in test_is_simple_closed_rect()
2258 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleClosedRect(path, &rect, &dir, &start)); in test_is_simple_closed_rect()
2266 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleClosedRect(path, &rect, &dir, &start)); in test_is_simple_closed_rect()
2274 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleClosedRect(path, &rect, &dir, &start)); in test_is_simple_closed_rect()
2282 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleClosedRect(path, &rect, &dir, &start)); in test_is_simple_closed_rect()
2370 REPORTER_ASSERT(reporter, in test_isNestedFillRects()
2386 REPORTER_ASSERT(reporter, path.isNestedFillRects(computed, computedDirs)); in test_isNestedFillRects()
2387 REPORTER_ASSERT(reporter, expected[0] == computed[0]); in test_isNestedFillRects()
2388 REPORTER_ASSERT(reporter, expected[1] == computed[1]); in test_isNestedFillRects()
2389REPORTER_ASSERT(reporter, expectedDirs[0] == SkPathPriv::AsFirstDirection(computedDirs[0])); in test_isNestedFillRects()
2390REPORTER_ASSERT(reporter, expectedDirs[1] == SkPathPriv::AsFirstDirection(computedDirs[1])); in test_isNestedFillRects()
2408 REPORTER_ASSERT(reporter, !path1.isNestedFillRects(nullptr)); in test_isNestedFillRects()
2426 REPORTER_ASSERT(reporter, !path1.isNestedFillRects(nullptr)); in test_isNestedFillRects()
2441 REPORTER_ASSERT(reporter, !path1.isNestedFillRects(nullptr)); in test_isNestedFillRects()
2459 REPORTER_ASSERT(reporter, !path1.isNestedFillRects(nullptr)); in test_isNestedFillRects()
2477 REPORTER_ASSERT(reporter, !path1.isNestedFillRects(nullptr)); in test_isNestedFillRects()
2483 REPORTER_ASSERT(reporter, !path1.isNestedFillRects(nullptr)); in test_isNestedFillRects()
2498 REPORTER_ASSERT(reporter, path.isNestedFillRects(nullptr)); in test_isNestedFillRects()
2507 REPORTER_ASSERT(reporter, dst.isNestedFillRects(nullptr)); in test_isNestedFillRects()
2520 REPORTER_ASSERT(reporter, readBack != p); in write_and_read_back()
2522 REPORTER_ASSERT(reporter, readBack == p); in write_and_read_back()
2524 REPORTER_ASSERT(reporter, readBack.getConvexityOrUnknown() == in write_and_read_back()
2530 REPORTER_ASSERT(reporter, readBack.isOval(nullptr) == p.isOval(nullptr)); in write_and_read_back()
2532 REPORTER_ASSERT(reporter, oval0 == oval1); in write_and_read_back()
2533 REPORTER_ASSERT(reporter, dir0 == dir1); in write_and_read_back()
2534 REPORTER_ASSERT(reporter, start0 == start1); in write_and_read_back()
2536 REPORTER_ASSERT(reporter, readBack.isRRect(nullptr) == p.isRRect(nullptr)); in write_and_read_back()
2539 REPORTER_ASSERT(reporter, rrect0 == rrect1); in write_and_read_back()
2540 REPORTER_ASSERT(reporter, dir0 == dir1); in write_and_read_back()
2541 REPORTER_ASSERT(reporter, start0 == start1); in write_and_read_back()
2546 REPORTER_ASSERT(reporter, origBounds == readBackBounds); in write_and_read_back()
2569 REPORTER_ASSERT(reporter, path.readFromMemory(buffer, sizeof(buffer))); in test_corrupt_flattening()
2574 REPORTER_ASSERT(reporter, !path.readFromMemory(buffer, sizeof(buffer))); in test_corrupt_flattening()
2578 REPORTER_ASSERT(reporter, !path.readFromMemory(buffer, sizeof(buffer))); in test_corrupt_flattening()
2580 REPORTER_ASSERT(reporter, !path.readFromMemory(buffer, sizeof(buffer))); in test_corrupt_flattening()
2584 REPORTER_ASSERT(reporter, !path.readFromMemory(buffer, sizeof(buffer))); in test_corrupt_flattening()
2586 REPORTER_ASSERT(reporter, !path.readFromMemory(buffer, sizeof(buffer))); in test_corrupt_flattening()
2594 REPORTER_ASSERT(reporter, !path.readFromMemory(buffer, sizeof(buffer))); in test_corrupt_flattening()
2600 REPORTER_ASSERT(reporter, !path.readFromMemory(buffer, sizeof(buffer))); in test_corrupt_flattening()
2602 REPORTER_ASSERT(reporter, !path.readFromMemory(buffer, sizeof(buffer))); in test_corrupt_flattening()
2608 REPORTER_ASSERT(reporter, !path.readFromMemory(buffer, sizeof(buffer))); in test_corrupt_flattening()
2633 REPORTER_ASSERT(reporter, size1 == size2); in test_flattening()
2637 REPORTER_ASSERT(reporter, size1 == size3); in test_flattening()
2638 REPORTER_ASSERT(reporter, p == p2); in test_flattening()
2641 REPORTER_ASSERT(reporter, !size3); in test_flattening()
2645 REPORTER_ASSERT(reporter, tooShort.isEmpty()); in test_flattening()
2649 REPORTER_ASSERT(reporter, size1 == size3); in test_flattening()
2650 REPORTER_ASSERT(reporter, memcmp(buffer, buffer2, size1) == 0); in test_flattening()
2693 REPORTER_ASSERT(reporter, p == p1); in test_transform()
2706 REPORTER_ASSERT(reporter, kPtCount == count); in test_transform()
2709 REPORTER_ASSERT(reporter, newPt == pts1[i]); in test_transform()
2722 REPORTER_ASSERT(reporter, matrix.invert(&matrix)); in test_transform()
2726 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(pBounds.fLeft, p1Bounds.fLeft)); in test_transform()
2727 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(pBounds.fTop, p1Bounds.fTop)); in test_transform()
2728 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(pBounds.fRight, p1Bounds.fRight)); in test_transform()
2729 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(pBounds.fBottom, p1Bounds.fBottom)); in test_transform()
2742REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(p1, SkPathPriv::kCW_FirstDirection)); in test_transform()
2754REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(p1, SkPathPriv::kCCW_FirstDirection)); in test_transform()
2764REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(p1, SkPathPriv::kUnknown_FirstDirectio… in test_transform()
2828 REPORTER_ASSERT(reporter, valid); in test_zero_length_paths()
2829 REPORTER_ASSERT(reporter, !p.isEmpty()); in test_zero_length_paths()
2830 REPORTER_ASSERT(reporter, gZeroLengthTests[i].numResultPts == (size_t)p.countPoints()); in test_zero_length_paths()
2831 REPORTER_ASSERT(reporter, gZeroLengthTests[i].resultBound == p.getBounds()); in test_zero_length_paths()
2832REPORTER_ASSERT(reporter, gZeroLengthTests[i].numResultVerbs == (size_t)p.getVerbs(verbs, SK_ARRAY… in test_zero_length_paths()
2834 REPORTER_ASSERT(reporter, gZeroLengthTests[i].resultVerbs[j] == verbs[j]); in test_zero_length_paths()
2851 REPORTER_ASSERT(reporter, SkPath::kQuad_SegmentMask == p.getSegmentMasks()); in test_segment_masks()
2852 REPORTER_ASSERT(reporter, !p.isEmpty()); in test_segment_masks()
2854 REPORTER_ASSERT(reporter, p2.getSegmentMasks() == p.getSegmentMasks()); in test_segment_masks()
2856 REPORTER_ASSERT(reporter, kCurveSegmentMask == p.getSegmentMasks()); in test_segment_masks()
2857 REPORTER_ASSERT(reporter, !p.isEmpty()); in test_segment_masks()
2859 REPORTER_ASSERT(reporter, p2.getSegmentMasks() == p.getSegmentMasks()); in test_segment_masks()
2864 REPORTER_ASSERT(reporter, SkPath::kCubic_SegmentMask == p.getSegmentMasks()); in test_segment_masks()
2866 REPORTER_ASSERT(reporter, p2.getSegmentMasks() == p.getSegmentMasks()); in test_segment_masks()
2868 REPORTER_ASSERT(reporter, !p.isEmpty()); in test_segment_masks()
2877 REPORTER_ASSERT(reporter, noPathIter.next(pts) == SkPath::kDone_Verb); in test_iter()
2881 REPORTER_ASSERT(reporter, noPathIter.next(pts) == SkPath::kDone_Verb); in test_iter()
2885 REPORTER_ASSERT(reporter, noPathIter.next(pts) == SkPath::kDone_Verb); in test_iter()
2889 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kDone_Verb); in test_iter()
2893 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kDone_Verb); in test_iter()
2957 REPORTER_ASSERT(reporter, valid); in test_iter()
2961REPORTER_ASSERT(reporter, iter.next(pts, gIterTests[i].consumeDegenerates) == gIterTests[i].result… in test_iter()
2963 REPORTER_ASSERT(reporter, pts[k] == gIterTests[i].resultPts[l++]); in test_iter()
2966 REPORTER_ASSERT(reporter, j == (int)gIterTests[i].numResultVerbs); in test_iter()
2971 REPORTER_ASSERT(reporter, !iter.isClosedContour()); in test_iter()
2975 REPORTER_ASSERT(reporter, iter.isClosedContour()); in test_iter()
2978 REPORTER_ASSERT(reporter, !iter.isClosedContour()); in test_iter()
2981 REPORTER_ASSERT(reporter, iter.isClosedContour()); in test_iter()
2985 REPORTER_ASSERT(reporter, !iter.isClosedContour()); in test_iter()
2996 REPORTER_ASSERT(reporter, SkPath::kClose_Verb == iter.next(pts, false)); in test_iter()
3003 REPORTER_ASSERT(reporter, SkPath::kQuad_Verb == iter.next(pts, false)); in test_iter()
3006 REPORTER_ASSERT(reporter, SkPath::kDone_Verb == iter.next(pts, true)); in test_iter()
3012 REPORTER_ASSERT(reporter, SkPath::kConic_Verb == iter.next(pts, false)); in test_iter()
3015 REPORTER_ASSERT(reporter, SkPath::kDone_Verb == iter.next(pts, true)); in test_iter()
3021 REPORTER_ASSERT(reporter, SkPath::kCubic_Verb == iter.next(pts, false)); in test_iter()
3024 REPORTER_ASSERT(reporter, SkPath::kDone_Verb == iter.next(pts, true)); in test_iter()
3029 REPORTER_ASSERT(reporter, SkPath::kCubic_Verb == iter.next(pts, false)); in test_iter()
3032 REPORTER_ASSERT(reporter, SkPath::kDone_Verb == iter.next(pts, true)); in test_iter()
3044 REPORTER_ASSERT(reporter, SkPath::kMove_Verb == iter.next(pts)); in test_iter()
3045 REPORTER_ASSERT(reporter, SkPath::kLine_Verb == iter.next(pts)); in test_iter()
3046 REPORTER_ASSERT(reporter, SkPath::kLine_Verb == iter.next(pts)); in test_iter()
3047 REPORTER_ASSERT(reporter, SkPath::kConic_Verb == iter.next(pts)); in test_iter()
3048 REPORTER_ASSERT(reporter, SK_ScalarRoot2Over2 == iter.conicWeight()); in test_iter()
3057 REPORTER_ASSERT(reporter, noPathIter.next(pts) == SkPath::kDone_Verb); in test_raw_iter()
3060 REPORTER_ASSERT(reporter, noPathIter.next(pts) == SkPath::kDone_Verb); in test_raw_iter()
3064 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kDone_Verb); in test_raw_iter()
3069 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kMove_Verb); in test_raw_iter()
3070 REPORTER_ASSERT(reporter, pts[0].fX == SK_Scalar1); in test_raw_iter()
3071 REPORTER_ASSERT(reporter, pts[0].fY == 0); in test_raw_iter()
3072 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kDone_Verb); in test_raw_iter()
3078 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kMove_Verb); in test_raw_iter()
3079 REPORTER_ASSERT(reporter, pts[0].fX == SK_Scalar1); in test_raw_iter()
3080 REPORTER_ASSERT(reporter, pts[0].fY == 0); in test_raw_iter()
3081 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kMove_Verb); in test_raw_iter()
3082 REPORTER_ASSERT(reporter, pts[0].fX == SK_Scalar1*2); in test_raw_iter()
3083 REPORTER_ASSERT(reporter, pts[0].fY == SK_Scalar1); in test_raw_iter()
3084 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kMove_Verb); in test_raw_iter()
3085 REPORTER_ASSERT(reporter, pts[0].fX == SK_Scalar1*3); in test_raw_iter()
3086 REPORTER_ASSERT(reporter, pts[0].fY == SK_Scalar1*2); in test_raw_iter()
3087 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kDone_Verb); in test_raw_iter()
3093 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kDone_Verb); in test_raw_iter()
3107 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kMove_Verb); in test_raw_iter()
3108 REPORTER_ASSERT(reporter, pts[0].fX == SK_Scalar1); in test_raw_iter()
3109 REPORTER_ASSERT(reporter, pts[0].fY == 0); in test_raw_iter()
3110 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kClose_Verb); in test_raw_iter()
3111 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kMove_Verb); in test_raw_iter()
3112 REPORTER_ASSERT(reporter, pts[0].fX == SK_Scalar1*2); in test_raw_iter()
3113 REPORTER_ASSERT(reporter, pts[0].fY == SK_Scalar1); in test_raw_iter()
3114 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kClose_Verb); in test_raw_iter()
3115 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kMove_Verb); in test_raw_iter()
3116 REPORTER_ASSERT(reporter, pts[0].fX == SK_Scalar1*3); in test_raw_iter()
3117 REPORTER_ASSERT(reporter, pts[0].fY == SK_Scalar1*2); in test_raw_iter()
3118 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kMove_Verb); in test_raw_iter()
3119 REPORTER_ASSERT(reporter, pts[0].fX == SK_Scalar1*4); in test_raw_iter()
3120 REPORTER_ASSERT(reporter, pts[0].fY == SK_Scalar1*3); in test_raw_iter()
3121 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kClose_Verb); in test_raw_iter()
3122 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kDone_Verb); in test_raw_iter()
3229 REPORTER_ASSERT(reporter, nextVerb == expectedVerbs[numIterVerbs]); in test_raw_iter()
3233 REPORTER_ASSERT(reporter, numIterPts < numPoints); in test_raw_iter()
3234 REPORTER_ASSERT(reporter, pts[0] == expectedPts[numIterPts]); in test_raw_iter()
3239 REPORTER_ASSERT(reporter, numIterPts < numPoints + 1); in test_raw_iter()
3240 REPORTER_ASSERT(reporter, pts[0] == lastPt); in test_raw_iter()
3241 REPORTER_ASSERT(reporter, pts[1] == expectedPts[numIterPts]); in test_raw_iter()
3247 REPORTER_ASSERT(reporter, numIterPts < numPoints + 2); in test_raw_iter()
3248 REPORTER_ASSERT(reporter, pts[0] == lastPt); in test_raw_iter()
3249 REPORTER_ASSERT(reporter, pts[1] == expectedPts[numIterPts]); in test_raw_iter()
3250 REPORTER_ASSERT(reporter, pts[2] == expectedPts[numIterPts + 1]); in test_raw_iter()
3255 REPORTER_ASSERT(reporter, numIterPts < numPoints + 3); in test_raw_iter()
3256 REPORTER_ASSERT(reporter, pts[0] == lastPt); in test_raw_iter()
3257 REPORTER_ASSERT(reporter, pts[1] == expectedPts[numIterPts]); in test_raw_iter()
3258 REPORTER_ASSERT(reporter, pts[2] == expectedPts[numIterPts + 1]); in test_raw_iter()
3259 REPORTER_ASSERT(reporter, pts[3] == expectedPts[numIterPts + 2]); in test_raw_iter()
3270 REPORTER_ASSERT(reporter, numIterPts == numPoints); in test_raw_iter()
3271 REPORTER_ASSERT(reporter, numIterVerbs == numVerbs); in test_raw_iter()
3280 REPORTER_ASSERT(reporter, path.isOval(&rect) == expectedCircle); in check_for_circle()
3284 REPORTER_ASSERT(reporter, rect.height() == rect.width()); in check_for_circle()
3285 REPORTER_ASSERT(reporter, SkPathPriv::AsFirstDirection(isOvalDir) == expectedDir); in check_for_circle()
3288 REPORTER_ASSERT(reporter, path == tmpPath); in check_for_circle()
3290 REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(path, expectedDir)); in check_for_circle()
3305 REPORTER_ASSERT(reporter, SkPathPriv::kCW_FirstDirection == dir); in test_circle_skew()
3362 REPORTER_ASSERT(reporter, SkPathPriv::kCCW_FirstDirection == dir); in test_circle_mirror_x()
3380 REPORTER_ASSERT(reporter, SkPathPriv::kCCW_FirstDirection == dir); in test_circle_mirror_y()
3505 REPORTER_ASSERT(reporter, path.isEmpty()); in test_circle()
3519 REPORTER_ASSERT(reporter, path.isOval(nullptr)); in test_oval()
3526 REPORTER_ASSERT(reporter, tmp.isOval(nullptr, &dir, &start)); in test_oval()
3527 REPORTER_ASSERT(reporter, 2 == start); in test_oval()
3528 REPORTER_ASSERT(reporter, SkPath::kCW_Direction == dir); in test_oval()
3535 REPORTER_ASSERT(reporter, !tmp.isOval(nullptr)); in test_oval()
3542 REPORTER_ASSERT(reporter, !tmp.isOval(nullptr)); in test_oval()
3546 REPORTER_ASSERT(reporter, !tmp.isOval(nullptr)); in test_oval()
3552 REPORTER_ASSERT(reporter, !tmp.isOval(nullptr)); in test_oval()
3559 REPORTER_ASSERT(reporter, path.isOval(nullptr)); in test_oval()
3566 REPORTER_ASSERT(reporter, path.isOval(nullptr, &dir, &start)); in test_oval()
3567 REPORTER_ASSERT(reporter, SkPath::kCW_Direction == dir); in test_oval()
3568 REPORTER_ASSERT(reporter, 1 == start); in test_oval()
3574 REPORTER_ASSERT(reporter, p.isEmpty()); in test_empty()
3575 REPORTER_ASSERT(reporter, 0 == p.countPoints()); in test_empty()
3576 REPORTER_ASSERT(reporter, 0 == p.countVerbs()); in test_empty()
3577 REPORTER_ASSERT(reporter, 0 == p.getSegmentMasks()); in test_empty()
3578 REPORTER_ASSERT(reporter, p.isConvex()); in test_empty()
3579 REPORTER_ASSERT(reporter, p.getFillType() == SkPath::kWinding_FillType); in test_empty()
3580 REPORTER_ASSERT(reporter, !p.isInverseFillType()); in test_empty()
3581 REPORTER_ASSERT(reporter, p == empty); in test_empty()
3582 REPORTER_ASSERT(reporter, !(p != empty)); in test_empty()
3587 REPORTER_ASSERT(reporter, path->isConvex()); in test_rrect_is_convex()
3588REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(*path, SkPathPriv::AsFirstDirection(di… in test_rrect_is_convex()
3590 REPORTER_ASSERT(reporter, path->isConvex()); in test_rrect_is_convex()
3596 REPORTER_ASSERT(reporter, path->isConvex()); in test_rrect_convexity_is_unknown()
3597REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(*path, SkPathPriv::AsFirstDirection(di… in test_rrect_convexity_is_unknown()
3599 REPORTER_ASSERT(reporter, path->getConvexity() == SkPath::kUnknown_Convexity); in test_rrect_convexity_is_unknown()
3631 REPORTER_ASSERT(reporter, p.isRect(&returnedRect)); in test_rrect()
3632 REPORTER_ASSERT(reporter, returnedRect == r); in test_rrect()
3639 REPORTER_ASSERT(reporter, p.isRect(nullptr, &closed, &dir)); in test_rrect()
3640 REPORTER_ASSERT(reporter, closed); in test_rrect()
3641 REPORTER_ASSERT(reporter, SkPath::kCW_Direction == dir); in test_rrect()
3645 REPORTER_ASSERT(reporter, !p.isConvex()); in test_rrect()
3649 REPORTER_ASSERT(reporter, !p.isConvex()); in test_rrect()
3654 REPORTER_ASSERT(reporter, p.isEmpty()); in test_rrect()
3663 REPORTER_ASSERT(reporter, rr.isEmpty()); in test_rrect()
3673 REPORTER_ASSERT(reporter, emptyOval.isEmpty()); in test_arc()
3675 REPORTER_ASSERT(reporter, p.isEmpty()); in test_arc()
3679 REPORTER_ASSERT(reporter, p.isEmpty()); in test_arc()
3684 REPORTER_ASSERT(reporter, p == cwOval); in test_arc()
3689 REPORTER_ASSERT(reporter, p == ccwOval); in test_arc()
3692 REPORTER_ASSERT(reporter, p.isConvex()); in test_arc()
3693 REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(p, SkPathPriv::kCW_FirstDirection)); in test_arc()
3695 REPORTER_ASSERT(reporter, p.isConvex()); in test_arc()
3729 REPORTER_ASSERT(reporter, isOval); in check_oval_arc()
3732 REPORTER_ASSERT(reporter, path == recreatedPath); in check_oval_arc()
3733 REPORTER_ASSERT(reporter, oval_start_index_to_angle(s) == canonical_start_angle(start)); in check_oval_arc()
3734 REPORTER_ASSERT(reporter, (SkPath::kCW_Direction == d) == (sweep > 0.f)); in check_oval_arc()
3748 REPORTER_ASSERT(reporter, !path.isOval(nullptr)); in test_arc_ovals()
3766 REPORTER_ASSERT(reporter, v == SkPath::kMove_Verb); in check_move()
3767 REPORTER_ASSERT(reporter, pts[0].fX == x0); in check_move()
3768 REPORTER_ASSERT(reporter, pts[0].fY == y0); in check_move()
3775 REPORTER_ASSERT(reporter, v == SkPath::kLine_Verb); in check_line()
3776 REPORTER_ASSERT(reporter, pts[1].fX == x1); in check_line()
3777 REPORTER_ASSERT(reporter, pts[1].fY == y1); in check_line()
3784 REPORTER_ASSERT(reporter, v == SkPath::kQuad_Verb); in check_quad()
3785 REPORTER_ASSERT(reporter, pts[1].fX == x1); in check_quad()
3786 REPORTER_ASSERT(reporter, pts[1].fY == y1); in check_quad()
3787 REPORTER_ASSERT(reporter, pts[2].fX == x2); in check_quad()
3788 REPORTER_ASSERT(reporter, pts[2].fY == y2); in check_quad()
3794 REPORTER_ASSERT(reporter, v == SkPath::kDone_Verb); in check_done()
3861 REPORTER_ASSERT(reporter, p.getLastPt(&pt) && pt.fX == 1 && pt.fY == 1); in test_arcTo()
3864 REPORTER_ASSERT(reporter, p.getLastPt(&pt) && pt.fX == 1 && pt.fY == -1); in test_arcTo()
3878 REPORTER_ASSERT(reporter, nearly_equal(p.getBounds(), oval)); in test_arcTo()
3884 REPORTER_ASSERT(reporter, nearly_equal(p.getBounds(), oval)); in test_arcTo()
3891 REPORTER_ASSERT(reporter, p.isEmpty()); in test_arcTo()
3896 REPORTER_ASSERT(reporter, p.isEmpty()); in test_arcTo()
3910 REPORTER_ASSERT(reporter, p.getBounds() == expected); in test_addPath()
3914 REPORTER_ASSERT(reporter, p.getBounds() == reverseExpected); in test_addPath()
3930 REPORTER_ASSERT(reporter, verbcount == 4); in test_addPathMode()
3931 REPORTER_ASSERT(reporter, verbs[0] == SkPath::kMove_Verb); in test_addPathMode()
3932 REPORTER_ASSERT(reporter, verbs[1] == SkPath::kLine_Verb); in test_addPathMode()
3933 REPORTER_ASSERT(reporter, verbs[2] == (extend ? SkPath::kLine_Verb : SkPath::kMove_Verb)); in test_addPathMode()
3934 REPORTER_ASSERT(reporter, verbs[3] == SkPath::kLine_Verb); in test_addPathMode()
3948 REPORTER_ASSERT(reporter, verbcount == 7); in test_extendClosedPath()
3949 REPORTER_ASSERT(reporter, verbs[0] == SkPath::kMove_Verb); in test_extendClosedPath()
3950 REPORTER_ASSERT(reporter, verbs[1] == SkPath::kLine_Verb); in test_extendClosedPath()
3951 REPORTER_ASSERT(reporter, verbs[2] == SkPath::kLine_Verb); in test_extendClosedPath()
3952 REPORTER_ASSERT(reporter, verbs[3] == SkPath::kClose_Verb); in test_extendClosedPath()
3953 REPORTER_ASSERT(reporter, verbs[4] == SkPath::kMove_Verb); in test_extendClosedPath()
3954 REPORTER_ASSERT(reporter, verbs[5] == SkPath::kLine_Verb); in test_extendClosedPath()
3955 REPORTER_ASSERT(reporter, verbs[6] == SkPath::kLine_Verb); in test_extendClosedPath()
3958 REPORTER_ASSERT(reporter, p.getLastPt(&pt)); in test_extendClosedPath()
3959 REPORTER_ASSERT(reporter, pt == SkPoint::Make(2, 3)); in test_extendClosedPath()
3960 REPORTER_ASSERT(reporter, p.getPoint(3) == SkPoint::Make(1, 1)); in test_extendClosedPath()
3969 REPORTER_ASSERT(reporter, q == p); in test_addEmptyPath()
3972 REPORTER_ASSERT(reporter, q == p); in test_addEmptyPath()
3976 REPORTER_ASSERT(reporter, q.isEmpty()); in test_addEmptyPath()
3992 REPORTER_ASSERT(reporter, pt == SkPoint::Make(0, 0)); in test_get_point()
3993 REPORTER_ASSERT(reporter, !p.getLastPt(nullptr)); in test_get_point()
3994 REPORTER_ASSERT(reporter, !p.getLastPt(&pt) && pt == SkPoint::Make(0, 0)); in test_get_point()
3997 REPORTER_ASSERT(reporter, pt == SkPoint::Make(10, 10)); in test_get_point()
3998 REPORTER_ASSERT(reporter, p.getLastPt(nullptr)); in test_get_point()
4000 REPORTER_ASSERT(reporter, p.getLastPt(&pt) && pt == SkPoint::Make(20, 20)); in test_get_point()
4016 REPORTER_ASSERT(reporter, p.contains(0, 0)); in test_contains()
4018 REPORTER_ASSERT(reporter, !p.contains(0, 0)); in test_contains()
4023 REPORTER_ASSERT(reporter, p.contains(6, 4)); in test_contains()
4024 REPORTER_ASSERT(reporter, p.contains(5, 6)); in test_contains()
4025 REPORTER_ASSERT(reporter, p.contains(7, 6)); in test_contains()
4027 REPORTER_ASSERT(reporter, !p.contains(4, 0)); in test_contains()
4028 REPORTER_ASSERT(reporter, !p.contains(0, 4)); in test_contains()
4029 REPORTER_ASSERT(reporter, !p.contains(4, 10)); in test_contains()
4030 REPORTER_ASSERT(reporter, !p.contains(10, 4)); in test_contains()
4032 REPORTER_ASSERT(reporter, !p.contains(5, 7)); in test_contains()
4033 REPORTER_ASSERT(reporter, p.contains(6, 7)); in test_contains()
4034 REPORTER_ASSERT(reporter, !p.contains(7, 7)); in test_contains()
4040 REPORTER_ASSERT(reporter, p.contains(4, 6)); in test_contains()
4041 REPORTER_ASSERT(reporter, p.contains(6, 5)); in test_contains()
4042 REPORTER_ASSERT(reporter, p.contains(6, 7)); in test_contains()
4044 REPORTER_ASSERT(reporter, !p.contains(7, 5)); in test_contains()
4045 REPORTER_ASSERT(reporter, p.contains(7, 6)); in test_contains()
4046 REPORTER_ASSERT(reporter, !p.contains(7, 7)); in test_contains()
4053 REPORTER_ASSERT(reporter, p.contains(4, 4)); in test_contains()
4054 REPORTER_ASSERT(reporter, p.contains(8, 4)); in test_contains()
4055 REPORTER_ASSERT(reporter, p.contains(8, 8)); in test_contains()
4056 REPORTER_ASSERT(reporter, p.contains(4, 8)); in test_contains()
4062 REPORTER_ASSERT(reporter, p.contains(5, 6)); in test_contains()
4063 REPORTER_ASSERT(reporter, p.contains(4, 8)); in test_contains()
4064 REPORTER_ASSERT(reporter, p.contains(3, 6)); in test_contains()
4070 REPORTER_ASSERT(reporter, p.contains(2, 5)); in test_contains()
4071 REPORTER_ASSERT(reporter, p.contains(2, 7)); in test_contains()
4072 REPORTER_ASSERT(reporter, p.contains(4, 6)); in test_contains()
4081 REPORTER_ASSERT(reporter, !p.contains(1, 2)); in test_contains()
4082 REPORTER_ASSERT(reporter, !p.contains(3, 2)); in test_contains()
4083 REPORTER_ASSERT(reporter, !p.contains(4, 0)); in test_contains()
4084 REPORTER_ASSERT(reporter, p.contains(4, 4)); in test_contains()
4092 REPORTER_ASSERT(reporter, p.contains(5, 6)); in test_contains()
4093 REPORTER_ASSERT(reporter, !p.contains(6, 5)); in test_contains()
4095 REPORTER_ASSERT(reporter, p.contains(5, 5)); in test_contains()
4096 REPORTER_ASSERT(reporter, p.contains(5, 8)); in test_contains()
4097 REPORTER_ASSERT(reporter, p.contains(4, 5)); in test_contains()
4099 REPORTER_ASSERT(reporter, p.contains(4, 4)); in test_contains()
4100 REPORTER_ASSERT(reporter, p.contains(8, 8)); in test_contains()
4101 REPORTER_ASSERT(reporter, p.contains(4, 8)); in test_contains()
4109 REPORTER_ASSERT(reporter, p.contains(5, 6)); in test_contains()
4110 REPORTER_ASSERT(reporter, !p.contains(6, 5)); in test_contains()
4115 REPORTER_ASSERT(reporter, p.contains(halfway.fX, halfway.fY)); in test_contains()
4125 REPORTER_ASSERT(reporter, p.contains(5, 6)); in test_contains()
4126 REPORTER_ASSERT(reporter, !p.contains(6, 5)); in test_contains()
4131 REPORTER_ASSERT(reporter, p.contains(halfway.fX, halfway.fY)); in test_contains()
4134 REPORTER_ASSERT(reporter, p.contains(4, 4)); in test_contains()
4135 REPORTER_ASSERT(reporter, p.contains(8, 8)); in test_contains()
4136 REPORTER_ASSERT(reporter, p.contains(4, 8)); in test_contains()
4147 REPORTER_ASSERT(reporter, p.contains(5.5f, 5.5f)); in test_contains()
4148 REPORTER_ASSERT(reporter, !p.contains(4.5f, 5.5f)); in test_contains()
4151 REPORTER_ASSERT(reporter, p.contains(halfway.fX, halfway.fY)); in test_contains()
4153 REPORTER_ASSERT(reporter, p.contains(halfway.fX, halfway.fY)); in test_contains()
4155 REPORTER_ASSERT(reporter, p.contains(pts[i].fX, pts[i].fY)); in test_contains()
4156 REPORTER_ASSERT(reporter, p.contains(pts[i + 3].fX, pts[i + 3].fY)); in test_contains()
4157 REPORTER_ASSERT(reporter, p.contains(pts[i + 6].fX, pts[i + 6].fY)); in test_contains()
4172 REPORTER_ASSERT(reporter, kRepeatCnt == pathRef->countVerbs()); in TestPathRef()
4173 REPORTER_ASSERT(reporter, kRepeatCnt == pathRef->countPoints()); in TestPathRef()
4174 REPORTER_ASSERT(reporter, 0 == pathRef->getSegmentMasks()); in TestPathRef()
4176 REPORTER_ASSERT(reporter, SkPath::kMove_Verb == pathRef->atVerb(i)); in TestPathRef()
4183 REPORTER_ASSERT(reporter, kRepeatCnt == pathRef->countVerbs()); in TestPathRef()
4184 REPORTER_ASSERT(reporter, kRepeatCnt == pathRef->countPoints()); in TestPathRef()
4185 REPORTER_ASSERT(reporter, SkPath::kLine_SegmentMask == pathRef->getSegmentMasks()); in TestPathRef()
4187 REPORTER_ASSERT(reporter, SkPath::kLine_Verb == pathRef->atVerb(i)); in TestPathRef()
4194 REPORTER_ASSERT(reporter, kRepeatCnt == pathRef->countVerbs()); in TestPathRef()
4195 REPORTER_ASSERT(reporter, 2*kRepeatCnt == pathRef->countPoints()); in TestPathRef()
4196 REPORTER_ASSERT(reporter, SkPath::kQuad_SegmentMask == pathRef->getSegmentMasks()); in TestPathRef()
4198 REPORTER_ASSERT(reporter, SkPath::kQuad_Verb == pathRef->atVerb(i)); in TestPathRef()
4206 REPORTER_ASSERT(reporter, kRepeatCnt == pathRef->countVerbs()); in TestPathRef()
4207 REPORTER_ASSERT(reporter, 2*kRepeatCnt == pathRef->countPoints()); in TestPathRef()
4208 REPORTER_ASSERT(reporter, kRepeatCnt == pathRef->countWeights()); in TestPathRef()
4209 REPORTER_ASSERT(reporter, SkPath::kConic_SegmentMask == pathRef->getSegmentMasks()); in TestPathRef()
4210 REPORTER_ASSERT(reporter, weights); in TestPathRef()
4212 REPORTER_ASSERT(reporter, SkPath::kConic_Verb == pathRef->atVerb(i)); in TestPathRef()
4219 REPORTER_ASSERT(reporter, kRepeatCnt == pathRef->countVerbs()); in TestPathRef()
4220 REPORTER_ASSERT(reporter, 3*kRepeatCnt == pathRef->countPoints()); in TestPathRef()
4221 REPORTER_ASSERT(reporter, SkPath::kCubic_SegmentMask == pathRef->getSegmentMasks()); in TestPathRef()
4223 REPORTER_ASSERT(reporter, SkPath::kCubic_Verb == pathRef->atVerb(i)); in TestPathRef()
4233 REPORTER_ASSERT(reporter, a == a); in test_operatorEqual()
4234 REPORTER_ASSERT(reporter, a == b); in test_operatorEqual()
4236 REPORTER_ASSERT(reporter, a != b); in test_operatorEqual()
4238 REPORTER_ASSERT(reporter, a == b); in test_operatorEqual()
4240 REPORTER_ASSERT(reporter, a != b); in test_operatorEqual()
4242 REPORTER_ASSERT(reporter, a == b); in test_operatorEqual()
4245 REPORTER_ASSERT(reporter, a != b); in test_operatorEqual()
4248 REPORTER_ASSERT(reporter, a == b); in test_operatorEqual()
4256 REPORTER_ASSERT(reporter, data->size() == strlen(str)); in compare_dump()
4258 REPORTER_ASSERT(reporter, !memcmp(data->data(), str, strlen(str))); in compare_dump()
4260REPORTER_ASSERT(reporter, data->data() == nullptr || !memcmp(data->data(), str, strlen(str))); in compare_dump()
4347 REPORTER_ASSERT(reporter, p.getBounds() == reverseExpected); in TestPathTo()
4359 REPORTER_ASSERT(reporter, !changed); in TestPathrefListeners()
4361 REPORTER_ASSERT(reporter, changed); in TestPathrefListeners()
4365 REPORTER_ASSERT(reporter, !changed); in TestPathrefListeners()
4367 REPORTER_ASSERT(reporter, changed); in TestPathrefListeners()
4371 REPORTER_ASSERT(reporter, !changed); in TestPathrefListeners()
4373 REPORTER_ASSERT(reporter, changed); in TestPathrefListeners()
4379 REPORTER_ASSERT(reporter, !changed); in TestPathrefListeners()
4381 REPORTER_ASSERT(reporter, changed); in TestPathrefListeners()
4388 REPORTER_ASSERT(reporter, !changed); in TestPathrefListeners()
4391 REPORTER_ASSERT(reporter, changed); in TestPathrefListeners()
4465 REPORTER_ASSERT(reporter, p1.isInterpolatable(p2)); in test_interp()
4466 REPORTER_ASSERT(reporter, p1.interpolate(p2, 0, &out)); in test_interp()
4467 REPORTER_ASSERT(reporter, p1 == out); in test_interp()
4468 REPORTER_ASSERT(reporter, p1.interpolate(p2, 1, &out)); in test_interp()
4469 REPORTER_ASSERT(reporter, p1 == out); in test_interp()
4472 REPORTER_ASSERT(reporter, !p1.isInterpolatable(p2)); in test_interp()
4473 REPORTER_ASSERT(reporter, !p1.interpolate(p2, 1, &out)); in test_interp()
4476 REPORTER_ASSERT(reporter, p1.isInterpolatable(p2)); in test_interp()
4477 REPORTER_ASSERT(reporter, p1.interpolate(p2, 0, &out)); in test_interp()
4478 REPORTER_ASSERT(reporter, p2 == out); in test_interp()
4479 REPORTER_ASSERT(reporter, p1.interpolate(p2, 1, &out)); in test_interp()
4480 REPORTER_ASSERT(reporter, p1 == out); in test_interp()
4481 REPORTER_ASSERT(reporter, p1.interpolate(p2, 0.5f, &out)); in test_interp()
4482 REPORTER_ASSERT(reporter, out.getBounds() == SkRect::MakeLTRB(3, 1, 4, 2)); in test_interp()
4489 REPORTER_ASSERT(reporter, p1.isInterpolatable(p2)); in test_interp()
4490 REPORTER_ASSERT(reporter, p1.interpolate(p2, 0.5f, &out)); in test_interp()
4491 REPORTER_ASSERT(reporter, out.getBounds() == SkRect::MakeLTRB(4, 3, 6, 5)); in test_interp()
4495 REPORTER_ASSERT(reporter, !p1.isInterpolatable(p2)); in test_interp()
4499 REPORTER_ASSERT(reporter, !p1.isInterpolatable(p2)); in test_interp()
4542 REPORTER_ASSERT(reporter, p.getBounds().isEmpty()); in DEF_TEST()
4556 REPORTER_ASSERT(reporter, in DEF_TEST()
4558 REPORTER_ASSERT(reporter, !p.isEmpty()); in DEF_TEST()
4565 REPORTER_ASSERT(reporter, !p.isEmpty()); in DEF_TEST()
4573 REPORTER_ASSERT(reporter, SkPath::kLine_SegmentMask == p.getSegmentMasks()); in DEF_TEST()
4574 REPORTER_ASSERT(reporter, !p.isEmpty()); in DEF_TEST()
4576 REPORTER_ASSERT(reporter, p != empty); in DEF_TEST()
4577 REPORTER_ASSERT(reporter, !(p == empty)); in DEF_TEST()
4580 REPORTER_ASSERT(reporter, p.getPoints(nullptr, 0) == 4); in DEF_TEST()
4581 REPORTER_ASSERT(reporter, p.getVerbs(nullptr, 0) == 5); in DEF_TEST()
4584 REPORTER_ASSERT(reporter, count == 4); in DEF_TEST()
4588 REPORTER_ASSERT(reporter, SkPath::kMove_Verb == verbs[0]); in DEF_TEST()
4589 REPORTER_ASSERT(reporter, SkPath::kLine_Verb == verbs[1]); in DEF_TEST()
4590 REPORTER_ASSERT(reporter, SkPath::kLine_Verb == verbs[2]); in DEF_TEST()
4591 REPORTER_ASSERT(reporter, SkPath::kLine_Verb == verbs[3]); in DEF_TEST()
4592 REPORTER_ASSERT(reporter, SkPath::kClose_Verb == verbs[4]); in DEF_TEST()
4593 REPORTER_ASSERT(reporter, 0xff == verbs[5]); in DEF_TEST()
4595 REPORTER_ASSERT(reporter, bounds == bounds2); in DEF_TEST()
4599 REPORTER_ASSERT(reporter, bounds == p.getBounds()); in DEF_TEST()
4601 REPORTER_ASSERT(reporter, p.isRect(nullptr)); in DEF_TEST()
4603 REPORTER_ASSERT(reporter, p.isRect(&bounds2)); in DEF_TEST()
4604 REPORTER_ASSERT(reporter, bounds == bounds2); in DEF_TEST()
4609 REPORTER_ASSERT(reporter, !p.isRect(nullptr)); in DEF_TEST()
4617 REPORTER_ASSERT(reporter, p.isRect(&r)); in DEF_TEST()
4618 REPORTER_ASSERT(reporter, r == bounds); in DEF_TEST()
4621 REPORTER_ASSERT(reporter, p.isRect(&r)); in DEF_TEST()
4622 REPORTER_ASSERT(reporter, r == bounds); in DEF_TEST()
4747 REPORTER_ASSERT(reporter, bounds.contains(tight)); in DEF_TEST()
4751 REPORTER_ASSERT(reporter, nearly_equal(tight, tight2)); in DEF_TEST()