OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 #include "SkData.h" |
| 9 #include "SkOSFile.h" |
| 10 #include "SkRandom.h" |
| 11 #include "SkStream.h" |
8 #include "Test.h" | 12 #include "Test.h" |
9 #include "SkRandom.h" | |
10 #include "SkOSFile.h" | |
11 #include "SkStream.h" | |
12 #include "SkData.h" | |
13 | 13 |
14 #ifndef SK_BUILD_FOR_WIN | 14 #ifndef SK_BUILD_FOR_WIN |
15 #include <unistd.h> | 15 #include <unistd.h> |
16 #include <fcntl.h> | 16 #include <fcntl.h> |
17 #endif | 17 #endif |
18 | 18 |
19 #define MAX_SIZE (256 * 1024) | 19 #define MAX_SIZE (256 * 1024) |
20 | 20 |
21 static void test_loop_stream(skiatest::Reporter* reporter, SkStream* stream, | 21 static void test_loop_stream(skiatest::Reporter* reporter, SkStream* stream, |
22 const void* src, size_t len, int repeat) { | 22 const void* src, size_t len, int repeat) { |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 memStream.setData(nullData); | 183 memStream.setData(nullData); |
184 TestDereferencingData(&memStream); | 184 TestDereferencingData(&memStream); |
185 | 185 |
186 } | 186 } |
187 | 187 |
188 DEF_TEST(Stream, reporter) { | 188 DEF_TEST(Stream, reporter) { |
189 TestWStream(reporter); | 189 TestWStream(reporter); |
190 TestPackedUInt(reporter); | 190 TestPackedUInt(reporter); |
191 TestNullData(); | 191 TestNullData(); |
192 } | 192 } |
OLD | NEW |