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

Unified Diff: tests/PathUtilsTest.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/PathTest.cpp ('k') | tests/PictureTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PathUtilsTest.cpp
diff --git a/tests/PathUtilsTest.cpp b/tests/PathUtilsTest.cpp
index fad5cae0bb0e02984d279047bcdcaf47f646c57c..a147487cfc11ed2b1aebec559d6d3206f041a495 100644
--- a/tests/PathUtilsTest.cpp
+++ b/tests/PathUtilsTest.cpp
@@ -1,4 +1,3 @@
-
/*
* Copyright 2013 Google Inc.
*
@@ -6,13 +5,13 @@
* found in the LICENSE file.
*/
-#include "SkPathUtils.h"
-
+#include "Test.h"
+#include "TestClassDef.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
+#include "SkPathUtils.h"
#include "SkRandom.h"
#include "SkTime.h"
-#include "Test.h"
const int kNumIt = 100;
@@ -130,7 +129,7 @@ static void test_region(skiatest::Reporter* reporter, const SkBitmap* truth,
test_path_eq(reporter, &path, truth, w, h);
}
-static void TestPathUtils(skiatest::Reporter* reporter) {
+DEF_TEST(PathUtils, reporter) {
const int w[] = {4, 8, 12, 16};
const int h = 8, rowBytes = 4;
@@ -154,6 +153,3 @@ static void TestPathUtils(skiatest::Reporter* reporter) {
}
}
}
-
-#include "TestClassDef.h"
-DEFINE_TESTCLASS("PathUtils", PathUtils, TestPathUtils)
« no previous file with comments | « tests/PathTest.cpp ('k') | tests/PictureTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698