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) |