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

Unified Diff: tests/PathTest.cpp

Issue 100113004: Use DEFINE_TESTCLASS_SHORT macro in tests. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 7 years 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/PathMeasureTest.cpp ('k') | tests/PathUtilsTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PathTest.cpp
diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp
index 06ecff6281956be37b4b39d1aeba1c0ad4b3f36f..bea3ea5ab8961ab162447554e6cdf99061e1bf85 100644
--- a/tests/PathTest.cpp
+++ b/tests/PathTest.cpp
@@ -6,6 +6,7 @@
*/
#include "Test.h"
+#include "TestClassDef.h"
#include "SkCanvas.h"
#include "SkPaint.h"
#include "SkPath.h"
@@ -3179,7 +3180,7 @@ public:
}
};
-static void TestPath(skiatest::Reporter* reporter) {
+DEF_TEST(Path, reporter) {
SkTSize<SkScalar>::Make(3,4);
SkPath p, empty;
@@ -3298,6 +3299,3 @@ static void TestPath(skiatest::Reporter* reporter) {
test_contains(reporter);
PathTest_Private::TestPathTo(reporter);
}
-
-#include "TestClassDef.h"
-DEFINE_TESTCLASS("Path", PathTestClass, TestPath)
« no previous file with comments | « tests/PathMeasureTest.cpp ('k') | tests/PathUtilsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698