Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

44 static void test_frontToBack(skiatest::Reporter* reporter) {
65 REPORTER_ASSERT(reporter, context->next(&canvas, &paint));
66 REPORTER_ASSERT(reporter, paint.getBlendMode() == SkBlendMode::kSrc);
68 REPORTER_ASSERT(reporter, 10.0f == device.fLastMatrix.getTranslateX());
69 REPORTER_ASSERT(reporter, 20.0f == device.fLastMatrix.getTranslateY());
73 REPORTER_ASSERT(reporter, context->next(&canvas, &paint));
74 REPORTER_ASSERT(reporter, paint.getBlendMode() == SkBlendMode::kSrcOver);
76 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateX());
77 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateY());
80 REPORTER_ASSERT(reporter, !context->next(&canvas, &paint));
83 static void test_backToFront(skiatest::Reporter* reporter) {
104 REPORTER_ASSERT(reporter, context->next(&canvas, &paint));
105 REPORTER_ASSERT(reporter, paint.getBlendMode() == SkBlendMode::kSrcOver);
107 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateX());
108 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateY());
112 REPORTER_ASSERT(reporter, context->next(&canvas, &paint));
113 REPORTER_ASSERT(reporter, paint.getBlendMode() == SkBlendMode::kSrc);
115 REPORTER_ASSERT(reporter, 10.0f == device.fLastMatrix.getTranslateX());
116 REPORTER_ASSERT(reporter, 20.0f == device.fLastMatrix.getTranslateY());
119 REPORTER_ASSERT(reporter, !context->next(&canvas, &paint));
122 static void test_mixed(skiatest::Reporter* reporter) {
143 REPORTER_ASSERT(reporter, context->next(&canvas, &paint));
144 REPORTER_ASSERT(reporter, paint.getBlendMode() == SkBlendMode::kSrcOver);
146 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateX());
147 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateY());
151 REPORTER_ASSERT(reporter, context->next(&canvas, &paint));
152 REPORTER_ASSERT(reporter, paint.getBlendMode() == SkBlendMode::kSrc);
154 REPORTER_ASSERT(reporter, 10.0f == device.fLastMatrix.getTranslateX());
155 REPORTER_ASSERT(reporter, 20.0f == device.fLastMatrix.getTranslateY());
158 REPORTER_ASSERT(reporter, !context->next(&canvas, &paint));
161 DEF_TEST(LayerDrawLooper, reporter) {
162 test_frontToBack(reporter);
163 test_backToFront(reporter);
164 test_mixed(reporter);