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

Unified Diff: tests/standalone/src/EchoServerStreamTest.dart

Issue 8413034: New OutputStream interface (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments from ager@ Created 9 years, 2 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 | « runtime/bin/socket_stream.dart ('k') | tests/standalone/src/FileTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/EchoServerStreamTest.dart
diff --git a/tests/standalone/src/EchoServerStreamTest.dart b/tests/standalone/src/EchoServerStreamTest.dart
index 5151be88f304e2f5ec6b051f00225034bff7f978..cb96be03b645fce30880d975b2b859e9b9908105 100644
--- a/tests/standalone/src/EchoServerStreamTest.dart
+++ b/tests/standalone/src/EchoServerStreamTest.dart
@@ -92,10 +92,8 @@ class EchoServerGame {
_socket.setCloseHandler(closeHandler);
_socket.setErrorHandler(errorHandler);
- bool written = stream.write(_buffer, 0, MSGSIZE, dataSent);
- if (written) {
- dataSent();
- }
+ stream.write(_buffer);
+ dataSent();
}
_socket = new Socket(EchoServer.HOST, _port);
@@ -149,7 +147,7 @@ class EchoServer extends Isolate {
Expect.equals(EchoServerGame.FIRSTCHAR + i, buffer[i]);
}
if (offset == MSGSIZE) {
- outputStream.write(buffer, 0, buffer.length, null);
+ outputStream.write(buffer);
}
}
}
« no previous file with comments | « runtime/bin/socket_stream.dart ('k') | tests/standalone/src/FileTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698