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

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

Issue 14150002: Remove StreamSink(replaced by EventSink) and make IOSink extend EventSink. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/dart_std_io_pipe_script.dart ('k') | tests/standalone/io/file_output_stream_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/echo_server_stream_test.dart
diff --git a/tests/standalone/io/echo_server_stream_test.dart b/tests/standalone/io/echo_server_stream_test.dart
index 2a56e829c0323ac4a0bfb311d18fd6809d5880e7..dfd264d5b2712eb269ff5249409542e46ca31592 100644
--- a/tests/standalone/io/echo_server_stream_test.dart
+++ b/tests/standalone/io/echo_server_stream_test.dart
@@ -64,7 +64,7 @@ class EchoServerGame {
_socket.listen(onData,
onError: errorHandler,
onDone: onClosed);
- _socket.writeBytes(_buffer);
+ _socket.add(_buffer);
_socket.close();
data = new List<int>(MSGSIZE);
}
@@ -121,7 +121,7 @@ class EchoServer extends TestingServer {
Expect.equals(EchoServerGame.FIRSTCHAR + i, buffer[i]);
}
if (offset == MSGSIZE) {
- connection.writeBytes(buffer);
+ connection.add(buffer);
connection.close();
}
}
« no previous file with comments | « tests/standalone/io/dart_std_io_pipe_script.dart ('k') | tests/standalone/io/file_output_stream_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698