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

Unified Diff: tests/standalone/io/http_close_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/http_close_test.dart
diff --git a/tests/standalone/io/http_close_test.dart b/tests/standalone/io/http_close_test.dart
index de467d5ae46eb727b91b383c00bf84b14cb1d50a..7e0418bd792a8aa02e247f819fa5d99235f325ae 100644
--- a/tests/standalone/io/http_close_test.dart
+++ b/tests/standalone/io/http_close_test.dart
@@ -91,7 +91,7 @@ void testClientCloseDelayed(int connections) {
client.post("localhost", server.port, "/")
.then((request) {
req = request;
- request.add(new Uint8List(1024));
+ request.writeBytes(new Uint8List(1024));
return request.response;
})
.then((response) {
@@ -124,7 +124,7 @@ void testClientCloseSendingResponse(int connections) {
}
server.listen((request) {
var timer = new Timer.repeating(const Duration(milliseconds: 20), (_) {
- request.response.add(new Uint8List(16 * 1024));
+ request.response.writeBytes(new Uint8List(16 * 1024));
});
request.response.done
.catchError((_) {})
« no previous file with comments | « tests/standalone/io/http_client_request_test.dart ('k') | tests/standalone/io/http_connection_close_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698