| 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" | 8 #include "SkData.h" |
| 9 #include "SkDataTable.h" | 9 #include "SkDataTable.h" |
| 10 #include "SkOSFile.h" | 10 #include "SkOSFile.h" |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 streams[i] = buffer.newStreamSnapshot(); | 303 streams[i] = buffer.newStreamSnapshot(); |
| 304 } | 304 } |
| 305 REPORTER_ASSERT(reporter, N*26 == buffer.size()); | 305 REPORTER_ASSERT(reporter, N*26 == buffer.size()); |
| 306 } | 306 } |
| 307 | 307 |
| 308 for (int i = 0; i < N; ++i) { | 308 for (int i = 0; i < N; ++i) { |
| 309 REPORTER_ASSERT(reporter, (i + 1) * 26U == readers[i]->size()); | 309 REPORTER_ASSERT(reporter, (i + 1) * 26U == readers[i]->size()); |
| 310 check_alphabet_buffer(reporter, readers[i]); | 310 check_alphabet_buffer(reporter, readers[i]); |
| 311 check_alphabet_stream(reporter, streams[i]); | 311 check_alphabet_stream(reporter, streams[i]); |
| 312 readers[i]->unref(); | 312 readers[i]->unref(); |
| 313 SkDELETE(streams[i]); | 313 delete streams[i]; |
| 314 } | 314 } |
| 315 } | 315 } |
| OLD | NEW |