Index: tests/GrDrawTargetTest.cpp |
diff --git a/tests/GrDrawTargetTest.cpp b/tests/GrDrawTargetTest.cpp |
index f2bcdc415a629069b150f1b60001f853d3c5a21c..78d9025a2d05aa1ea1fdaacf41d46172bf20d8fe 100644 |
--- a/tests/GrDrawTargetTest.cpp |
+++ b/tests/GrDrawTargetTest.cpp |
@@ -13,6 +13,7 @@ |
#include "GrGpu.h" |
#include "GrDrawTargetCaps.h" |
#include "Test.h" |
+#include "TestClassDef.h" |
static void test_print(skiatest::Reporter*, const GrDrawTargetCaps* caps) { |
// This used to assert. |
@@ -20,7 +21,7 @@ static void test_print(skiatest::Reporter*, const GrDrawTargetCaps* caps) { |
SkASSERT(!result.isEmpty()); |
} |
-static void TestGrDrawTarget(skiatest::Reporter* reporter, GrContextFactory* factory) { |
+DEF_GPUTEST(GrDrawTarget, reporter, factory) { |
for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) { |
GrContextFactory::GLContextType glType = static_cast<GrContextFactory::GLContextType>(type); |
@@ -33,7 +34,4 @@ static void TestGrDrawTarget(skiatest::Reporter* reporter, GrContextFactory* fac |
} |
} |
-#include "TestClassDef.h" |
-DEFINE_GPUTESTCLASS("GrDrawTarget", TestGrDrawTargetClass, TestGrDrawTarget) |
- |
#endif |