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

Unified Diff: tests/ToUnicode.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/TestSize.cpp ('k') | tests/Typeface.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/ToUnicode.cpp
diff --git a/tests/ToUnicode.cpp b/tests/ToUnicode.cpp
index d518432b8ad0ef4664dc2a3b0f18aac300d5898e..d6ca3da180368ec392191cadc3e13b43c6d7ab4e 100644
--- a/tests/ToUnicode.cpp
+++ b/tests/ToUnicode.cpp
@@ -1,4 +1,3 @@
-
/*
* Copyright 2010 The Android Open Source Project
*
@@ -6,8 +5,8 @@
* found in the LICENSE file.
*/
-
#include "Test.h"
+#include "TestClassDef.h"
#include "SkData.h"
#include "SkPDFTypes.h"
#include "SkPDFFont.h"
@@ -32,7 +31,7 @@ void append_cmap_sections(const SkTDArray<SkUnichar>& glyphToUnicode,
uint16_t firstGlypthID,
uint16_t lastGlypthID);
-static void TestToUnicode(skiatest::Reporter* reporter) {
+DEF_TEST(ToUnicode, reporter) {
SkTDArray<SkUnichar> glyphToUnicode;
SkTDArray<uint16_t> glyphsInSubset;
SkPDFGlyphSet subset;
@@ -180,6 +179,3 @@ endbfrange\n";
REPORTER_ASSERT(reporter, stream_equals(buffer2, 0, expectedResult2,
buffer2.getOffset()));
}
-
-#include "TestClassDef.h"
-DEFINE_TESTCLASS("ToUnicode", ToUnicodeTestClass, TestToUnicode)
« no previous file with comments | « tests/TestSize.cpp ('k') | tests/Typeface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698