Index: tests/Typeface.cpp |
diff --git a/tests/Typeface.cpp b/tests/Typeface.cpp |
index 76fde7a8b897f8e6b6015cf80e991385220ce792..d589f23a25079654d0cdc6cf15d28e476155747e 100644 |
--- a/tests/Typeface.cpp |
+++ b/tests/Typeface.cpp |
@@ -1,4 +1,3 @@ |
- |
/* |
* Copyright 2013 Google Inc. |
* |
@@ -7,9 +6,10 @@ |
*/ |
#include "Test.h" |
+#include "TestClassDef.h" |
#include "SkTypeface.h" |
-static void TestDefaultTypeface(skiatest::Reporter* reporter) { |
+DEF_TEST(Typeface, reporter) { |
SkAutoTUnref<SkTypeface> t1(SkTypeface::CreateFromName(NULL, SkTypeface::kNormal)); |
SkAutoTUnref<SkTypeface> t2(SkTypeface::RefDefault(SkTypeface::kNormal)); |
@@ -25,6 +25,3 @@ static void TestDefaultTypeface(skiatest::Reporter* reporter) { |
REPORTER_ASSERT(reporter, NULL == t3.get()); |
#endif |
} |
- |
-#include "TestClassDef.h" |
-DEFINE_TESTCLASS("Typeface", TypefaceTestClass, TestDefaultTypeface) |