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

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

Issue 14028017: Remove .writeStream, .consume and rewrite IOSink to correctly implement a (sane) well-defined behav… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review comments. 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/io_sink_test.dart ('k') | tests/standalone/io/stream_pipe_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/stdout_stderr_test.dart
diff --git a/tests/standalone/io/stdout_stderr_test.dart b/tests/standalone/io/stdout_stderr_test.dart
index 4775891cc5ec32ab92472abbd82de4501404af90..ccd1550435184701174bd57c829220f6dd7eb6b2 100644
--- a/tests/standalone/io/stdout_stderr_test.dart
+++ b/tests/standalone/io/stdout_stderr_test.dart
@@ -17,16 +17,18 @@ callIOSink(IOSink sink) {
sink.add([101, 108, 108, 111, 10]);
var controller = new StreamController();
- sink.writeStream(controller.stream);
+ var future = sink.addStream(controller.stream);
controller.add([72, 101, 108]);
controller.add([108, 111, 10]);
controller.close();
- controller = new StreamController();
- controller.stream.pipe(sink);
- controller.add([72, 101, 108]);
- controller.add([108, 111, 10]);
- controller.close();
+ future.then((_) {
+ controller = new StreamController();
+ controller.stream.pipe(sink);
+ controller.add([72, 101, 108]);
+ controller.add([108, 111, 10]);
+ controller.close();
+ });
}
main() {
« no previous file with comments | « tests/standalone/io/io_sink_test.dart ('k') | tests/standalone/io/stream_pipe_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698