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

Unified Diff: tests/standalone/src/ChunkedStreamTest.dart

Issue 9289042: Minor changes to the dart:io library files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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/src/ChunkedStreamTest.dart
diff --git a/tests/standalone/src/ChunkedStreamTest.dart b/tests/standalone/src/ChunkedStreamTest.dart
index 7b2285807c79307317c6d2f3c68e1cb2992a9f2b..7b69e5189b1d36c2b4bb82317710d59cb69d51dc 100644
--- a/tests/standalone/src/ChunkedStreamTest.dart
+++ b/tests/standalone/src/ChunkedStreamTest.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -6,8 +6,10 @@
void test1() {
void testWithChunkSize(var data, int chunkSize, Function testDone) {
- InputStream s = new ListInputStream(data);
- ChunkedInputStream stream = new ChunkedInputStream(s);
+ InputStream list_input_stream = new ListInputStream();
+ list_input_stream.write(data);
+ list_input_stream.markEndOfStream();
+ ChunkedInputStream stream = new ChunkedInputStream(list_input_stream);
int chunkCount = 0;
int byteCount = 0;
void chunkData() {
@@ -65,7 +67,7 @@ void test1() {
void test2() {
- InputStream s = new DynamicListInputStream();
+ InputStream s = new ListInputStream();
ChunkedInputStream stream = new ChunkedInputStream(s);
stream.chunkSize = 5;
ReceivePort donePort = new ReceivePort();

Powered by Google App Engine
This is Rietveld 408576698