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

Unified Diff: tests/PathOpsDQuadTest.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/PathOpsDPointTest.cpp ('k') | tests/PathOpsDRectTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PathOpsDQuadTest.cpp
diff --git a/tests/PathOpsDQuadTest.cpp b/tests/PathOpsDQuadTest.cpp
index e6f1deb72f1688d1f0c48c80c65b66569a1570ef..80d81e81296497cf83f569049dcbdaa2767429ce 100644
--- a/tests/PathOpsDQuadTest.cpp
+++ b/tests/PathOpsDQuadTest.cpp
@@ -9,6 +9,7 @@
#include "SkPathOpsQuad.h"
#include "SkRRect.h"
#include "Test.h"
+#include "TestClassDef.h"
static const SkDQuad tests[] = {
{{{1, 1}, {2, 1}, {0, 2}}},
@@ -36,7 +37,7 @@ static const SkDPoint outPoint[]= {
static const size_t tests_count = SK_ARRAY_COUNT(tests);
-static void PathOpsDQuadTest(skiatest::Reporter* reporter) {
+DEF_TEST(PathOpsDQuad, reporter) {
for (size_t index = 0; index < tests_count; ++index) {
const SkDQuad& quad = tests[index];
SkASSERT(ValidQuad(quad));
@@ -53,7 +54,7 @@ static void PathOpsDQuadTest(skiatest::Reporter* reporter) {
}
}
-static void PathOpsRRectTest(skiatest::Reporter* reporter) {
+DEF_TEST(PathOpsRRect, reporter) {
SkPath path;
SkRRect rRect;
SkRect rect = {135, 143, 250, 177};
@@ -61,8 +62,3 @@ static void PathOpsRRectTest(skiatest::Reporter* reporter) {
rRect.setRectRadii(rect, radii);
path.addRRect(rRect);
}
-
-#include "TestClassDef.h"
-DEFINE_TESTCLASS_SHORT(PathOpsDQuadTest)
-
-DEFINE_TESTCLASS_SHORT(PathOpsRRectTest)
« no previous file with comments | « tests/PathOpsDPointTest.cpp ('k') | tests/PathOpsDRectTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698