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

Unified Diff: tests/Reader32Test.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/RandomTest.cpp ('k') | tests/RefCntTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/Reader32Test.cpp
diff --git a/tests/Reader32Test.cpp b/tests/Reader32Test.cpp
index d81287bd74f9bb06ae1bd8e5a6fc4813d809a628..b7a7c6ddc94e0336aefa33deb609d6902426c03a 100644
--- a/tests/Reader32Test.cpp
+++ b/tests/Reader32Test.cpp
@@ -1,4 +1,3 @@
-
/*
* Copyright 2011 Google Inc.
*
@@ -6,10 +5,9 @@
* found in the LICENSE file.
*/
-
-
-#include "SkReader32.h"
#include "Test.h"
+#include "TestClassDef.h"
+#include "SkReader32.h"
static void assert_eof(skiatest::Reporter* reporter, const SkReader32& reader) {
REPORTER_ASSERT(reporter, reader.eof());
@@ -35,7 +33,7 @@ static void assert_empty(skiatest::Reporter* reporter, const SkReader32& reader)
assert_start(reporter, reader);
}
-static void Tests(skiatest::Reporter* reporter) {
+DEF_TEST(Reader32, reporter) {
SkReader32 reader;
assert_empty(reporter, reader);
REPORTER_ASSERT(reporter, NULL == reader.base());
@@ -82,6 +80,3 @@ static void Tests(skiatest::Reporter* reporter) {
REPORTER_ASSERT(reporter, NULL == reader.base());
REPORTER_ASSERT(reporter, NULL == reader.peek());
}
-
-#include "TestClassDef.h"
-DEFINE_TESTCLASS("Reader32", Reader32Class, Tests)
« no previous file with comments | « tests/RandomTest.cpp ('k') | tests/RefCntTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698