Index: tests/Test.h |
diff --git a/tests/Test.h b/tests/Test.h |
index fc1890096e8cb6fca8955d7b8c289692d302700a..72b0bee1265b114fbab9492007998abb82935591 100644 |
--- a/tests/Test.h |
+++ b/tests/Test.h |
@@ -138,38 +138,38 @@ namespace skiatest { |
(reporter)->reportFailed(desc); \ |
} while(0) |
-#define DEF_TEST(name, reporter) \ |
- static void name(skiatest::Reporter*); \ |
- namespace skiatest { \ |
- class name##Class : public Test { \ |
- public: \ |
- static Test* Factory(void*) { return SkNEW(name##Class); } \ |
- protected: \ |
- virtual void onGetName(SkString* name) SK_OVERRIDE { \ |
- name->set(#name); \ |
- } \ |
- virtual void onRun(Reporter* r) SK_OVERRIDE { name(r); } \ |
- }; \ |
- static TestRegistry gReg_##name##Class(name##Class::Factory); \ |
- } \ |
- static void name(skiatest::Reporter* reporter) |
- |
-#define DEF_GPUTEST(name, reporter, factory) \ |
- static void name(skiatest::Reporter*, GrContextFactory*); \ |
- namespace skiatest { \ |
- class name##Class : public GpuTest { \ |
- public: \ |
- static Test* Factory(void*) { return SkNEW(name##Class); } \ |
- protected: \ |
- virtual void onGetName(SkString* name) SK_OVERRIDE { \ |
- name->set(#name); \ |
- } \ |
- virtual void onRun(Reporter* r) SK_OVERRIDE { \ |
- name(r, fGrContextFactory); \ |
- } \ |
- }; \ |
- static TestRegistry gReg_##name##Class(name##Class::Factory); \ |
- } \ |
- static void name(skiatest::Reporter* reporter, GrContextFactory* factory) |
+#define DEF_TEST(name, reporter) \ |
+ static void test_##name(skiatest::Reporter*); \ |
+ namespace skiatest { \ |
+ class name##Class : public Test { \ |
+ public: \ |
+ static Test* Factory(void*) { return SkNEW(name##Class); } \ |
+ protected: \ |
+ virtual void onGetName(SkString* name) SK_OVERRIDE { \ |
+ name->set(#name); \ |
+ } \ |
+ virtual void onRun(Reporter* r) SK_OVERRIDE { test_##name(r); } \ |
+ }; \ |
+ static TestRegistry gReg_##name##Class(name##Class::Factory); \ |
+ } \ |
+ static void test_##name(skiatest::Reporter* reporter) |
+ |
+#define DEF_GPUTEST(name, reporter, factory) \ |
+ static void test_##name(skiatest::Reporter*, GrContextFactory*); \ |
+ namespace skiatest { \ |
+ class name##Class : public GpuTest { \ |
+ public: \ |
+ static Test* Factory(void*) { return SkNEW(name##Class); } \ |
+ protected: \ |
+ virtual void onGetName(SkString* name) SK_OVERRIDE { \ |
+ name->set(#name); \ |
+ } \ |
+ virtual void onRun(Reporter* r) SK_OVERRIDE { \ |
+ test_##name(r, fGrContextFactory); \ |
+ } \ |
+ }; \ |
+ static TestRegistry gReg_##name##Class(name##Class::Factory); \ |
+ } \ |
+ static void test_##name(skiatest::Reporter* reporter, GrContextFactory* factory) |
#endif |