Lines Matching refs:Reporter
61 static void test_drawBitmap(skiatest::Reporter* reporter) {
74 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5));
78 REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5));
82 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5));
86 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5));
94 REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5));
97 static void test_layers(skiatest::Reporter* reporter) {
101 REPORTER_ASSERT(reporter, false == canvas.quickReject(r));
104 REPORTER_ASSERT(reporter, true == canvas.quickReject(r));
109 REPORTER_ASSERT(reporter, true == canvas.quickReject(SkRect::MakeWH(10, 10)));
110 REPORTER_ASSERT(reporter, false == canvas.quickReject(SkRect::MakeWH(60, 60)));
113 static void test_quick_reject(skiatest::Reporter* reporter) {
126 REPORTER_ASSERT(reporter, false == canvas.quickReject(r0));
127 REPORTER_ASSERT(reporter, true == canvas.quickReject(r1));
128 REPORTER_ASSERT(reporter, true == canvas.quickReject(r2));
129 REPORTER_ASSERT(reporter, false == canvas.quickReject(r3));
130 REPORTER_ASSERT(reporter, false == canvas.quickReject(r4));
131 REPORTER_ASSERT(reporter, false == canvas.quickReject(r5));
132 REPORTER_ASSERT(reporter, true == canvas.quickReject(r6));
133 REPORTER_ASSERT(reporter, true == canvas.quickReject(r7));
134 REPORTER_ASSERT(reporter, true == canvas.quickReject(r8));
135 REPORTER_ASSERT(reporter, true == canvas.quickReject(r9));
136 REPORTER_ASSERT(reporter, true == canvas.quickReject(r10));
145 REPORTER_ASSERT(reporter, false == canvas.quickReject(r11));
146 REPORTER_ASSERT(reporter, true == canvas.quickReject(r12));
147 REPORTER_ASSERT(reporter, true == canvas.quickReject(r13));
150 DEF_TEST(QuickReject, reporter) {
151 test_drawBitmap(reporter);
152 test_layers(reporter);
153 test_quick_reject(reporter);
159 DEF_TEST(QuickReject_MatrixState, reporter) {
169 REPORTER_ASSERT(reporter, filter);