Lines Matching defs:reporter

54 #define REPORT_FAILURE(reporter, cond, message) \
55 reporter->reportFailedWithContext(skiatest::Failure(__FILE__, __LINE__, cond, message))
59 ReporterContext(Reporter* reporter, const SkString& message) : fReporter(reporter) {
109 DEF_TEST(TestName, reporter) {
111 REPORTER_ASSERT(reporter, x == 15);
113 REPORTER_ASSERT(reporter, x == 15, "x should be 15");
116 ERRORF(reporter, "x should be 15, but is %d", x);
195 #define DEF_TEST(name, reporter) \
199 void test_##name(skiatest::Reporter* reporter, const GrContextOptions&)
201 #define DEF_TEST_DISABLED(name, reporter) \
205 void test_##name(skiatest::Reporter* reporter, const GrContextOptions&) { \
208 void disabled_##name(skiatest::Reporter* reporter, const GrContextOptions&)
216 #define DEF_GRAPHITE_TEST(name, reporter) \
218 static void test_graphite_##name(skiatest::Reporter* reporter, \
220 test_##name(reporter); \
224 void test_##name(skiatest::Reporter* reporter)
226 #define DEF_GRAPHITE_TEST_FOR_CONTEXTS(name, reporter, graphite_context) \
235 void test_##name(skiatest::Reporter* reporter, skgpu::Context* graphite_context)
237 #define DEF_GPUTEST(name, reporter, options) \
241 void test_##name(skiatest::Reporter* reporter, const GrContextOptions& options)
243 #define DEF_GPUTEST_FOR_CONTEXTS(name, context_filter, reporter, context_info, options_filter) \
245 static void test_gpu_contexts_##name(skiatest::Reporter* reporter, \
247 skiatest::RunWithGPUTestContexts(test_##name, context_filter, reporter, options); \
251 void test_##name(skiatest::Reporter* reporter, const sk_gpu_test::ContextInfo& context_info)
253 #define DEF_GPUTEST_FOR_ALL_CONTEXTS(name, reporter, context_info) \
254 DEF_GPUTEST_FOR_CONTEXTS(name, nullptr, reporter, context_info, nullptr)
256 #define DEF_GPUTEST_FOR_RENDERING_CONTEXTS(name, reporter, context_info) \
258 reporter, context_info, nullptr)
259 #define DEF_GPUTEST_FOR_ALL_GL_CONTEXTS(name, reporter, context_info) \
261 reporter, context_info, nullptr)
262 #define DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(name, reporter, context_info) \
264 reporter, context_info, nullptr)
265 #define DEF_GPUTEST_FOR_MOCK_CONTEXT(name, reporter, context_info) \
267 reporter, context_info, nullptr)
268 #define DEF_GPUTEST_FOR_VULKAN_CONTEXT(name, reporter, context_info) \
270 reporter, context_info, nullptr)
271 #define DEF_GPUTEST_FOR_METAL_CONTEXT(name, reporter, context_info) \
273 reporter, context_info, nullptr)
274 #define DEF_GPUTEST_FOR_D3D_CONTEXT(name, reporter, context_info) \
276 reporter, context_info, nullptr)
277 #define DEF_GPUTEST_FOR_DAWN_CONTEXT(name, reporter, context_info) \
279 reporter, context_info, nullptr)