Lines Matching refs:Reporter
13 static void test_eq_ops(skiatest::Reporter* reporter) {
18 REPORTER_ASSERT(reporter, p0 != p1);
19 REPORTER_ASSERT(reporter, p1 == p2);
22 static void test_ops(skiatest::Reporter* reporter) {
25 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(v.length(), SK_Scalar1));
29 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.length(), 3.0f));
32 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.length(), SK_Scalar1));
39 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.x(), 0.0f));
40 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.y(), 0.0f));
41 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.z(), 0.0f));
45 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.x(), 0.0f));
46 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.y(), 0.0f));
47 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.z(), 0.0f));
50 static void test_dot(skiatest::Reporter* reporter) {
56 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dot, 0.0f));
59 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dot, 0.0f));
62 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dot, 0.0f));
68 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dot, 1.0f));
73 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dot, SK_ScalarRoot2Over2));
76 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dot, SK_ScalarRoot2Over2));
79 static void test_length(skiatest::Reporter* reporter,
86 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(s1, s2));
87 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(s1, expectedLen));
90 static void test_normalize(skiatest::Reporter* reporter,
100 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(newLength, 0));
101 REPORTER_ASSERT(reporter, !result);
102 REPORTER_ASSERT(reporter, point == empty);
104 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(newLength, SK_Scalar1));
105 REPORTER_ASSERT(reporter, result);
109 DEF_TEST(Point3, reporter) {
110 test_eq_ops(reporter);
111 test_ops(reporter);
112 test_dot(reporter);
127 test_length(reporter, gRec[i].fX, gRec[i].fY, gRec[i].fZ, gRec[i].fLength);
128 test_normalize(reporter, gRec[i].fX, gRec[i].fY, gRec[i].fZ, gRec[i].fLength);