Lines Matching refs:REPORTER
33 class Reporter : SkNoncopyable {
35 virtual ~Reporter() {}
42 #define REPORT_FAILURE(reporter, cond, message) \
43 reporter->reportFailed(skiatest::Failure(__FILE__, __LINE__, cond, message))
45 typedef void (*TestProc)(skiatest::Reporter*, GrContextFactory*);
61 DEF_TEST(TestName, reporter) {
63 REPORTER_ASSERT(reporter, x == 15);
65 REPORTER_ASSERT_MESSAGE(reporter, x == 15, "x should be 15");
68 ERRORF(reporter, "x should be 15, but is %d", x);
86 void RunWithGPUTestContexts(T testFunction, GPUTestContexts contexts, Reporter* reporter,
109 #define INFOF(REPORTER, ...) \
111 if ((REPORTER)->verbose()) { \
116 #define DEF_TEST(name, reporter) \
117 static void test_##name(skiatest::Reporter*, GrContextFactory*); \
120 void test_##name(skiatest::Reporter* reporter, GrContextFactory*)
132 #define DEF_GPUTEST(name, reporter, factory) \
133 static void test_##name(skiatest::Reporter*, GrContextFactory*); \
136 void test_##name(skiatest::Reporter* reporter, GrContextFactory* factory)
138 #define DEF_GPUTEST_FOR_CONTEXTS(name, contexts, reporter, ...) \
139 static void test_##name(skiatest::Reporter*, GPUTEST_CONTEXT_ARGS(__VA_ARGS__)); \
140 static void test_gpu_contexts_##name(skiatest::Reporter* reporter, \
142 skiatest::RunWithGPUTestContexts(test_##name, contexts, reporter, factory); \
146 void test_##name(skiatest::Reporter* reporter, GPUTEST_CONTEXT_ARGS(__VA_ARGS__))
148 #define DEF_GPUTEST_FOR_ALL_CONTEXTS(name, reporter, ...) \
149 DEF_GPUTEST_FOR_CONTEXTS(name, skiatest::kAll_GPUTestContexts, reporter, __VA_ARGS__)
150 #define DEF_GPUTEST_FOR_RENDERING_CONTEXTS(name, reporter, ...) \
151 DEF_GPUTEST_FOR_CONTEXTS(name, skiatest::kAllRendering_GPUTestContexts, reporter, __VA_ARGS__)
152 #define DEF_GPUTEST_FOR_NULL_CONTEXT(name, reporter, ...) \
153 DEF_GPUTEST_FOR_CONTEXTS(name, skiatest::kNull_GPUTestContexts, reporter, __VA_ARGS__)
154 #define DEF_GPUTEST_FOR_NATIVE_CONTEXT(name, reporter, ...) \
155 DEF_GPUTEST_FOR_CONTEXTS(name, skiatest::kNative_GPUTestContexts, reporter, __VA_ARGS__)
157 #define REQUIRE_PDF_DOCUMENT(TEST_NAME, REPORTER) \
162 INFOF(REPORTER, "PDF disabled; %s test skipped.", #TEST_NAME); \