Lines Matching refs:reporter
18 static void test_asMode(skiatest::Reporter* reporter) { in test_asMode() argument
23 REPORTER_ASSERT(reporter, reportedMode != mode); in test_asMode()
26 REPORTER_ASSERT(reporter, SkXfermode::IsMode(xfer, &reportedMode)); in test_asMode()
27 REPORTER_ASSERT(reporter, reportedMode == mode); in test_asMode()
32 REPORTER_ASSERT(reporter, xfer->asMode(&reportedMode)); in test_asMode()
33 REPORTER_ASSERT(reporter, reportedMode == mode); in test_asMode()
36 REPORTER_ASSERT(reporter, SkXfermode::kSrcOver_Mode == mode); in test_asMode()
42 REPORTER_ASSERT(reporter, !bogusXfer->asMode(&reportedMode)); in test_asMode()
43 REPORTER_ASSERT(reporter, reportedMode == -1); in test_asMode()
44 REPORTER_ASSERT(reporter, !SkXfermode::IsMode(bogusXfer, &reportedMode)); in test_asMode()
45 REPORTER_ASSERT(reporter, reportedMode == -1); in test_asMode()
49 static void test_IsMode(skiatest::Reporter* reporter) { in test_IsMode() argument
50 REPORTER_ASSERT(reporter, SkXfermode::IsMode(NULL, in test_IsMode()
57 REPORTER_ASSERT(reporter, SkXfermode::IsMode(xfer, mode)); in test_IsMode()
61 REPORTER_ASSERT(reporter, !SkXfermode::IsMode(NULL, mode)); in test_IsMode()
66 static void test_xfermodes(skiatest::Reporter* reporter) { in test_xfermodes() argument
67 test_asMode(reporter); in test_xfermodes()
68 test_IsMode(reporter); in test_xfermodes()