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

Unified Diff: tests/MetaDataTest.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/MemsetTest.cpp ('k') | tests/MipMapTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/MetaDataTest.cpp
diff --git a/tests/MetaDataTest.cpp b/tests/MetaDataTest.cpp
index 439065236a0b27a699e243b1d85eadc833c1e64f..4512045d239cf18c7642cfb1c73d373589fa6c76 100644
--- a/tests/MetaDataTest.cpp
+++ b/tests/MetaDataTest.cpp
@@ -1,11 +1,12 @@
-
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
+
#include "Test.h"
+#include "TestClassDef.h"
#include "SkMetaData.h"
static void test_ptrs(skiatest::Reporter* reporter) {
@@ -34,7 +35,7 @@ static void test_ptrs(skiatest::Reporter* reporter) {
REPORTER_ASSERT(reporter, 1 == ref.getRefCnt());
}
-static void TestMetaData(skiatest::Reporter* reporter) {
+DEF_TEST(MetaData, reporter) {
SkMetaData m1;
REPORTER_ASSERT(reporter, !m1.findS32("int"));
@@ -114,6 +115,3 @@ static void TestMetaData(skiatest::Reporter* reporter) {
test_ptrs(reporter);
}
-
-#include "TestClassDef.h"
-DEFINE_TESTCLASS("MetaData", TestMetaDataClass, TestMetaData)
« no previous file with comments | « tests/MemsetTest.cpp ('k') | tests/MipMapTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698