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

Unified Diff: tests/LayerDrawLooperTest.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/LListTest.cpp ('k') | tests/MD5Test.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/LayerDrawLooperTest.cpp
diff --git a/tests/LayerDrawLooperTest.cpp b/tests/LayerDrawLooperTest.cpp
index 11ac48869f556ddd87d7afe68af1a38299995198..01ebca1464ffe8bd9c889089e611b32541c43d62 100644
--- a/tests/LayerDrawLooperTest.cpp
+++ b/tests/LayerDrawLooperTest.cpp
@@ -6,6 +6,7 @@
*/
#include "Test.h"
+#include "TestClassDef.h"
#include "SkBitmap.h"
#include "SkBitmapDevice.h"
#include "SkCanvas.h"
@@ -145,11 +146,8 @@ static void test_mixed(skiatest::Reporter* reporter) {
REPORTER_ASSERT(reporter, !looper->next(&canvas, &paint));
}
-static void TestLayerDrawLooper(skiatest::Reporter* reporter) {
+DEF_TEST(LayerDrawLooper, reporter) {
test_frontToBack(reporter);
test_backToFront(reporter);
test_mixed(reporter);
}
-
-#include "TestClassDef.h"
-DEFINE_TESTCLASS("LayerDrawLooper", TestLayerDrawLooperClass, TestLayerDrawLooper)
« no previous file with comments | « tests/LListTest.cpp ('k') | tests/MD5Test.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698