Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

40 class Reporter : SkNoncopyable {
42 virtual ~Reporter() {}
74 #define REPORT_FAILURE(reporter, cond, message) \
75 reporter->reportFailedWithContext(skiatest::Failure(__FILE__, __LINE__, cond, message))
79 ReporterContext(Reporter* reporter, const SkString& message) : fReporter(reporter) {
87 Reporter* fReporter;
90 typedef void (*TestProc)(skiatest::Reporter*, sk_gpu_test::GrContextFactory*);
106 DEF_TEST(TestName, reporter) {
108 REPORTER_ASSERT(reporter, x == 15);
110 REPORTER_ASSERT_MESSAGE(reporter, x == 15, "x should be 15");
113 ERRORF(reporter, "x should be 15, but is %d", x);
126 typedef void GrContextTestFn(Reporter*, const sk_gpu_test::ContextInfo&);
134 Reporter*, sk_gpu_test::GrContextFactory*);
177 #define INFOF(REPORTER, ...) \
179 if ((REPORTER)->verbose()) { \
184 #define DEF_TEST(name, reporter) \
185 static void test_##name(skiatest::Reporter*, sk_gpu_test::GrContextFactory*); \
188 void test_##name(skiatest::Reporter* reporter, sk_gpu_test::GrContextFactory*)
191 #define DEF_GPUTEST(name, reporter, factory) \
192 static void test_##name(skiatest::Reporter*, sk_gpu_test::GrContextFactory*); \
195 void test_##name(skiatest::Reporter* reporter, sk_gpu_test::GrContextFactory* factory)
197 #define DEF_GPUTEST_FOR_CONTEXTS(name, context_filter, reporter, context_info) \
198 static void test_##name(skiatest::Reporter*, \
200 static void test_gpu_contexts_##name(skiatest::Reporter* reporter, \
202 skiatest::RunWithGPUTestContexts(test_##name, context_filter, reporter, factory); \
206 void test_##name(skiatest::Reporter* reporter, \
209 #define DEF_GPUTEST_FOR_ALL_CONTEXTS(name, reporter, context_info) \
210 DEF_GPUTEST_FOR_CONTEXTS(name, nullptr, reporter, context_info)
211 #define DEF_GPUTEST_FOR_RENDERING_CONTEXTS(name, reporter, context_info) \
213 reporter, context_info)
214 #define DEF_GPUTEST_FOR_ALL_GL_CONTEXTS(name, reporter, context_info) \
215 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsGLContextType, reporter, context_info)
216 #define DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(name, reporter, context_info) \
217 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsRenderingGLContextType, reporter, context_info)
218 #define DEF_GPUTEST_FOR_NULLGL_CONTEXT(name, reporter, context_info) \
219 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsNullGLContextType, reporter, context_info)
220 #define DEF_GPUTEST_FOR_VULKAN_CONTEXT(name, reporter, context_info) \
221 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsVulkanContextType, reporter, context_info)
223 #define REQUIRE_PDF_DOCUMENT(TEST_NAME, REPORTER) \
228 INFOF(REPORTER, "PDF disabled; %s test skipped.", #TEST_NAME); \