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

Unified Diff: tests/standalone/io/stream_pipe_test.dart

Issue 14018007: Rename RandomAccessFile.readList and RandomAccessFile.writeList to RandomAccessFile.readInto and Ra… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/standalone/io/read_into_const_list_test.dart ('k') | utils/lib/file_system_vm.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/stream_pipe_test.dart
diff --git a/tests/standalone/io/stream_pipe_test.dart b/tests/standalone/io/stream_pipe_test.dart
index 62a1ffdee4d14ff2b0f3457f106bffaeec825e53..75f7981af48fc54bfe139f3e3c597b05868be9f1 100644
--- a/tests/standalone/io/stream_pipe_test.dart
+++ b/tests/standalone/io/stream_pipe_test.dart
@@ -39,9 +39,9 @@ bool compareFileContent(String fileName1,
var data2 = new List<int>(count);
if (file1Offset != 0) file1.setPositionSync(file1Offset);
if (file2Offset != 0) file2.setPositionSync(file2Offset);
- var read1 = file1.readListSync(data1, 0, count);
+ var read1 = file1.readIntoSync(data1, 0, count);
Expect.equals(count, read1);
- var read2 = file2.readListSync(data2, 0, count);
+ var read2 = file2.readIntoSync(data2, 0, count);
Expect.equals(count, read2);
for (var i = 0; i < count; i++) {
if (data1[i] != data2[i]) {
@@ -114,7 +114,7 @@ testFileToFilePipe2() {
count: srcLength));
dst.setPositionSync(srcLength);
var data = new List<int>(1);
- var read2 = dst.readListSync(data, 0, 1);
+ var read2 = dst.readIntoSync(data, 0, 1);
Expect.equals(32, data[0]);
src.closeSync();
dst.closeSync();
« no previous file with comments | « tests/standalone/io/read_into_const_list_test.dart ('k') | utils/lib/file_system_vm.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698