Index: tests/GLProgramsTest.cpp |
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp |
index 7e55cc72e76828911d5865fa17a4d895abd08e8c..10d56fe12704f4e19c77eb176a9f9db46cba09c2 100644 |
--- a/tests/GLProgramsTest.cpp |
+++ b/tests/GLProgramsTest.cpp |
@@ -21,6 +21,7 @@ |
#include "SkChecksum.h" |
#include "SkRandom.h" |
#include "Test.h" |
+#include "TestClassDef.h" |
void GrGLProgramDesc::setRandom(SkRandom* random, |
const GrGpuGL* gpu, |
@@ -226,7 +227,7 @@ bool GrGpuGL::programUnitTest(int maxStages) { |
return true; |
} |
-static void GLProgramsTest(skiatest::Reporter* reporter, GrContextFactory* factory) { |
+DEF_GPUTEST(GLPrograms, reporter, factory) { |
for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) { |
GrContext* context = factory->get(static_cast<GrContextFactory::GLContextType>(type)); |
if (NULL != context) { |
@@ -243,9 +244,6 @@ static void GLProgramsTest(skiatest::Reporter* reporter, GrContextFactory* facto |
} |
} |
-#include "TestClassDef.h" |
-DEFINE_GPUTESTCLASS("GLPrograms", GLProgramsTestClass, GLProgramsTest) |
- |
// This is evil evil evil. The linker may throw away whole translation units as dead code if it |
// thinks none of the functions are called. It will do this even if there are static initializers |
// in the unit that could pass pointers to functions from the unit out to other translation units! |