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

Unified Diff: tests/standalone/io/secure_server_socket_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
Index: tests/standalone/io/secure_server_socket_test.dart
diff --git a/tests/standalone/io/secure_server_socket_test.dart b/tests/standalone/io/secure_server_socket_test.dart
index 3eaae5d4e9a8585178e39f7b583f5d20f7230676..da71e0d819f8ea56c9f7b51302001f4ddd01d7f1 100644
--- a/tests/standalone/io/secure_server_socket_test.dart
+++ b/tests/standalone/io/secure_server_socket_test.dart
@@ -171,7 +171,7 @@ void testSimpleReadWrite() {
bytesRead += buffer.length;
if (bytesRead == data.length) {
verifyTestData(data);
- client.writeBytes(data);
+ client.add(data);
client.close();
}
},
@@ -185,7 +185,7 @@ void testSimpleReadWrite() {
int bytesWritten = 0;
List<int> dataSent = createTestData();
List<int> dataReceived = new List<int>(dataSent.length);
- socket.writeBytes(dataSent);
+ socket.add(dataSent);
socket.close(); // Can also be delayed.
socket.listen(
(List<int> buffer) {
« no previous file with comments | « tests/standalone/io/secure_multiple_client_server_test.dart ('k') | tests/standalone/io/secure_socket_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698