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

Unified Diff: tests/standalone/io/http_body_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
« no previous file with comments | « tests/standalone/io/file_test.dart ('k') | tests/standalone/io/http_client_connect_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_body_test.dart
diff --git a/tests/standalone/io/http_body_test.dart b/tests/standalone/io/http_body_test.dart
index 12d819f3be32bc6abc9115c12da6da83b4d7a67e..c25406e0f643111ee6a681341000b179e94fbf88 100644
--- a/tests/standalone/io/http_body_test.dart
+++ b/tests/standalone/io/http_body_test.dart
@@ -21,7 +21,7 @@ void testHttpClientResponseBody() {
onDone: () {
request.response.headers.contentType =
new ContentType.fromString(mimeType);
- request.response.writeBytes(content);
+ request.response.add(content);
request.response.close();
});
});
@@ -118,7 +118,7 @@ void testHttpServerRequestBody() {
.then((request) {
request.headers.contentType =
new ContentType.fromString(mimeType);
- request.writeBytes(content);
+ request.add(content);
return request.close();
})
.then((response) {
« no previous file with comments | « tests/standalone/io/file_test.dart ('k') | tests/standalone/io/http_client_connect_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698