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

Unified Diff: tests/standalone/io/http_head_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/http_compression_test.dart ('k') | tests/standalone/io/http_keep_alive_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_head_test.dart
diff --git a/tests/standalone/io/http_head_test.dart b/tests/standalone/io/http_head_test.dart
index cac1dd902c53bb3c5f70f18fb519d3541ebe9ad8..ea5974b6ca1a1ee5d1f97c9085dd2034260c83ea 100644
--- a/tests/standalone/io/http_head_test.dart
+++ b/tests/standalone/io/http_head_test.dart
@@ -15,15 +15,15 @@ void testHEAD(int totalConnections) {
} else if (request.uri.path == "/test200") {
response.contentLength = 200;
List<int> data = new List<int>.filled(200, 0);
- response.writeBytes(data);
+ response.add(data);
response.close();
} else if (request.uri.path == "/testChunked100") {
List<int> data = new List<int>.filled(100, 0);
- response.writeBytes(data);
+ response.add(data);
response.close();
} else if (request.uri.path == "/testChunked200") {
List<int> data = new List<int>.filled(200, 0);
- response.writeBytes(data);
+ response.add(data);
response.close();
} else {
assert(false);
« no previous file with comments | « tests/standalone/io/http_compression_test.dart ('k') | tests/standalone/io/http_keep_alive_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698