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

Unified Diff: tests/standalone/io/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/socket_test.dart
diff --git a/tests/standalone/io/socket_test.dart b/tests/standalone/io/socket_test.dart
index 09e384b798d04df9b738dbbbff40488ce7131f49..a405c05ad63c1de259d5cd958d6442ef1b1aa423 100644
--- a/tests/standalone/io/socket_test.dart
+++ b/tests/standalone/io/socket_test.dart
@@ -114,7 +114,7 @@ void testConnectConsumerWriteClose() {
ServerSocket.bind().then((server) {
server.listen((_) { });
Socket.connect("127.0.0.1", server.port).then((socket) {
- socket.writeBytes([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]);
+ socket.add([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]);
socket.close();
socket.done.then((_) {
socket.destroy();
@@ -156,7 +156,7 @@ void testConnectStreamDataClose(bool useDestroy) {
ServerSocket.bind().then((server) {
server.listen(
(client) {
- client.writeBytes(sendData);
+ client.add(sendData);
if (useDestroy) {
client.destroy();
} else {
@@ -172,7 +172,7 @@ void testConnectStreamDataClose(bool useDestroy) {
Expect.isFalse(onDoneCalled);
onDoneCalled = true;
if (!useDestroy) Expect.listEquals(sendData, data);
- socket.writeBytes([0]);
+ socket.add([0]);
socket.close();
server.close();
port.close();
@@ -187,7 +187,7 @@ void testConnectStreamDataCloseCancel(bool useDestroy) {
ServerSocket.bind().then((server) {
server.listen(
(client) {
- client.writeBytes(sendData);
+ client.add(sendData);
if (useDestroy) {
client.destroy();
} else {
« no previous file with comments | « tests/standalone/io/socket_invalid_arguments_test.dart ('k') | tests/standalone/io/stdout_bad_argument_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698