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

Unified Diff: tests/PathOpsDVectorTest.cpp

Issue 117863005: Get rid of DEFINE_TESTCLASS_SHORT() macro. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Mike review Created 6 years, 12 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/PathOpsDTriangleTest.cpp ('k') | tests/PathOpsInverseTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PathOpsDVectorTest.cpp
diff --git a/tests/PathOpsDVectorTest.cpp b/tests/PathOpsDVectorTest.cpp
index 23ca2a818635199dd0ece8940a2e08d0af1d7f07..4d350373f94776a97cf610ab7e6ada69ff8587da 100644
--- a/tests/PathOpsDVectorTest.cpp
+++ b/tests/PathOpsDVectorTest.cpp
@@ -7,6 +7,7 @@
#include "PathOpsTestCommon.h"
#include "SkPathOpsPoint.h"
#include "Test.h"
+#include "TestClassDef.h"
static const SkDPoint tests[] = {
{0, 0},
@@ -20,7 +21,7 @@ static const SkDPoint tests[] = {
static const size_t tests_count = SK_ARRAY_COUNT(tests);
-static void PathOpsDVectorTest(skiatest::Reporter* reporter) {
+DEF_TEST(PathOpsDVector, reporter) {
for (size_t index = 0; index < tests_count - 1; ++index) {
SkDVector v1 = tests[index + 1] - tests[index];
SkASSERT(ValidVector(v1));
@@ -48,6 +49,3 @@ static void PathOpsDVectorTest(skiatest::Reporter* reporter) {
REPORTER_ASSERT(reporter, v1Cross == 0);
}
}
-
-#include "TestClassDef.h"
-DEFINE_TESTCLASS_SHORT(PathOpsDVectorTest)
« no previous file with comments | « tests/PathOpsDTriangleTest.cpp ('k') | tests/PathOpsInverseTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698