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

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

Issue 12504006: Make IOSink implement StringSink (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed second round of review comments Created 7 years, 9 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/debugger/debug_lib.dart ('k') | tests/standalone/io/file_fuzz_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 b3a18689b33a40f5e5171a32f9ce32a3dd1b9c87..6cd0f37cdc229dd5f339cd948a83227a9950a55e 100644
--- a/tests/standalone/io/echo_server_stream_test.dart
+++ b/tests/standalone/io/echo_server_stream_test.dart
@@ -63,7 +63,7 @@ class EchoServerGame {
_socket.listen(onData,
onError: errorHandler,
onDone: onClosed);
- _socket.add(_buffer);
+ _socket.writeBytes(_buffer);
_socket.close();
data = new List<int>(MSGSIZE);
}
@@ -120,7 +120,7 @@ class EchoServer extends TestingServer {
Expect.equals(EchoServerGame.FIRSTCHAR + i, buffer[i]);
}
if (offset == MSGSIZE) {
- connection.add(buffer);
+ connection.writeBytes(buffer);
connection.close();
}
}
« no previous file with comments | « tests/standalone/debugger/debug_lib.dart ('k') | tests/standalone/io/file_fuzz_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698