Lines Matching refs:Reporter
15 static void test_roundtoint(skiatest::Reporter* reporter) {
20 REPORTER_ASSERT(reporter, 1 == ix);
25 REPORTER_ASSERT(reporter, 0 == ix);
34 static void test_isRectFinite(skiatest::Reporter* reporter) {
73 REPORTER_ASSERT(reporter, gSets[i].fIsFinite == rectIsFinite);
112 static void test_floatclass(skiatest::Reporter* reporter, float value, FloatClass fc) {
115 REPORTER_ASSERT(reporter, !!sk_float_isfinite(value) == (fc == kFinite));
116 REPORTER_ASSERT(reporter, !!sk_float_isinf(value) == (fc == kInfinite));
117 REPORTER_ASSERT(reporter, !!sk_float_isnan(value) == (fc == kNaN));
127 static void test_isfinite(skiatest::Reporter* reporter) {
137 test_floatclass(reporter, 0, kFinite);
138 test_floatclass(reporter, max, kFinite);
139 test_floatclass(reporter, -max, kFinite);
140 test_floatclass(reporter, inf, kInfinite);
141 test_floatclass(reporter, -inf, kInfinite);
142 test_floatclass(reporter, nan, kNaN);
143 test_floatclass(reporter, -nan, kNaN);
174 REPORTER_ASSERT(reporter, rec.fIsFinite == finite);
188 REPORTER_ASSERT(reporter, finite2 == finite);
194 test_isRectFinite(reporter);
201 DEF_TEST(Scalar, reporter) {
202 test_isfinite(reporter);
203 test_roundtoint(reporter);