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

Unified Diff: tests/Typeface.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/ToUnicode.cpp ('k') | tests/UnicodeTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « tests/ToUnicode.cpp ('k') | tests/UnicodeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698