Lines Matching refs:REPORTER_ASSERT

35         REPORTER_ASSERT(reporter, (double) rr.radii(SkRRect::kUpperRight_Corner).fY +
51 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == other.getType());
76 REPORTER_ASSERT(reporter, !r.isEmpty());
77 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted());
80 REPORTER_ASSERT(reporter, !r.isEmpty());
81 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted());
84 REPORTER_ASSERT(reporter, !r.isEmpty());
85 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted());
88 REPORTER_ASSERT(reporter, !r.isEmpty());
89 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted());
92 REPORTER_ASSERT(reporter, !r.isEmpty());
93 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted());
98 REPORTER_ASSERT(reporter, r.isEmpty());
99 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]);
102 REPORTER_ASSERT(reporter, r.isEmpty());
103 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]);
106 REPORTER_ASSERT(reporter, r.isEmpty());
107 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]);
110 REPORTER_ASSERT(reporter, r.isEmpty());
111 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]);
114 REPORTER_ASSERT(reporter, r.isEmpty());
115 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]);
119 REPORTER_ASSERT(reporter, r == SkRRect::MakeEmpty());
121 REPORTER_ASSERT(reporter, r == SkRRect::MakeEmpty());
133 REPORTER_ASSERT(reporter, rr2.isRect());
136 REPORTER_ASSERT(reporter, rr2.isRect());
139 REPORTER_ASSERT(reporter, rr2.isEmpty());
143 REPORTER_ASSERT(reporter, rr2.isSimple());
145 REPORTER_ASSERT(reporter, rr2.isRect());
156 REPORTER_ASSERT(reporter, SkRRect::kNinePatch_Type == rr.type());
157 REPORTER_ASSERT(reporter, rr.rect() == rect);
165 REPORTER_ASSERT(reporter, rquad[i] == rr.radii((SkRRect::Corner) i));
171 REPORTER_ASSERT(reporter, rr2 == rr && rr2.getType() == rr.getType());
182 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == empty.type());
183 REPORTER_ASSERT(reporter, empty.rect().isEmpty());
186 REPORTER_ASSERT(reporter, zeroPt == empty.radii((SkRRect::Corner) i));
195 REPORTER_ASSERT(reporter, SkRRect::kRect_Type == rr1.type());
196 REPORTER_ASSERT(reporter, rr1.rect() == rect);
199 REPORTER_ASSERT(reporter, zeroPt == rr1.radii((SkRRect::Corner) i));
204 REPORTER_ASSERT(reporter, rr1_2 == rr1 && rr1_2.getType() == rr1.getType());
207 REPORTER_ASSERT(reporter, rr1_3 == rr1 && rr1_3.getType() == rr1.getType());
214 REPORTER_ASSERT(reporter, SkRRect::kOval_Type == rr2.type());
215 REPORTER_ASSERT(reporter, rr2.rect() == rect);
218 REPORTER_ASSERT(reporter,
226 REPORTER_ASSERT(reporter, rr2_2 == rr2 && rr2_2.getType() == rr2.getType());
229 REPORTER_ASSERT(reporter, rr2_3 == rr2 && rr2_3.getType() == rr2.getType());
236 REPORTER_ASSERT(reporter, SkRRect::kSimple_Type == rr3.type());
237 REPORTER_ASSERT(reporter, rr3.rect() == rect);
240 REPORTER_ASSERT(reporter, p == rr3.radii((SkRRect::Corner) i));
245 REPORTER_ASSERT(reporter, rr3_2 == rr3 && rr3_2.getType() == rr3.getType());
248 REPORTER_ASSERT(reporter, rr3_3 == rr3 && rr3_3.getType() == rr3.getType());
269 REPORTER_ASSERT(reporter, SkRRect::kComplex_Type == rr5.type());
270 REPORTER_ASSERT(reporter, rr5.rect() == rect);
273 REPORTER_ASSERT(reporter, radii2[i] == rr5.radii((SkRRect::Corner) i));
277 REPORTER_ASSERT(reporter, empty != rr3);
278 REPORTER_ASSERT(reporter, rr3 != rr5);
290 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == empty.type());
292 REPORTER_ASSERT(reporter, 0 == r.fLeft && 0 == r.fTop && 0 == r.fRight && 0 == r.fBottom);
299 REPORTER_ASSERT(reporter, SkRRect::kRect_Type == rr1.type());
301 REPORTER_ASSERT(reporter, rect == r);
309 REPORTER_ASSERT(reporter, SkRRect::kRect_Type == rr2.type());
311 REPORTER_ASSERT(reporter, rect == r);
318 REPORTER_ASSERT(reporter, SkRRect::kComplex_Type == rr3.type());
329 REPORTER_ASSERT(reporter, SkRRect::kOval_Type == rr1.type());
331 REPORTER_ASSERT(reporter, oval == rect);
341 REPORTER_ASSERT(reporter, SkRRect::kSimple_Type == rr1.type());
349 REPORTER_ASSERT(reporter, SkRRect::kComplex_Type == rr2.type());
363 REPORTER_ASSERT(reporter, SkRRect::kComplex_Type == rr1.type());
367 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.fX, 33.33333f));
368 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.fY, 66.66666f));
374 REPORTER_ASSERT(reporter, SkRRect::kRect_Type == rr2.type());
378 REPORTER_ASSERT(reporter, 0.0f == p2.fX);
379 REPORTER_ASSERT(reporter, 0.0f == p2.fY);
394 REPORTER_ASSERT(reporter, contains[i] == rr.contains(test));
432 REPORTER_ASSERT(reporter, !rrects[i].contains(easyOuts[j]));
528 REPORTER_ASSERT(reporter, !success);
530 REPORTER_ASSERT(reporter, copyOfDst == dst);
532 REPORTER_ASSERT(reporter, copyOfOrig == orig);
533 REPORTER_ASSERT(reporter, orig != dst);
553 REPORTER_ASSERT(reporter, success);
554 REPORTER_ASSERT(reporter, orig == dst);
587 REPORTER_ASSERT(reporter, success);
589 REPORTER_ASSERT(reporter,
592 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().width());
593 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().height());
594 REPORTER_ASSERT(reporter, dst.rect().left() == orig.rect().left() + translateX);
595 REPORTER_ASSERT(reporter, dst.rect().top() == orig.rect().top() + translateY);
606 REPORTER_ASSERT(reporter, success);
610 REPORTER_ASSERT(reporter, origUL == dstUR);
611 REPORTER_ASSERT(reporter, origUR == dstUL);
612 REPORTER_ASSERT(reporter, origLR == dstLL);
613 REPORTER_ASSERT(reporter, origLL == dstLR);
616 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().width());
617 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().height());
619 REPORTER_ASSERT(reporter, orig.rect().right() == -dst.rect().left());
621 REPORTER_ASSERT(reporter, orig.rect().top() == dst.rect().top());
632 REPORTER_ASSERT(reporter, success);
636 REPORTER_ASSERT(reporter, origUL == dstLL);
637 REPORTER_ASSERT(reporter, origUR == dstLR);
638 REPORTER_ASSERT(reporter, origLR == dstUR);
639 REPORTER_ASSERT(reporter, origLL == dstUL);
642 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().width());
643 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().height());
645 REPORTER_ASSERT(reporter, orig.rect().top() == -dst.rect().bottom());
647 REPORTER_ASSERT(reporter, orig.rect().left() == dst.rect().left());
655 REPORTER_ASSERT(reporter, success);
658 REPORTER_ASSERT(reporter, origUL == dstLR);
659 REPORTER_ASSERT(reporter, origUR == dstLL);
660 REPORTER_ASSERT(reporter, origLR == dstUL);
661 REPORTER_ASSERT(reporter, origLL == dstUR);
664 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().width());
665 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().height());
666 REPORTER_ASSERT(reporter, orig.rect().top() == -dst.rect().bottom());
667 REPORTER_ASSERT(reporter, orig.rect().right() == -dst.rect().left());
677 REPORTER_ASSERT(reporter, success);
680 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.radii((SkRRect::Corner) i).fX,
682 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.radii((SkRRect::Corner) i).fY,
685 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.rect().width(),
687 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.rect().height(),
689 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.rect().left(),
691 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.rect().top(),
703 REPORTER_ASSERT(reporter, success);
707 REPORTER_ASSERT(reporter, dstUL.x() == origLL.y());
708 REPORTER_ASSERT(reporter, dstUL.y() == origLL.x());
709 REPORTER_ASSERT(reporter, dstUR.x() == origUL.y());
710 REPORTER_ASSERT(reporter, dstUR.y() == origUL.x());
711 REPORTER_ASSERT(reporter, dstLR.x() == origUR.y());
712 REPORTER_ASSERT(reporter, dstLR.y() == origUR.x());
713 REPORTER_ASSERT(reporter, dstLL.x() == origLR.y());
714 REPORTER_ASSERT(reporter, dstLL.y() == origLR.x());
717 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().height());
718 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().width());
729 REPORTER_ASSERT(reporter, success);
732 REPORTER_ASSERT(reporter, dstUL.x() == origLR.y());
733 REPORTER_ASSERT(reporter, dstUL.y() == origLR.x());
734 REPORTER_ASSERT(reporter, dstUR.x() == origUR.y());
735 REPORTER_ASSERT(reporter, dstUR.y() == origUR.x());
736 REPORTER_ASSERT(reporter, dstLR.x() == origUL.y());
737 REPORTER_ASSERT(reporter, dstLR.y() == origUL.x());
738 REPORTER_ASSERT(reporter, dstLL.x() == origLL.y());
739 REPORTER_ASSERT(reporter, dstLL.y() == origLL.x());
742 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().height());
743 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().width());
757 REPORTER_ASSERT(reporter, success);
758 REPORTER_ASSERT(reporter, dst == dst2);
769 REPORTER_ASSERT(reporter, success);
770 REPORTER_ASSERT(reporter, dst == dst2);
781 REPORTER_ASSERT(reporter, success);
782 REPORTER_ASSERT(reporter, dst == dst2);
793 REPORTER_ASSERT(reporter, success);
796 REPORTER_ASSERT(reporter, dstUL.x() == origUL.y());
797 REPORTER_ASSERT(reporter, dstUL.y() == origUL.x());
798 REPORTER_ASSERT(reporter, dstUR.x() == origLL.y());
799 REPORTER_ASSERT(reporter, dstUR.y() == origLL.x());
800 REPORTER_ASSERT(reporter, dstLR.x() == origLR.y());
801 REPORTER_ASSERT(reporter, dstLR.y() == origLR.x());
802 REPORTER_ASSERT(reporter, dstLL.x() == origUR.y());
803 REPORTER_ASSERT(reporter, dstLL.y() == origUR.x());
806 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().height());
807 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().width());
819 REPORTER_ASSERT(reporter, success);
820 REPORTER_ASSERT(reporter, dst == dst2);
831 REPORTER_ASSERT(reporter, success);
832 REPORTER_ASSERT(reporter, dst == dst2);
843 REPORTER_ASSERT(reporter, success);
844 REPORTER_ASSERT(reporter, dst == dst2);
858 REPORTER_ASSERT(reporter, success);
862 REPORTER_ASSERT(reporter, dstUL.x() == origUR.y());
863 REPORTER_ASSERT(reporter, dstUL.y() == origUR.x());
864 REPORTER_ASSERT(reporter, dstUR.x() == origLR.y());
865 REPORTER_ASSERT(reporter, dstUR.y() == origLR.x());
866 REPORTER_ASSERT(reporter, dstLR.x() == origLL.y());
867 REPORTER_ASSERT(reporter, dstLR.y() == origLL.x());
868 REPORTER_ASSERT(reporter, dstLL.x() == origUL.y());
869 REPORTER_ASSERT(reporter, dstLL.y() == origUL.x());
872 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().height());
873 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().width());
884 REPORTER_ASSERT(reporter, success);
885 REPORTER_ASSERT(reporter, dst == dst2);
898 REPORTER_ASSERT(reporter, success);
904 REPORTER_ASSERT(reporter, dst == dst2);
943 REPORTER_ASSERT(reporter, success);
949 REPORTER_ASSERT(reporter,
951 REPORTER_ASSERT(reporter,
963 REPORTER_ASSERT(reporter, size == SkRRect::kSizeInMemory);
964 REPORTER_ASSERT(reporter, deserialized.isValid());
966 REPORTER_ASSERT(reporter, rrect == deserialized);
1025 REPORTER_ASSERT(reporter, SkRRectPriv::InnerBounds(SkRRect::MakeEmpty()).isEmpty());
1028 REPORTER_ASSERT(reporter, SkRRectPriv::InnerBounds(SkRRect::MakeRect(r)) == r);
1033 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(inner.width() * inner.height(),
1047 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(inner.width() * inner.height(),
1052 REPORTER_ASSERT(reporter, SkRRectPriv::InnerBounds(rr) ==
1056 REPORTER_ASSERT(reporter, SkRRectPriv::InnerBounds(rr) ==
1085 REPORTER_ASSERT(reporter, outer.contains(maxInner));
1086 REPORTER_ASSERT(reporter, rr.contains(maxInner));
1093 REPORTER_ASSERT(reporter, maxInner.contains(inner));
1098 REPORTER_ASSERT(reporter, maxInner.contains(midX, maxTop));
1099 REPORTER_ASSERT(reporter, maxInner.contains(midX, maxTop + innerHeight));
1100 REPORTER_ASSERT(reporter, maxInner.contains(maxLeft, midY));
1101 REPORTER_ASSERT(reporter, maxInner.contains(maxLeft + innerWidth, midY));
1134 REPORTER_ASSERT(reporter, actual == SkRRectPriv::ConservativeIntersect(b, a));
1137 REPORTER_ASSERT(reporter, actual == SkRRectPriv::ConservativeIntersect(actual, a));
1138 REPORTER_ASSERT(reporter, actual == SkRRectPriv::ConservativeIntersect(actual, b));
1141 REPORTER_ASSERT(reporter, actual.rect() == expectedBounds);
1157 REPORTER_ASSERT(reporter, empty.isEmpty());
1164 REPORTER_ASSERT(reporter, intersection.isEmpty());
1165 REPORTER_ASSERT(reporter, SkRRectPriv::ConservativeIntersect(b, a).isEmpty());
1295 REPORTER_ASSERT(r, sizeof(buf) == SkRRect{}.readFromMemory(buf, sizeof(buf)));
1305 REPORTER_ASSERT(r, sizeof(buf) == SkRRect{}.readFromMemory(buf, sizeof(buf)));
1315 REPORTER_ASSERT(r, sizeof(buf) == SkRRect{}.readFromMemory(buf, sizeof(buf)));