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

Unified Diff: tests/standalone/io/stream_pipe_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/stdout_stderr_test.dart ('k') | utils/pub/safe_http_server.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 c029e0b87a5e5097717bbab68b58a1f1c8ede267..62a1ffdee4d14ff2b0f3457f106bffaeec825e53 100644
--- a/tests/standalone/io/stream_pipe_test.dart
+++ b/tests/standalone/io/stream_pipe_test.dart
@@ -100,7 +100,7 @@ testFileToFilePipe2() {
var dstFile = new File(dstFileName);
dstFile.createSync();
var output = dstFile.openWrite();
- output.writeStream(srcStream).then((_) {
+ output.addStream(srcStream).then((_) {
output.add([32]);
output.close();
output.done.then((_) {
@@ -143,9 +143,9 @@ testFileToFilePipe3() {
var dstFile = new File(dstFileName);
dstFile.createSync();
var output = dstFile.openWrite();
- output.writeStream(srcStream).then((_) {
+ output.addStream(srcStream).then((_) {
var srcStream2 = srcFile.openRead();
- output.writeStream(srcStream2).then((_) {
+ output.addStream(srcStream2).then((_) {
output.close();
output.done.then((_) {
var src = srcFile.openSync();
« no previous file with comments | « tests/standalone/io/stdout_stderr_test.dart ('k') | utils/pub/safe_http_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698