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

Unified Diff: tests/FlatDataTest.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/FitsInTest.cpp ('k') | tests/FlateTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/FlatDataTest.cpp
diff --git a/tests/FlatDataTest.cpp b/tests/FlatDataTest.cpp
index 79f94b39edc2410f74c2e338c273bdc105216522..5393a7834ef1bba9ebb6b166e91963c9bb1e78ad 100644
--- a/tests/FlatDataTest.cpp
+++ b/tests/FlatDataTest.cpp
@@ -1,4 +1,3 @@
-
/*
* Copyright 2012 Google Inc.
*
@@ -6,6 +5,8 @@
* found in the LICENSE file.
*/
+#include "Test.h"
+#include "TestClassDef.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkColor.h"
@@ -15,7 +16,6 @@
#include "SkPictureFlat.h"
#include "SkShader.h"
#include "SkXfermode.h"
-#include "Test.h"
static void flattenFlattenableProc(SkOrderedWriteBuffer& buffer,
const void* obj) {
@@ -48,7 +48,7 @@ static void testCreate(skiatest::Reporter* reporter, const void* obj,
REPORTER_ASSERT(reporter, *data1 == *data2);
}
-static void Tests(skiatest::Reporter* reporter) {
+DEF_TEST(FlatData, reporter) {
// Test flattening SkShader
SkPoint points[2];
points[0].set(0, 0);
@@ -85,5 +85,3 @@ static void Tests(skiatest::Reporter* reporter) {
testCreate(reporter, xfer, &flattenFlattenableProc);
}
-#include "TestClassDef.h"
-DEFINE_TESTCLASS("FlatData", FlatDataClass, Tests)
« no previous file with comments | « tests/FitsInTest.cpp ('k') | tests/FlateTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698