Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(605)

Unified Diff: tests/GrDrawTargetTest.cpp

Issue 132293005: Add a DEF_GPUTEST() macro. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fatory -> factory Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/GrContextFactoryTest.cpp ('k') | tests/GrSurfaceTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « tests/GrContextFactoryTest.cpp ('k') | tests/GrSurfaceTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698