Lines Matching refs:name
74 Test(const char* name,
79 : fName(name)
97 TRACE_EVENT1("test", TRACE_FUNC, "name", this->fName/*these are static*/);
195 #define DEF_TEST(name, reporter) \
196 static void test_##name(skiatest::Reporter*, const GrContextOptions&); \
197 skiatest::TestRegistry name##TestRegistry( \
198 skiatest::Test(#name, /*gpu*/ false, /*graphite*/ false, test_##name)); \
199 void test_##name(skiatest::Reporter* reporter, const GrContextOptions&)
201 #define DEF_TEST_DISABLED(name, reporter) \
202 static void test_##name(skiatest::Reporter*, const GrContextOptions&); \
203 skiatest::TestRegistry name##TestRegistry( \
204 skiatest::Test(#name, /*gpu*/ false, /*graphite*/ false, test_##name)); \
205 void test_##name(skiatest::Reporter* reporter, const GrContextOptions&) { \
206 /* SkDebugf("Disabled:"#name "\n"); */ \
208 void disabled_##name(skiatest::Reporter* reporter, const GrContextOptions&)
216 #define DEF_GRAPHITE_TEST(name, reporter) \
217 static void test_##name(skiatest::Reporter*); \
218 static void test_graphite_##name(skiatest::Reporter* reporter, \
220 test_##name(reporter); \
222 skiatest::TestRegistry name##TestRegistry( \
223 skiatest::Test(#name, /*gpu*/ false, /*graphite*/ true, test_graphite_##name)); \
224 void test_##name(skiatest::Reporter* reporter)
226 #define DEF_GRAPHITE_TEST_FOR_CONTEXTS(name, reporter, graphite_context) \
227 static void test_##name(skiatest::Reporter*, skgpu::Context*); \
228 static void test_graphite_contexts_##name(skiatest::Reporter* _reporter, \
230 skiatest::graphite::RunWithGraphiteTestContexts(test_##name, _reporter); \
232 skiatest::TestRegistry name##TestRegistry( \
233 skiatest::Test(#name, /*gpu*/ false, /*graphite*/ true, \
234 test_graphite_contexts_##name)); \
235 void test_##name(skiatest::Reporter* reporter, skgpu::Context* graphite_context)
237 #define DEF_GPUTEST(name, reporter, options) \
238 static void test_##name(skiatest::Reporter*, const GrContextOptions&); \
239 skiatest::TestRegistry name##TestRegistry( \
240 skiatest::Test(#name, /*gpu*/ true, /*graphite*/ false, test_##name)); \
241 void test_##name(skiatest::Reporter* reporter, const GrContextOptions& options)
243 #define DEF_GPUTEST_FOR_CONTEXTS(name, context_filter, reporter, context_info, options_filter) \
244 static void test_##name(skiatest::Reporter*, const sk_gpu_test::ContextInfo&); \
245 static void test_gpu_contexts_##name(skiatest::Reporter* reporter, \
247 skiatest::RunWithGPUTestContexts(test_##name, context_filter, reporter, options); \
249 skiatest::TestRegistry name##TestRegistry( \
250 skiatest::Test(#name, /*gpu*/ true, /*graphite*/ false, test_gpu_contexts_##name, options_filter)); \
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) \
257 DEF_GPUTEST_FOR_CONTEXTS(name, sk_gpu_test::GrContextFactory::IsRenderingContext, \
259 #define DEF_GPUTEST_FOR_ALL_GL_CONTEXTS(name, reporter, context_info) \
260 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsGLContextType, \
262 #define DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(name, reporter, context_info) \
263 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsRenderingGLContextType, \
265 #define DEF_GPUTEST_FOR_MOCK_CONTEXT(name, reporter, context_info) \
266 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsMockContextType, \
268 #define DEF_GPUTEST_FOR_VULKAN_CONTEXT(name, reporter, context_info) \
269 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsVulkanContextType, \
271 #define DEF_GPUTEST_FOR_METAL_CONTEXT(name, reporter, context_info) \
272 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsMetalContextType, \
274 #define DEF_GPUTEST_FOR_D3D_CONTEXT(name, reporter, context_info) \
275 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsDirect3DContextType, \
277 #define DEF_GPUTEST_FOR_DAWN_CONTEXT(name, reporter, context_info) \
278 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsDawnContextType, \