Index: tests/BitmapCopyTest.cpp |
diff --git a/tests/BitmapCopyTest.cpp b/tests/BitmapCopyTest.cpp |
index f61d55e953ab3df3ac06b9abc1c1f086f944182c..0df8c06d9bcb19b3972c09bdc030be5e5c27eb5a 100644 |
--- a/tests/BitmapCopyTest.cpp |
+++ b/tests/BitmapCopyTest.cpp |
@@ -6,6 +6,7 @@ |
* found in the LICENSE file. |
*/ |
#include "Test.h" |
+#include "TestClassDef.h" |
#include "SkBitmap.h" |
#include "SkRect.h" |
@@ -204,7 +205,7 @@ static void writeCoordPixels(SkBitmap& bm, const Coordinates& coords) { |
setPixel(coords[i]->fX, coords[i]->fY, i, bm); |
} |
-static void TestBitmapCopy(skiatest::Reporter* reporter) { |
+DEF_TEST(BitmapCopy, reporter) { |
static const Pair gPairs[] = { |
{ SkBitmap::kNo_Config, "0000000" }, |
{ SkBitmap::kA8_Config, "0101010" }, |
@@ -550,6 +551,3 @@ static void TestBitmapCopy(skiatest::Reporter* reporter) { |
} // for (size_t copyCase ... |
} |
} |
- |
-#include "TestClassDef.h" |
-DEFINE_TESTCLASS("BitmapCopy", TestBitmapCopyClass, TestBitmapCopy) |