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

Unified Diff: tests/TestSize.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/TSetTest.cpp ('k') | tests/ToUnicode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/TestSize.cpp
diff --git a/tests/TestSize.cpp b/tests/TestSize.cpp
index 6a9a88773fe22631b84ff2c175e0f9e02d69a191..475517a075a59939a1d70685d96f2cefb5077205 100644
--- a/tests/TestSize.cpp
+++ b/tests/TestSize.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 "SkSize.h"
static void TestISize(skiatest::Reporter* reporter) {
@@ -30,7 +31,7 @@ static void TestISize(skiatest::Reporter* reporter) {
a.fWidth == b.fWidth && a.fHeight == b.fHeight);
}
-static void TestSize(skiatest::Reporter* reporter) {
+DEF_TEST(Size, reporter) {
TestISize(reporter);
SkSize a, b;
@@ -61,7 +62,4 @@ static void TestSize(skiatest::Reporter* reporter) {
ia.set(ix, iy);
a.set(x, y);
REPORTER_ASSERT(reporter, a.toRound() == ia);
-};
-
-#include "TestClassDef.h"
-DEFINE_TESTCLASS("Size", TestSizeClass, TestSize)
+}
« no previous file with comments | « tests/TSetTest.cpp ('k') | tests/ToUnicode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698