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

Unified Diff: tests/standalone/io/socket_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
Index: tests/standalone/io/socket_test.dart
diff --git a/tests/standalone/io/socket_test.dart b/tests/standalone/io/socket_test.dart
index 6ce7a756694244e0cb646b6e3735d1d98373754d..8e757c8d539e5715a485f299469c6637eba1e1f5 100644
--- a/tests/standalone/io/socket_test.dart
+++ b/tests/standalone/io/socket_test.dart
@@ -113,7 +113,7 @@ void testConnectConsumerWriteClose() {
ServerSocket.bind().then((server) {
server.listen((_) { });
Socket.connect("127.0.0.1", server.port).then((socket) {
- socket.add([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]);
+ socket.writeBytes([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]);
socket.close();
socket.done.then((_) {
socket.destroy();
@@ -155,7 +155,7 @@ void testConnectStreamDataClose(bool useDestroy) {
ServerSocket.bind().then((server) {
server.listen(
(client) {
- client.add(sendData);
+ client.writeBytes(sendData);
if (useDestroy) {
client.destroy();
} else {
@@ -171,7 +171,7 @@ void testConnectStreamDataClose(bool useDestroy) {
Expect.isFalse(onDoneCalled);
onDoneCalled = true;
if (!useDestroy) Expect.listEquals(sendData, data);
- socket.add([0]);
+ socket.writeBytes([0]);
socket.close();
server.close();
port.close();
@@ -186,7 +186,7 @@ void testConnectStreamDataCloseCancel(bool useDestroy) {
ServerSocket.bind().then((server) {
server.listen(
(client) {
- client.add(sendData);
+ client.writeBytes(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