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

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

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
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 3468aaec133c7a86365371c92684891d0a18dd10..8a1b91052bc6b2baea3133e1c622f192ab953ca4 100644
--- a/tests/standalone/io/stream_pipe_test.dart
+++ b/tests/standalone/io/stream_pipe_test.dart
@@ -35,8 +35,8 @@ bool compareFileContent(String fileName1,
}
}
if (count == null) count = length1;
- var data1 = new List<int>(count);
- var data2 = new List<int>(count);
+ var data1 = new List<int>.fixedLength(count);
+ var data2 = new List<int>.fixedLength(count);
if (file1Offset != 0) file1.setPositionSync(file1Offset);
if (file2Offset != 0) file2.setPositionSync(file2Offset);
var read1 = file1.readListSync(data1, 0, count);
@@ -223,7 +223,7 @@ testFileToFilePipe2() {
dstFileName,
count: srcLength));
dst.setPositionSync(srcLength);
- var data = new List<int>(1);
+ var data = new List<int>.fixedLength(1);
var read2 = dst.readListSync(data, 0, 1);
Expect.equals(32, data[0]);
src.closeSync();
« no previous file with comments | « tests/standalone/io/socket_stream_close_test.dart ('k') | tests/standalone/io/test_extension_fail_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698