Index: tests/CanvasTest.cpp |
diff --git a/tests/CanvasTest.cpp b/tests/CanvasTest.cpp |
index 6d9fa1a671f8a3e239efac954e1d3b0fdc34f1c4..744eafcf807b1c2beb47f82a5090b69faa17e5dc 100644 |
--- a/tests/CanvasTest.cpp |
+++ b/tests/CanvasTest.cpp |
@@ -63,6 +63,7 @@ |
#include "SkStream.h" |
#include "SkTDArray.h" |
#include "Test.h" |
+#include "TestClassDef.h" |
class Canvas2CanvasClipVisitor : public SkCanvas::ClipVisitor { |
public: |
@@ -901,7 +902,7 @@ static void TestOverrideStateConsistency(skiatest::Reporter* reporter, |
} |
} |
-static void TestCanvas(skiatest::Reporter* reporter) { |
+DEF_TEST(Canvas, reporter) { |
// Init global here because bitmap pixels cannot be alocated during |
// static initialization |
kTestBitmap = testBitmap(); |
@@ -918,6 +919,3 @@ static void TestCanvas(skiatest::Reporter* reporter) { |
// Explicitly call reset(), so we don't leak the pixels (since kTestBitmap is a global) |
kTestBitmap.reset(); |
} |
- |
-#include "TestClassDef.h" |
-DEFINE_TESTCLASS("Canvas", TestCanvasClass, TestCanvas) |