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

Unified Diff: tests/PathCoverageTest.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/ParsePathTest.cpp ('k') | tests/PathMeasureTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PathCoverageTest.cpp
diff --git a/tests/PathCoverageTest.cpp b/tests/PathCoverageTest.cpp
index 97708bbc90dd3b825010344fd57bc9a1170a0fcd..ede1fdc64ed66f1b6468886c3ad88d76c6397404 100644
--- a/tests/PathCoverageTest.cpp
+++ b/tests/PathCoverageTest.cpp
@@ -1,14 +1,15 @@
-
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
+
+#include "Test.h"
+#include "TestClassDef.h"
#include "SkMath.h"
#include "SkPoint.h"
#include "SkScalar.h"
-#include "Test.h"
/*
Duplicates lots of code from gpu/src/GrPathUtils.cpp
@@ -160,10 +161,7 @@ static void TestQuadPointCount(skiatest::Reporter* reporter) {
one_d_pe(gRibbon, SK_ARRAY_COUNT(gRibbon), reporter);
}
-static void TestPathCoverage(skiatest::Reporter* reporter) {
+DEF_TEST(PathCoverage, reporter) {
TestQuadPointCount(reporter);
}
-
-#include "TestClassDef.h"
-DEFINE_TESTCLASS("PathCoverage", PathCoverageTestClass, TestPathCoverage)
« no previous file with comments | « tests/ParsePathTest.cpp ('k') | tests/PathMeasureTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698