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

Unified Diff: tests/GifTest.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/GeometryTest.cpp ('k') | tests/GrMemoryPoolTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/GifTest.cpp
diff --git a/tests/GifTest.cpp b/tests/GifTest.cpp
index 5919b44d68a77a27b46f8ed0973ed8504ca857b3..c9dac9b497a6bcc65e518942646c3cd3589321c2 100644
--- a/tests/GifTest.cpp
+++ b/tests/GifTest.cpp
@@ -11,13 +11,14 @@
(!defined(SK_BUILD_FOR_IOS)) && \
(!defined(SK_BUILD_FOR_MAC))
+#include "Test.h"
+#include "TestClassDef.h"
#include "SkBitmap.h"
#include "SkData.h"
#include "SkForceLinking.h"
-#include "SkImageDecoder.h"
#include "SkImage.h"
+#include "SkImageDecoder.h"
#include "SkStream.h"
-#include "Test.h"
__SK_FORCE_IMAGE_DECODER_LINKING;
@@ -147,7 +148,7 @@ static void test_gif_data_short(skiatest::Reporter* r,
GIF files which have been mangled somehow. We want to display as
much of the GIF as possible.
*/
-static void TestGif(skiatest::Reporter* reporter) {
+DEF_TEST(Gif, reporter) {
// test perfectly good images.
test_gif_data(reporter, static_cast<void *>(gifData), sizeof(gifData));
test_interlaced_gif_data(reporter, static_cast<void *>(interlacedGif),
@@ -204,7 +205,4 @@ static void TestGif(skiatest::Reporter* reporter) {
// "libgif warning [interlace DGifGetLine]"
}
-#include "TestClassDef.h"
-DEFINE_TESTCLASS("GifTest", GifTestClass, TestGif)
-
#endif // !(SK_BUILD_FOR_WIN32||SK_BUILD_FOR_IOS||SK_BUILD_FOR_MAC)
« no previous file with comments | « tests/GeometryTest.cpp ('k') | tests/GrMemoryPoolTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698