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 "Test.h" | 8 #include "Test.h" |
9 #include "TestClassDef.h" | |
10 #include "SkData.h" | 9 #include "SkData.h" |
11 #include "SkDataTable.h" | 10 #include "SkDataTable.h" |
12 #include "SkOrderedReadBuffer.h" | 11 #include "SkOrderedReadBuffer.h" |
13 #include "SkOrderedWriteBuffer.h" | 12 #include "SkOrderedWriteBuffer.h" |
14 #include "SkOSFile.h" | 13 #include "SkOSFile.h" |
15 #include "SkStream.h" | 14 #include "SkStream.h" |
16 | 15 |
17 static void test_is_equal(skiatest::Reporter* reporter, | 16 static void test_is_equal(skiatest::Reporter* reporter, |
18 const SkDataTable* a, const SkDataTable* b) { | 17 const SkDataTable* a, const SkDataTable* b) { |
19 REPORTER_ASSERT(reporter, a->count() == b->count()); | 18 REPORTER_ASSERT(reporter, a->count() == b->count()); |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 SkData* tmp = SkData::NewSubset(r1, strlen(str), 10); | 225 SkData* tmp = SkData::NewSubset(r1, strlen(str), 10); |
227 assert_len(reporter, tmp, 0); | 226 assert_len(reporter, tmp, 0); |
228 tmp->unref(); | 227 tmp->unref(); |
229 tmp = SkData::NewSubset(r1, 0, 0); | 228 tmp = SkData::NewSubset(r1, 0, 0); |
230 assert_len(reporter, tmp, 0); | 229 assert_len(reporter, tmp, 0); |
231 tmp->unref(); | 230 tmp->unref(); |
232 | 231 |
233 test_cstring(reporter); | 232 test_cstring(reporter); |
234 test_files(reporter); | 233 test_files(reporter); |
235 } | 234 } |
OLD | NEW |