Lines Matching refs:REPORTER_ASSERT
35 REPORTER_ASSERT(reporter, bounds == rrect.rect());
40 REPORTER_ASSERT(reporter, bounds == path.getBounds());
48 REPORTER_ASSERT(reporter, !path.isConvex());
201 REPORTER_ASSERT(reporter, 50 == last.fX);
202 REPORTER_ASSERT(reporter, 50 == last.fY);
212 REPORTER_ASSERT(reporter, 75 == last.fX);
213 REPORTER_ASSERT(reporter, 75 == last.fY);
223 REPORTER_ASSERT(reporter, 85 == last.fX);
224 REPORTER_ASSERT(reporter, 85 == last.fY);
234 REPORTER_ASSERT(reporter, 95 == last.fX);
235 REPORTER_ASSERT(reporter, 95 == last.fY);
240 REPORTER_ASSERT(reporter, a.getGenerationID() == b.getGenerationID());
244 REPORTER_ASSERT(reporter, z != b.getGenerationID());
247 REPORTER_ASSERT(reporter, a.getGenerationID() == b.getGenerationID());
251 REPORTER_ASSERT(reporter, z != y);
255 REPORTER_ASSERT(reporter, x != y && x != z);
258 REPORTER_ASSERT(reporter, b.getGenerationID() == y && a.getGenerationID() == x);
261 REPORTER_ASSERT(reporter, b.getGenerationID() == x);
264 REPORTER_ASSERT(reporter, c.getGenerationID() == x);
268 REPORTER_ASSERT(reporter, b.getGenerationID() == x);
269 REPORTER_ASSERT(reporter, a.getGenerationID() == x);
270 REPORTER_ASSERT(reporter, w != x);
280 REPORTER_ASSERT(reporter, (v == w) == kExpectGenIDToIgnoreFill);
283 REPORTER_ASSERT(reporter, v != c.getGenerationID());
438 REPORTER_ASSERT(reporter, smallConvex == largeConvex);
490 REPORTER_ASSERT(reporter, path.isRect(nullptr));
495 REPORTER_ASSERT(reporter, !path.isRect(nullptr));
500 REPORTER_ASSERT(reporter, !path.isRect(nullptr));
505 REPORTER_ASSERT(reporter, !path.isRect(nullptr));
510 REPORTER_ASSERT(reporter, !path.isRect(nullptr));
518 REPORTER_ASSERT(reporter, path.isFinite());
522 REPORTER_ASSERT(reporter, !path.isFinite());
525 REPORTER_ASSERT(reporter, !path.isFinite());
528 REPORTER_ASSERT(reporter, path.isFinite());
531 REPORTER_ASSERT(reporter, path.isFinite());
586 REPORTER_ASSERT(reporter, SkRect::MakeLTRB(0, 0, 0, 0) == path.getBounds());
589 REPORTER_ASSERT(reporter, SkRect::MakeLTRB(-5, -8, -5, -8) == path.getBounds());
592 REPORTER_ASSERT(reporter, SkRect::MakeLTRB(-5, -8, 3, 4) == path.getBounds());
595 REPORTER_ASSERT(reporter, SkRect::MakeLTRB(-5, -8, 3, 4) == path.getBounds());
649 REPORTER_ASSERT(reporter, path.getBounds().isFinite());
650 REPORTER_ASSERT(reporter, !path.getBounds().isEmpty());
653 REPORTER_ASSERT(reporter, path.getBounds().isEmpty());
658 REPORTER_ASSERT(reporter, !path.isFinite());
659 REPORTER_ASSERT(reporter, path.getBounds().isEmpty());
725 REPORTER_ASSERT(reporter, temp.isConvex());
753 REPORTER_ASSERT(reporter, temp.isRect(&result));
754 REPORTER_ASSERT(reporter, r == result);
765 REPORTER_ASSERT(reporter, r.isFinite());
767 REPORTER_ASSERT(reporter, !r.isFinite());
769 REPORTER_ASSERT(reporter, !r.isFinite());
778 REPORTER_ASSERT(reporter, isFine);
779 REPORTER_ASSERT(reporter, !r.isEmpty());
783 REPORTER_ASSERT(reporter, !isFine);
784 REPORTER_ASSERT(reporter, r.isEmpty());
788 REPORTER_ASSERT(reporter, !isFine);
789 REPORTER_ASSERT(reporter, r.isEmpty());
798 REPORTER_ASSERT(reporter, path.isFinite());
801 REPORTER_ASSERT(reporter, path.isFinite());
805 REPORTER_ASSERT(reporter, path.isFinite());
809 REPORTER_ASSERT(reporter, !path.isFinite());
813 REPORTER_ASSERT(reporter, !path.isFinite());
823 REPORTER_ASSERT(reporter, !path.isLastContourClosed());
825 REPORTER_ASSERT(reporter, !path.isLastContourClosed());
827 REPORTER_ASSERT(reporter, path.isLastContourClosed());
829 REPORTER_ASSERT(reporter, !path.isLastContourClosed());
831 REPORTER_ASSERT(reporter, !path.isLastContourClosed());
833 REPORTER_ASSERT(reporter, path.isLastContourClosed());
835 REPORTER_ASSERT(reporter, !path.isLastContourClosed());
855 REPORTER_ASSERT(reporter, firstTime);
856 REPORTER_ASSERT(reporter, pts[0] == srcPts[0]);
861 REPORTER_ASSERT(reporter, !firstTime);
862 REPORTER_ASSERT(reporter, pts[1] == srcPts[0]);
875 REPORTER_ASSERT(reporter, !firstTime);
876 REPORTER_ASSERT(reporter, !foundClose);
877 REPORTER_ASSERT(reporter, expectClose);
885 REPORTER_ASSERT(reporter, foundClose == expectClose);
908 REPORTER_ASSERT
911 REPORTER_ASSERT(reporter, rec.isHairlineStyle());
914 REPORTER_ASSERT(reporter, SkStrokeRec::kStroke_Style == rec.getStyle());
917 REPORTER_ASSERT(reporter, SkStrokeRec::kStrokeAndFill_Style == rec.getStyle());
920 REPORTER_ASSERT(reporter, SkStrokeRec::kHairline_Style == rec.getStyle());
923 REPORTER_ASSERT(reporter, SkStrokeRec::kFill_Style == rec.getStyle());
939 REPORTER_ASSERT(reporter, dir == expected);
941 REPORTER_ASSERT(reporter, SkPathPriv::kUnknown_FirstDirection == expected);
948 REPORTER_ASSERT(reporter, !SkPathPriv::CheapComputeFirstDirection(path, nullptr));
949 REPORTER_ASSERT(reporter, !SkPathPriv::CheapIsFirstDirection(path, SkPathPriv::kCW_FirstDirection));
950 REPORTER_ASSERT(reporter, !SkPathPriv::CheapIsFirstDirection(path, SkPathPriv::kCCW_FirstDirection));
951 REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(path, SkPathPriv::kUnknown_FirstDirection));
964 REPORTER_ASSERT(reporter, valid);
965 REPORTER_ASSERT(reporter, !SkPathPriv::CheapComputeFirstDirection(path, nullptr));
980 REPORTER_ASSERT(reporter, valid);
996 REPORTER_ASSERT(reporter, valid);
1029 REPORTER_ASSERT(reporter, SkPath::kConvex_Convexity == path.getConvexity());
1055 REPORTER_ASSERT(reporter, path0.getBounds() == path1.getBounds());
1110 REPORTER_ASSERT(reporter, mv == pts[0]);
1119 REPORTER_ASSERT(reporter, !i || nMT == nCL);
1194 REPORTER_ASSERT(reporter, c == expected);
1365 REPORTER_ASSERT(reporter, p.isConvex());
1366 REPORTER_ASSERT(reporter, p.getBounds() == bounds);
1369 REPORTER_ASSERT(reporter, p2.isConvex());
1370 REPORTER_ASSERT(reporter, p2.getBounds() == bounds);
1374 REPORTER_ASSERT(reporter, other.isConvex());
1375 REPORTER_ASSERT(reporter, other.getBounds() == bounds);
1409 REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(path, SkPathPriv::kCCW_FirstDirection));
1414 REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(path, SkPathPriv::kCW_FirstDirection));
1441 REPORTER_ASSERT(reporter, (gRec[i].fExpectedDirection == SkPathPriv::kUnknown_FirstDirection)
1443 REPORTER_ASSERT(reporter, !foundDir || gRec[i].fExpectedDirection == dir);
1446 REPORTER_ASSERT(reporter, gRec[i].fExpectedConvexity == path.getConvexity());
1529 REPORTER_ASSERT(reporter, !path.isLine(nullptr));
1534 REPORTER_ASSERT(reporter, !path.isLine(pts));
1536 REPORTER_ASSERT(reporter, pts[0].equals(value, value));
1537 REPORTER_ASSERT(reporter, pts[1].equals(value, value));
1541 REPORTER_ASSERT(reporter, value != moveX && value != moveY);
1544 REPORTER_ASSERT(reporter, !path.isLine(nullptr));
1545 REPORTER_ASSERT(reporter, !path.isLine(pts));
1547 REPORTER_ASSERT(reporter, pts[0].equals(value, value));
1548 REPORTER_ASSERT(reporter, pts[1].equals(value, value));
1552 REPORTER_ASSERT(reporter, value != lineX && value != lineY);
1555 REPORTER_ASSERT(reporter, path.isLine(nullptr));
1557 REPORTER_ASSERT(reporter, !pts[0].equals(moveX, moveY));
1558 REPORTER_ASSERT(reporter, !pts[1].equals(lineX, lineY));
1559 REPORTER_ASSERT(reporter, path.isLine(pts));
1560 REPORTER_ASSERT(reporter, pts[0].equals(moveX, moveY));
1561 REPORTER_ASSERT(reporter, pts[1].equals(lineX, lineY));
1564 REPORTER_ASSERT(reporter, !path.isLine(nullptr));
1565 REPORTER_ASSERT(reporter, !path.isLine(pts));
1566 REPORTER_ASSERT(reporter, pts[0].equals(moveX, moveY));
1567 REPORTER_ASSERT(reporter, pts[1].equals(lineX, lineY));
1571 REPORTER_ASSERT(reporter, !path.isLine(nullptr));
1677 REPORTER_ASSERT(reporter, kQueries[q].fInRect ==
1682 REPORTER_ASSERT(reporter, kQueries[q].fInCircle ==
1687 REPORTER_ASSERT(reporter, kQueries[q].fInRR ==
1699 REPORTER_ASSERT(reporter, kQueries[q].fInCubicRR ==
1711 REPORTER_ASSERT(reporter, !path.conservativelyContainsRect(qRect));
1722 REPORTER_ASSERT(reporter, path.conservativelyContainsRect(SkRect::MakeXYWH(SkIntToScalar(50), 0,
1726 REPORTER_ASSERT(reporter, !path.conservativelyContainsRect(
1732 REPORTER_ASSERT(reporter, !path.conservativelyContainsRect(SkRect::MakeXYWH(SkIntToScalar(-10),
1738 REPORTER_ASSERT(reporter, !path.conservativelyContainsRect(SkRect::MakeXYWH(SkIntToScalar(10),
1750 REPORTER_ASSERT(reporter, path.conservativelyContainsRect(SkRect::MakeXYWH(SkIntToScalar(50), 0,
1762 REPORTER_ASSERT(reporter, path.conservativelyContainsRect(SkRect::MakeXYWH(SkIntToScalar(50), 0,
1776 REPORTER_ASSERT(reporter, !path.conservativelyContainsRect(
1783 REPORTER_ASSERT(reporter, !path.conservativelyContainsRect(SkRect::MakeXYWH(0, 0, 1, 1)));
1793 REPORTER_ASSERT(reporter, path.isRect(nullptr, &isClosed, nullptr));
1794 REPORTER_ASSERT(reporter, isClosed);
1897 REPORTER_ASSERT(reporter, tests[testIndex].fIsRect == path.isRect(nullptr));
1905 REPORTER_ASSERT(reporter, SkPathPriv::CheapComputeFirstDirection(path, &cheapDirection));
1906 REPORTER_ASSERT(reporter, path.isRect(&computed, &isClosed, &direction));
1907 REPORTER_ASSERT(reporter, expected == computed);
1908 REPORTER_ASSERT(reporter, isClosed == tests[testIndex].fClose);
1909 REPORTER_ASSERT(reporter, SkPathPriv::AsFirstDirection(direction) == cheapDirection);
1915 REPORTER_ASSERT(reporter, !path.isRect(&computed, &isClosed, &direction));
1916 REPORTER_ASSERT(reporter, computed.fLeft == 123 && computed.fTop == 456);
1917 REPORTER_ASSERT(reporter, computed.fRight == 789 && computed.fBottom == 1011);
1918 REPORTER_ASSERT(reporter, isClosed == (bool) -1);
1919 REPORTER_ASSERT(reporter, direction == (SkPath::Direction) -1);
1931 REPORTER_ASSERT(reporter, !path1.isRect(nullptr));
1943 REPORTER_ASSERT(reporter, !path1.isRect(nullptr));
1952 REPORTER_ASSERT(reporter, !path1.isRect(nullptr));
1964 REPORTER_ASSERT(reporter, !path1.isRect(nullptr));
1976 REPORTER_ASSERT(reporter, !path1.isRect(nullptr));
2063 REPORTER_ASSERT(reporter,
2079 REPORTER_ASSERT(reporter, path.isNestedFillRects(computed, computedDirs));
2080 REPORTER_ASSERT(reporter, expected[0] == computed[0]);
2081 REPORTER_ASSERT(reporter, expected[1] == computed[1]);
2082 REPORTER_ASSERT(reporter, expectedDirs[0] == SkPathPriv::AsFirstDirection(computedDirs[0]));
2083 REPORTER_ASSERT(reporter, expectedDirs[1] == SkPathPriv::AsFirstDirection(computedDirs[1]));
2101 REPORTER_ASSERT(reporter, !path1.isNestedFillRects(nullptr));
2119 REPORTER_ASSERT(reporter, !path1.isNestedFillRects(nullptr));
2134 REPORTER_ASSERT(reporter, !path1.isNestedFillRects(nullptr));
2152 REPORTER_ASSERT(reporter, !path1.isNestedFillRects(nullptr));
2170 REPORTER_ASSERT(reporter, !path1.isNestedFillRects(nullptr));
2176 REPORTER_ASSERT(reporter, !path1.isNestedFillRects(nullptr));
2191 REPORTER_ASSERT(reporter, path.isNestedFillRects(nullptr));
2200 REPORTER_ASSERT(reporter, dst.isNestedFillRects(nullptr));
2213 REPORTER_ASSERT(reporter, readBack != p);
2215 REPORTER_ASSERT(reporter, readBack == p);
2217 REPORTER_ASSERT(reporter, readBack.getConvexityOrUnknown() ==
2220 REPORTER_ASSERT(reporter, readBack.isOval(nullptr) == p.isOval(nullptr));
2225 REPORTER_ASSERT(reporter, origBounds == readBackBounds);
2249 REPORTER_ASSERT(reporter, size1 == size2);
2253 REPORTER_ASSERT(reporter, size1 == size3);
2254 REPORTER_ASSERT(reporter, p == p2);
2257 REPORTER_ASSERT(reporter, !size3);
2261 REPORTER_ASSERT(reporter, tooShort.isEmpty());
2265 REPORTER_ASSERT(reporter, size1 == size3);
2266 REPORTER_ASSERT(reporter, memcmp(buffer, buffer2, size1) == 0);
2307 REPORTER_ASSERT(reporter, p == p1);
2320 REPORTER_ASSERT(reporter, kPtCount == count);
2323 REPORTER_ASSERT(reporter, newPt == pts1[i]);
2336 REPORTER_ASSERT(reporter, matrix.invert(&matrix));
2340 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(pBounds.fLeft, p1Bounds.fLeft));
2341 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(pBounds.fTop, p1Bounds.fTop));
2342 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(pBounds.fRight, p1Bounds.fRight));
2343 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(pBounds.fBottom, p1Bounds.fBottom));
2356 REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(p1, SkPathPriv::kCW_FirstDirection));
2368 REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(p1, SkPathPriv::kCCW_FirstDirection));
2378 REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(p1, SkPathPriv::kUnknown_FirstDirection));
2442 REPORTER_ASSERT(reporter, valid);
2443 REPORTER_ASSERT(reporter, !p.isEmpty());
2444 REPORTER_ASSERT(reporter, gZeroLengthTests[i].numResultPts == (size_t)p.countPoints());
2445 REPORTER_ASSERT(reporter, gZeroLengthTests[i].resultBound == p.getBounds());
2446 REPORTER_ASSERT(reporter, gZeroLengthTests[i].numResultVerbs == (size_t)p.getVerbs(verbs, SK_ARRAY_COUNT(verbs)));
2448 REPORTER_ASSERT(reporter, gZeroLengthTests[i].resultVerbs[j] == verbs[j]);
2465 REPORTER_ASSERT(reporter, SkPath::kQuad_SegmentMask == p.getSegmentMasks());
2466 REPORTER_ASSERT(reporter, !p.isEmpty());
2468 REPORTER_ASSERT(reporter, p2.getSegmentMasks() == p.getSegmentMasks());
2470 REPORTER_ASSERT(reporter, kCurveSegmentMask == p.getSegmentMasks());
2471 REPORTER_ASSERT(reporter, !p.isEmpty());
2473 REPORTER_ASSERT(reporter, p2.getSegmentMasks() == p.getSegmentMasks());
2478 REPORTER_ASSERT(reporter, SkPath::kCubic_SegmentMask == p.getSegmentMasks());
2480 REPORTER_ASSERT(reporter, p2.getSegmentMasks() == p.getSegmentMasks());
2482 REPORTER_ASSERT(reporter, !p.isEmpty());
2491 REPORTER_ASSERT(reporter, noPathIter.next(pts) == SkPath::kDone_Verb);
2495 REPORTER_ASSERT(reporter, noPathIter.next(pts) == SkPath::kDone_Verb);
2499 REPORTER_ASSERT(reporter, noPathIter.next(pts) == SkPath::kDone_Verb);
2503 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kDone_Verb);
2507 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kDone_Verb);
2571 REPORTER_ASSERT(reporter, valid);
2575 REPORTER_ASSERT(reporter, iter.next(pts, gIterTests[i].consumeDegenerates) == gIterTests[i].resultVerbs[j]);
2577 REPORTER_ASSERT(reporter, pts[k] == gIterTests[i].resultPts[l++]);
2580 REPORTER_ASSERT(reporter, j == (int)gIterTests[i].numResultVerbs);
2585 REPORTER_ASSERT(reporter, !iter.isClosedContour());
2589 REPORTER_ASSERT(reporter, iter.isClosedContour());
2592 REPORTER_ASSERT(reporter, !iter.isClosedContour());
2595 REPORTER_ASSERT(reporter, iter.isClosedContour());
2599 REPORTER_ASSERT(reporter, !iter.isClosedContour());
2610 REPORTER_ASSERT(reporter, SkPath::kClose_Verb == iter.next(pts, false));
2617 REPORTER_ASSERT(reporter, SkPath::kQuad_Verb == iter.next(pts, false));
2620 REPORTER_ASSERT(reporter, SkPath::kDone_Verb == iter.next(pts, true));
2626 REPORTER_ASSERT(reporter, SkPath::kConic_Verb == iter.next(pts, false));
2629 REPORTER_ASSERT(reporter, SkPath::kDone_Verb == iter.next(pts, true));
2635 REPORTER_ASSERT(reporter, SkPath::kCubic_Verb == iter.next(pts, false));
2638 REPORTER_ASSERT(reporter, SkPath::kDone_Verb == iter.next(pts, true));
2643 REPORTER_ASSERT(reporter, SkPath::kCubic_Verb == iter.next(pts, false));
2646 REPORTER_ASSERT(reporter, SkPath::kDone_Verb == iter.next(pts, true));
2658 REPORTER_ASSERT(reporter, SkPath::kMove_Verb == iter.next(pts));
2659 REPORTER_ASSERT(reporter, SkPath::kLine_Verb == iter.next(pts));
2660 REPORTER_ASSERT(reporter, SkPath::kLine_Verb == iter.next(pts));
2661 REPORTER_ASSERT(reporter, SkPath::kConic_Verb == iter.next(pts));
2662 REPORTER_ASSERT(reporter, SK_ScalarRoot2Over2 == iter.conicWeight());
2671 REPORTER_ASSERT(reporter, noPathIter.next(pts) == SkPath::kDone_Verb);
2674 REPORTER_ASSERT(reporter, noPathIter.next(pts) == SkPath::kDone_Verb);
2678 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kDone_Verb);
2683 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kMove_Verb);
2684 REPORTER_ASSERT(reporter, pts[0].fX == SK_Scalar1);
2685 REPORTER_ASSERT(reporter, pts[0].fY == 0);
2686 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kDone_Verb);
2692 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kMove_Verb);
2693 REPORTER_ASSERT(reporter, pts[0].fX == SK_Scalar1);
2694 REPORTER_ASSERT(reporter, pts[0].fY == 0);
2695 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kMove_Verb);
2696 REPORTER_ASSERT(reporter, pts[0].fX == SK_Scalar1*2);
2697 REPORTER_ASSERT(reporter, pts[0].fY == SK_Scalar1);
2698 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kMove_Verb);
2699 REPORTER_ASSERT(reporter, pts[0].fX == SK_Scalar1*3);
2700 REPORTER_ASSERT(reporter, pts[0].fY == SK_Scalar1*2);
2701 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kDone_Verb);
2707 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kDone_Verb);
2721 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kMove_Verb);
2722 REPORTER_ASSERT(reporter, pts[0].fX == SK_Scalar1);
2723 REPORTER_ASSERT(reporter, pts[0].fY == 0);
2724 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kClose_Verb);
2725 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kMove_Verb);
2726 REPORTER_ASSERT(reporter, pts[0].fX == SK_Scalar1*2);
2727 REPORTER_ASSERT(reporter, pts[0].fY == SK_Scalar1);
2728 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kClose_Verb);
2729 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kMove_Verb);
2730 REPORTER_ASSERT(reporter, pts[0].fX == SK_Scalar1*3);
2731 REPORTER_ASSERT(reporter, pts[0].fY == SK_Scalar1*2);
2732 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kMove_Verb);
2733 REPORTER_ASSERT(reporter, pts[0].fX == SK_Scalar1*4);
2734 REPORTER_ASSERT(reporter, pts[0].fY == SK_Scalar1*3);
2735 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kClose_Verb);
2736 REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kDone_Verb);
2843 REPORTER_ASSERT(reporter, nextVerb == expectedVerbs[numIterVerbs]);
2847 REPORTER_ASSERT(reporter, numIterPts < numPoints);
2848 REPORTER_ASSERT(reporter, pts[0] == expectedPts[numIterPts]);
2853 REPORTER_ASSERT(reporter, numIterPts < numPoints + 1);
2854 REPORTER_ASSERT(reporter, pts[0] == lastPt);
2855 REPORTER_ASSERT(reporter, pts[1] == expectedPts[numIterPts]);
2861 REPORTER_ASSERT(reporter, numIterPts < numPoints + 2);
2862 REPORTER_ASSERT(reporter, pts[0] == lastPt);
2863 REPORTER_ASSERT(reporter, pts[1] == expectedPts[numIterPts]);
2864 REPORTER_ASSERT(reporter, pts[2] == expectedPts[numIterPts + 1]);
2869 REPORTER_ASSERT(reporter, numIterPts < numPoints + 3);
2870 REPORTER_ASSERT(reporter, pts[0] == lastPt);
2871 REPORTER_ASSERT(reporter, pts[1] == expectedPts[numIterPts]);
2872 REPORTER_ASSERT(reporter, pts[2] == expectedPts[numIterPts + 1]);
2873 REPORTER_ASSERT(reporter, pts[3] == expectedPts[numIterPts + 2]);
2884 REPORTER_ASSERT(reporter, numIterPts == numPoints);
2885 REPORTER_ASSERT(reporter, numIterVerbs == numVerbs);
2894 REPORTER_ASSERT(reporter, path.isOval(&rect) == expectedCircle);
2895 REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(path, expectedDir));
2898 REPORTER_ASSERT(reporter, rect.height() == rect.width());
2914 REPORTER_ASSERT(reporter, SkPathPriv::kCW_FirstDirection == dir);
2972 REPORTER_ASSERT(reporter, SkPathPriv::kCCW_FirstDirection == dir);
2991 REPORTER_ASSERT(reporter, SkPathPriv::kCCW_FirstDirection == dir);
3100 REPORTER_ASSERT(reporter, path.isEmpty());
3111 REPORTER_ASSERT(reporter, path.isOval(nullptr));
3117 REPORTER_ASSERT(reporter, tmp.isOval(nullptr));
3124 REPORTER_ASSERT(reporter, !tmp.isOval(nullptr));
3131 REPORTER_ASSERT(reporter, !tmp.isOval(nullptr));
3135 REPORTER_ASSERT(reporter, !tmp.isOval(nullptr));
3141 REPORTER_ASSERT(reporter, !tmp.isOval(nullptr));
3148 REPORTER_ASSERT(reporter, path.isOval(nullptr));
3155 REPORTER_ASSERT(reporter, path.isOval(nullptr));
3161 REPORTER_ASSERT(reporter, p.isEmpty());
3162 REPORTER_ASSERT(reporter, 0 == p.countPoints());
3163 REPORTER_ASSERT(reporter, 0 == p.countVerbs());
3164 REPORTER_ASSERT(reporter, 0 == p.getSegmentMasks());
3165 REPORTER_ASSERT(reporter, p.isConvex());
3166 REPORTER_ASSERT(reporter, p.getFillType() == SkPath::kWinding_FillType);
3167 REPORTER_ASSERT(reporter, !p.isInverseFillType());
3168 REPORTER_ASSERT(reporter, p == empty);
3169 REPORTER_ASSERT(reporter, !(p != empty));
3174 REPORTER_ASSERT(reporter, path->isConvex());
3175 REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(*path, SkPathPriv::AsFirstDirection(dir)));
3177 REPORTER_ASSERT(reporter, path->isConvex());
3183 REPORTER_ASSERT(reporter, path->isConvex());
3184 REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(*path, SkPathPriv::AsFirstDirection(dir)));
3186 REPORTER_ASSERT(reporter, path->getConvexity() == SkPath::kUnknown_Convexity);
3218 REPORTER_ASSERT(reporter, p.isRect(&returnedRect));
3219 REPORTER_ASSERT(reporter, returnedRect == r);
3226 REPORTER_ASSERT(reporter, p.isRect(nullptr, &closed, &dir));
3227 REPORTER_ASSERT(reporter, closed);
3228 REPORTER_ASSERT(reporter, SkPath::kCW_Direction == dir);
3232 REPORTER_ASSERT(reporter, !p.isConvex());
3236 REPORTER_ASSERT(reporter, !p.isConvex());
3241 REPORTER_ASSERT(reporter, p.isEmpty());
3250 REPORTER_ASSERT(reporter, rr.isEmpty());
3260 REPORTER_ASSERT(reporter, emptyOval.isEmpty());
3262 REPORTER_ASSERT(reporter, p.isEmpty());
3266 REPORTER_ASSERT(reporter, p.isEmpty());
3271 REPORTER_ASSERT(reporter, p == cwOval);
3276 REPORTER_ASSERT(reporter, p == ccwOval);
3279 REPORTER_ASSERT(reporter, p.isConvex());
3280 REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(p, SkPathPriv::kCW_FirstDirection));
3282 REPORTER_ASSERT(reporter, p.isConvex());
3289 REPORTER_ASSERT(reporter, v == SkPath::kMove_Verb);
3290 REPORTER_ASSERT(reporter, pts[0].fX == x0);
3291 REPORTER_ASSERT(reporter, pts[0].fY == y0);
3298 REPORTER_ASSERT(reporter, v == SkPath::kLine_Verb);
3299 REPORTER_ASSERT(reporter, pts[1].fX == x1);
3300 REPORTER_ASSERT(reporter, pts[1].fY == y1);
3307 REPORTER_ASSERT(reporter, v == SkPath::kQuad_Verb);
3308 REPORTER_ASSERT(reporter, pts[1].fX == x1);
3309 REPORTER_ASSERT(reporter, pts[1].fY == y1);
3310 REPORTER_ASSERT(reporter, pts[2].fX == x2);
3311 REPORTER_ASSERT(reporter, pts[2].fY == y2);
3317 REPORTER_ASSERT(reporter, v == SkPath::kDone_Verb);
3384 REPORTER_ASSERT(reporter, p.getLastPt(&pt) && pt.fX == 1 && pt.fY == 1);
3387 REPORTER_ASSERT(reporter, p.getLastPt(&pt) && pt.fX == 1 && pt.fY == -1);
3401 REPORTER_ASSERT(reporter, nearly_equal(p.getBounds(), oval));
3407 REPORTER_ASSERT(reporter, nearly_equal(p.getBounds(), oval));
3414 REPORTER_ASSERT(reporter, p.isEmpty());
3419 REPORTER_ASSERT(reporter, p.isEmpty());
3433 REPORTER_ASSERT(reporter, p.getBounds() == expected);
3437 REPORTER_ASSERT(reporter, p.getBounds() == reverseExpected);
3453 REPORTER_ASSERT(reporter, verbcount == 4);
3454 REPORTER_ASSERT(reporter, verbs[0] == SkPath::kMove_Verb);
3455 REPORTER_ASSERT(reporter, verbs[1] == SkPath::kLine_Verb);
3456 REPORTER_ASSERT(reporter, verbs[2] == (extend ? SkPath::kLine_Verb : SkPath::kMove_Verb));
3457 REPORTER_ASSERT(reporter, verbs[3] == SkPath::kLine_Verb);
3471 REPORTER_ASSERT(reporter, verbcount == 7);
3472 REPORTER_ASSERT(reporter, verbs[0] == SkPath::kMove_Verb);
3473 REPORTER_ASSERT(reporter, verbs[1] == SkPath::kLine_Verb);
3474 REPORTER_ASSERT(reporter, verbs[2] == SkPath::kLine_Verb);
3475 REPORTER_ASSERT(reporter, verbs[3] == SkPath::kClose_Verb);
3476 REPORTER_ASSERT(reporter, verbs[4] == SkPath::kMove_Verb);
3477 REPORTER_ASSERT(reporter, verbs[5] == SkPath::kLine_Verb);
3478 REPORTER_ASSERT(reporter, verbs[6] == SkPath::kLine_Verb);
3481 REPORTER_ASSERT(reporter, p.getLastPt(&pt));
3482 REPORTER_ASSERT(reporter, pt == SkPoint::Make(2, 3));
3483 REPORTER_ASSERT(reporter, p.getPoint(3) == SkPoint::Make(1, 1));
3492 REPORTER_ASSERT(reporter, q == p);
3495 REPORTER_ASSERT(reporter, q == p);
3499 REPORTER_ASSERT(reporter, q.isEmpty());
3515 REPORTER_ASSERT(reporter, pt == SkPoint::Make(0, 0));
3516 REPORTER_ASSERT(reporter, !p.getLastPt(nullptr));
3517 REPORTER_ASSERT(reporter, !p.getLastPt(&pt) && pt == SkPoint::Make(0, 0));
3520 REPORTER_ASSERT(reporter, pt == SkPoint::Make(10, 10));
3521 REPORTER_ASSERT(reporter, p.getLastPt(nullptr));
3523 REPORTER_ASSERT(reporter, p.getLastPt(&pt) && pt == SkPoint::Make(20, 20));
3539 REPORTER_ASSERT(reporter, p.contains(0, 0));
3541 REPORTER_ASSERT(reporter, !p.contains(0, 0));
3546 REPORTER_ASSERT(reporter, p.contains(6, 4));
3547 REPORTER_ASSERT(reporter, p.contains(5, 6));
3548 REPORTER_ASSERT(reporter, p.contains(7, 6));
3550 REPORTER_ASSERT(reporter, !p.contains(4, 0));
3551 REPORTER_ASSERT(reporter, !p.contains(0, 4));
3552 REPORTER_ASSERT(reporter, !p.contains(4, 10));
3553 REPORTER_ASSERT(reporter, !p.contains(10, 4));
3555 REPORTER_ASSERT(reporter, !p.contains(5, 7));
3556 REPORTER_ASSERT(reporter, p.contains(6, 7));
3557 REPORTER_ASSERT(reporter, !p.contains(7, 7));
3563 REPORTER_ASSERT(reporter, p.contains(4, 6));
3564 REPORTER_ASSERT(reporter, p.contains(6, 5));
3565 REPORTER_ASSERT(reporter, p.contains(6, 7));
3567 REPORTER_ASSERT(reporter, !p.contains(7, 5));
3568 REPORTER_ASSERT(reporter, p.contains(7, 6));
3569 REPORTER_ASSERT(reporter, !p.contains(7, 7));
3576 REPORTER_ASSERT(reporter, p.contains(4, 4));
3577 REPORTER_ASSERT(reporter, p.contains(8, 4));
3578 REPORTER_ASSERT(reporter, p.contains(8, 8));
3579 REPORTER_ASSERT(reporter, p.contains(4, 8));
3585 REPORTER_ASSERT(reporter, p.contains(5, 6));
3586 REPORTER_ASSERT(reporter, p.contains(4, 8));
3587 REPORTER_ASSERT(reporter, p.contains(3, 6));
3593 REPORTER_ASSERT(reporter, p.contains(2, 5));
3594 REPORTER_ASSERT(reporter, p.contains(2, 7));
3595 REPORTER_ASSERT(reporter, p.contains(4, 6));
3604 REPORTER_ASSERT(reporter, !p.contains(1, 2));
3605 REPORTER_ASSERT(reporter, !p.contains(3, 2));
3606 REPORTER_ASSERT(reporter, !p.contains(4, 0));
3607 REPORTER_ASSERT(reporter, p.contains(4, 4));
3615 REPORTER_ASSERT(reporter, p.contains(5, 6));
3616 REPORTER_ASSERT(reporter, !p.contains(6, 5));
3618 REPORTER_ASSERT(reporter, p.contains(5, 5));
3619 REPORTER_ASSERT(reporter, p.contains(5, 8));
3620 REPORTER_ASSERT(reporter, p.contains(4, 5));
3622 REPORTER_ASSERT(reporter, p.contains(4, 4));
3623 REPORTER_ASSERT(reporter, p.contains(8, 8));
3624 REPORTER_ASSERT(reporter, p.contains(4, 8));
3632 REPORTER_ASSERT(reporter, p.contains(5, 6));
3633 REPORTER_ASSERT(reporter, !p.contains(6, 5));
3638 REPORTER_ASSERT(reporter, p.contains(halfway.fX, halfway.fY));
3648 REPORTER_ASSERT(reporter, p.contains(5, 6));
3649 REPORTER_ASSERT(reporter, !p.contains(6, 5));
3654 REPORTER_ASSERT(reporter, p.contains(halfway.fX, halfway.fY));
3657 REPORTER_ASSERT(reporter, p.contains(4, 4));
3658 REPORTER_ASSERT(reporter, p.contains(8, 8));
3659 REPORTER_ASSERT(reporter, p.contains(4, 8));
3670 REPORTER_ASSERT(reporter, p.contains(5.5f, 5.5f));
3671 REPORTER_ASSERT(reporter, !p.contains(4.5f, 5.5f));
3674 REPORTER_ASSERT(reporter, p.contains(halfway.fX, halfway.fY));
3676 REPORTER_ASSERT(reporter, p.contains(halfway.fX, halfway.fY));
3678 REPORTER_ASSERT(reporter, p.contains(pts[i].fX, pts[i].fY));
3679 REPORTER_ASSERT(reporter, p.contains(pts[i + 3].fX, pts[i + 3].fY));
3680 REPORTER_ASSERT(reporter, p.contains(pts[i + 6].fX, pts[i + 6].fY));
3695 REPORTER_ASSERT(reporter, kRepeatCnt == pathRef->countVerbs());
3696 REPORTER_ASSERT(reporter, kRepeatCnt == pathRef->countPoints());
3697 REPORTER_ASSERT(reporter, 0 == pathRef->getSegmentMasks());
3699 REPORTER_ASSERT(reporter, SkPath::kMove_Verb == pathRef->atVerb(i));
3706 REPORTER_ASSERT(reporter, kRepeatCnt == pathRef->countVerbs());
3707 REPORTER_ASSERT(reporter, kRepeatCnt == pathRef->countPoints());
3708 REPORTER_ASSERT(reporter, SkPath::kLine_SegmentMask == pathRef->getSegmentMasks());
3710 REPORTER_ASSERT(reporter, SkPath::kLine_Verb == pathRef->atVerb(i));
3717 REPORTER_ASSERT(reporter, kRepeatCnt == pathRef->countVerbs());
3718 REPORTER_ASSERT(reporter, 2*kRepeatCnt == pathRef->countPoints());
3719 REPORTER_ASSERT(reporter, SkPath::kQuad_SegmentMask == pathRef->getSegmentMasks());
3721 REPORTER_ASSERT(reporter, SkPath::kQuad_Verb == pathRef->atVerb(i));
3729 REPORTER_ASSERT(reporter, kRepeatCnt == pathRef->countVerbs());
3730 REPORTER_ASSERT(reporter, 2*kRepeatCnt == pathRef->countPoints());
3731 REPORTER_ASSERT(reporter, kRepeatCnt == pathRef->countWeights());
3732 REPORTER_ASSERT(reporter, SkPath::kConic_SegmentMask == pathRef->getSegmentMasks());
3733 REPORTER_ASSERT(reporter, weights);
3735 REPORTER_ASSERT(reporter, SkPath::kConic_Verb == pathRef->atVerb(i));
3742 REPORTER_ASSERT(reporter, kRepeatCnt == pathRef->countVerbs());
3743 REPORTER_ASSERT(reporter, 3*kRepeatCnt == pathRef->countPoints());
3744 REPORTER_ASSERT(reporter, SkPath::kCubic_SegmentMask == pathRef->getSegmentMasks());
3746 REPORTER_ASSERT(reporter, SkPath::kCubic_Verb == pathRef->atVerb(i));
3756 REPORTER_ASSERT(reporter, a == a);
3757 REPORTER_ASSERT(reporter, a == b);
3759 REPORTER_ASSERT(reporter, a != b);
3761 REPORTER_ASSERT(reporter, a == b);
3763 REPORTER_ASSERT(reporter, a != b);
3765 REPORTER_ASSERT(reporter, a == b);
3768 REPORTER_ASSERT(reporter, a != b);
3771 REPORTER_ASSERT(reporter, a == b);
3779 REPORTER_ASSERT(reporter, data->size() == strlen(str));
3781 REPORTER_ASSERT(reporter, !memcmp(data->data(), str, strlen(str)));
3783 REPORTER_ASSERT(reporter, data->data() == nullptr || !memcmp(data->data(), str, strlen(str)));
3859 REPORTER_ASSERT(reporter, p.getBounds() == reverseExpected);
3871 REPORTER_ASSERT(reporter, !changed);
3873 REPORTER_ASSERT(reporter, changed);
3877 REPORTER_ASSERT(reporter, !changed);
3879 REPORTER_ASSERT(reporter, changed);
3883 REPORTER_ASSERT(reporter, !changed);
3885 REPORTER_ASSERT(reporter, changed);
3891 REPORTER_ASSERT(reporter, !changed);
3893 REPORTER_ASSERT(reporter, changed);
3900 REPORTER_ASSERT(reporter, !changed);
3903 REPORTER_ASSERT(reporter, changed);
3909 REPORTER_ASSERT(reporter, p1.isInterpolatable(p2));
3910 REPORTER_ASSERT(reporter, p1.interpolate(p2, 0, &out));
3911 REPORTER_ASSERT(reporter, p1 == out);
3912 REPORTER_ASSERT(reporter, p1.interpolate(p2, 1, &out));
3913 REPORTER_ASSERT(reporter, p1 == out);
3916 REPORTER_ASSERT(reporter, !p1.isInterpolatable(p2));
3917 REPORTER_ASSERT(reporter, !p1.interpolate(p2, 1, &out));
3920 REPORTER_ASSERT(reporter, p1.isInterpolatable(p2));
3921 REPORTER_ASSERT(reporter, p1.interpolate(p2, 0, &out));
3922 REPORTER_ASSERT(reporter, p2 == out);
3923 REPORTER_ASSERT(reporter, p1.interpolate(p2, 1, &out));
3924 REPORTER_ASSERT(reporter, p1 == out);
3925 REPORTER_ASSERT(reporter, p1.interpolate(p2, 0.5f, &out));
3926 REPORTER_ASSERT(reporter, out.getBounds() == SkRect::MakeLTRB(3, 1, 4, 2));
3933 REPORTER_ASSERT(reporter, p1.isInterpolatable(p2));
3934 REPORTER_ASSERT(reporter, p1.interpolate(p2, 0.5f, &out));
3935 REPORTER_ASSERT(reporter, out.getBounds() == SkRect::MakeLTRB(4, 3, 6, 5));
3939 REPORTER_ASSERT(reporter, !p1.isInterpolatable(p2));
3943 REPORTER_ASSERT(reporter, !p1.isInterpolatable(p2));
3963 REPORTER_ASSERT(reporter, p.getBounds().isEmpty());
3977 REPORTER_ASSERT(reporter,
3979 REPORTER_ASSERT(reporter, !p.isEmpty());
3986 REPORTER_ASSERT(reporter, !p.isEmpty());
3994 REPORTER_ASSERT(reporter, SkPath::kLine_SegmentMask == p.getSegmentMasks());
3995 REPORTER_ASSERT(reporter, !p.isEmpty());
3997 REPORTER_ASSERT(reporter, p != empty);
3998 REPORTER_ASSERT(reporter, !(p == empty));
4001 REPORTER_ASSERT(reporter, p.getPoints(nullptr, 0) == 4);
4002 REPORTER_ASSERT(reporter, p.getVerbs(nullptr, 0) == 5);
4005 REPORTER_ASSERT(reporter, count == 4);
4009 REPORTER_ASSERT(reporter, SkPath::kMove_Verb == verbs[0]);
4010 REPORTER_ASSERT(reporter, SkPath::kLine_Verb == verbs[1]);
4011 REPORTER_ASSERT(reporter, SkPath::kLine_Verb == verbs[2]);
4012 REPORTER_ASSERT(reporter, SkPath::kLine_Verb == verbs[3]);
4013 REPORTER_ASSERT(reporter, SkPath::kClose_Verb == verbs[4]);
4014 REPORTER_ASSERT(reporter, 0xff == verbs[5]);
4016 REPORTER_ASSERT(reporter, bounds == bounds2);
4020 REPORTER_ASSERT(reporter, bounds == p.getBounds());
4022 REPORTER_ASSERT(reporter, p.isRect(nullptr));
4024 REPORTER_ASSERT(reporter, p.isRect(&bounds2));
4025 REPORTER_ASSERT(reporter, bounds == bounds2);
4030 REPORTER_ASSERT(reporter, !p.isRect(nullptr));
4038 REPORTER_ASSERT(reporter, p.isRect(&r));
4039 REPORTER_ASSERT(reporter, r == bounds);
4042 REPORTER_ASSERT(reporter, p.isRect(&r));
4043 REPORTER_ASSERT(reporter, r == bounds);