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

Side by Side Diff: tests/GifTest.cpp

Issue 145313004: Cleanup: Sanitize the order of includes under tests/ (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: more two fixes Created 6 years, 11 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/GeometryTest.cpp ('k') | tests/GpuDrawPathTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 // This tests out GIF decoder (SkImageDecoder_libgif.cpp) 8 // This tests out GIF decoder (SkImageDecoder_libgif.cpp)
9 // It is not used on these platforms: 9 // It is not used on these platforms:
10 #if (!defined(SK_BUILD_FOR_WIN32)) && \ 10 #if (!defined(SK_BUILD_FOR_WIN32)) && \
11 (!defined(SK_BUILD_FOR_IOS)) && \ 11 (!defined(SK_BUILD_FOR_IOS)) && \
12 (!defined(SK_BUILD_FOR_MAC)) 12 (!defined(SK_BUILD_FOR_MAC))
13 13
14 #include "Test.h"
15 #include "SkBitmap.h" 14 #include "SkBitmap.h"
16 #include "SkData.h" 15 #include "SkData.h"
17 #include "SkForceLinking.h" 16 #include "SkForceLinking.h"
18 #include "SkImage.h" 17 #include "SkImage.h"
19 #include "SkImageDecoder.h" 18 #include "SkImageDecoder.h"
20 #include "SkStream.h" 19 #include "SkStream.h"
20 #include "Test.h"
21 21
22 __SK_FORCE_IMAGE_DECODER_LINKING; 22 __SK_FORCE_IMAGE_DECODER_LINKING;
23 23
24 static unsigned char gGIFData[] = { 24 static unsigned char gGIFData[] = {
25 0x47, 0x49, 0x46, 0x38, 0x37, 0x61, 0x03, 0x00, 0x03, 0x00, 0xe3, 0x08, 25 0x47, 0x49, 0x46, 0x38, 0x37, 0x61, 0x03, 0x00, 0x03, 0x00, 0xe3, 0x08,
26 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0x00, 26 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0x00,
27 0xff, 0x80, 0x80, 0x80, 0x00, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 27 0xff, 0x80, 0x80, 0x80, 0x00, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff,
28 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 28 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
29 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 29 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
30 0xff, 0x2c, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x03, 0x00, 0x00, 0x04, 30 0xff, 0x2c, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x03, 0x00, 0x00, 0x04,
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // test short Gif. 80 is missing a few bytes. 191 // test short Gif. 80 is missing a few bytes.
192 test_gif_data_short(reporter, static_cast<void *>(gGIFData), 80); 192 test_gif_data_short(reporter, static_cast<void *>(gGIFData), 80);
193 // "libgif warning [DGifGetLine]" 193 // "libgif warning [DGifGetLine]"
194 194
195 test_interlaced_gif_data(reporter, static_cast<void *>(gInterlacedGIF), 195 test_interlaced_gif_data(reporter, static_cast<void *>(gInterlacedGIF),
196 100); // 100 is missing a few bytes 196 100); // 100 is missing a few bytes
197 // "libgif warning [interlace DGifGetLine]" 197 // "libgif warning [interlace DGifGetLine]"
198 } 198 }
199 199
200 #endif // !(SK_BUILD_FOR_WIN32||SK_BUILD_FOR_IOS||SK_BUILD_FOR_MAC) 200 #endif // !(SK_BUILD_FOR_WIN32||SK_BUILD_FOR_IOS||SK_BUILD_FOR_MAC)
OLDNEW
« no previous file with comments | « tests/GeometryTest.cpp ('k') | tests/GpuDrawPathTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698