Lines Matching defs:reporter
29 static void test_stroke_width_clipping(skiatest::Reporter* reporter) {
45 REPORTER_ASSERT(reporter, !has_green_pixels(bm));
50 REPORTER_ASSERT(reporter, has_green_pixels(bm));
53 static void test_skbug4406(skiatest::Reporter* reporter) {
74 REPORTER_ASSERT(reporter, !has_green_pixels(bm));
88 REPORTER_ASSERT(reporter, has_green_pixels(bm));
91 DEF_TEST(Rect, reporter) {
92 test_stroke_width_clipping(reporter);
93 test_skbug4406(reporter);
96 DEF_TEST(Rect_grow, reporter) {
97 test_stroke_width_clipping(reporter);
98 test_skbug4406(reporter);
101 DEF_TEST(Rect_path_nan, reporter) {
106 REPORTER_ASSERT(reporter, !p.isFinite());
109 DEF_TEST(Rect_largest, reporter) {
110 REPORTER_ASSERT(reporter, !SkRectPriv::MakeILarge().isEmpty());
111 REPORTER_ASSERT(reporter, SkRectPriv::MakeILargestInverted().isEmpty());
113 REPORTER_ASSERT(reporter, !SkRectPriv::MakeLargest().isEmpty());
114 REPORTER_ASSERT(reporter, !SkRectPriv::MakeLargeS32().isEmpty());
115 REPORTER_ASSERT(reporter, SkRectPriv::MakeLargestInverted().isEmpty());
123 DEF_TEST(Rect_setbounds, reporter) {
134 REPORTER_ASSERT(reporter, !isfinite);
135 REPORTER_ASSERT(reporter, r == zeror);
140 REPORTER_ASSERT(reporter, !r.isFinite());
145 static float make_big_value(skiatest::Reporter* reporter) {
149 SkASSERT(reporter);
150 return reporter ? SK_ScalarMax * 0.75f : 0;
153 DEF_TEST(Rect_whOverflow, reporter) {
154 const SkScalar big = make_big_value(reporter);
157 REPORTER_ASSERT(reporter, r.isFinite());
158 REPORTER_ASSERT(reporter, !SkScalarIsFinite(r.width()));
159 REPORTER_ASSERT(reporter, !SkScalarIsFinite(r.height()));
162 REPORTER_ASSERT(reporter, SkScalarIsFinite(r.centerX()));
163 REPORTER_ASSERT(reporter, SkScalarIsFinite(r.centerY()));
168 REPORTER_ASSERT(reporter, SkScalarIsFinite(SkRectPriv::HalfWidth(r)));
169 REPORTER_ASSERT(reporter, SkScalarIsFinite(SkRectPriv::HalfHeight(r)));
172 DEF_TEST(Rect_subtract, reporter) {
227 REPORTER_ASSERT(reporter, exact == e.fExact);
228 REPORTER_ASSERT(reporter, difference == e.fExpected);
240 REPORTER_ASSERT(reporter, exact == e.fExact);
241 REPORTER_ASSERT(reporter, (df.isEmpty() && ef.isEmpty()) || (df == ef));
245 DEF_TEST(Rect_subtract_overflow, reporter) {
261 REPORTER_ASSERT(reporter, exact);
262 REPORTER_ASSERT(reporter, difference == reallyBig);
267 REPORTER_ASSERT(reporter, exact);
268 REPORTER_ASSERT(reporter, difference == reasonable);
275 DEF_TEST(big_tiled_rect_crbug_927075, reporter) {