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

Unified Diff: tests/WritePixelsTest.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/TestClassDef.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/WritePixelsTest.cpp
diff --git a/tests/WritePixelsTest.cpp b/tests/WritePixelsTest.cpp
index c7f77a7fb2bd43eba27d6757c5331e0812058247..c20ccd0ca4cdda323af86ab8b4f0a28e22d6d221 100644
--- a/tests/WritePixelsTest.cpp
+++ b/tests/WritePixelsTest.cpp
@@ -5,12 +5,14 @@
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkBitmapDevice.h"
#include "SkCanvas.h"
#include "SkColorPriv.h"
#include "SkMathPriv.h"
#include "SkRegion.h"
+#include "Test.h"
+#include "TestClassDef.h"
+
#if SK_SUPPORT_GPU
#include "SkGpuDevice.h"
#include "GrContextFactory.h"
@@ -358,7 +360,7 @@ static bool setupBitmap(SkBitmap* bitmap,
return true;
}
-static void WritePixelsTest(skiatest::Reporter* reporter, GrContextFactory* factory) {
+DEF_GPUTEST(WritePixels, reporter, factory) {
SkCanvas canvas;
const SkIRect testRects[] = {
@@ -469,6 +471,3 @@ static void WritePixelsTest(skiatest::Reporter* reporter, GrContextFactory* fact
}
}
}
-
-#include "TestClassDef.h"
-DEFINE_GPUTESTCLASS("WritePixels", WritePixelsTestClass, WritePixelsTest)
« no previous file with comments | « tests/TestClassDef.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698