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

Unified Diff: tests/standalone/io/http_client_request_test.dart

Issue 12655003: Buffer the entire http header to one packet, and buffer other data in chunks of 4-16 kb. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « tests/standalone/io/http_10_test.dart ('k') | tests/standalone/io/http_connection_close_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_client_request_test.dart
diff --git a/tests/standalone/io/http_client_request_test.dart b/tests/standalone/io/http_client_request_test.dart
index d2c9236c446109448b1e291e164cbac07759cd6d..84e7b2dd4f40cf0e20ec99bbba18af5d1f6a4345 100644
--- a/tests/standalone/io/http_client_request_test.dart
+++ b/tests/standalone/io/http_client_request_test.dart
@@ -47,6 +47,7 @@ void testBadResponseAdd() {
var port = new ReceivePort();
request.contentLength = 0;
request.writeBytes([0]);
+ request.close();
request.done.catchError((error) {
port.close();
}, test: (e) => e is HttpException);
@@ -58,6 +59,7 @@ void testBadResponseAdd() {
request.contentLength = 5;
request.writeBytes([0, 0, 0]);
request.writeBytes([0, 0, 0]);
+ request.close();
request.done.catchError((error) {
port.close();
}, test: (e) => e is HttpException);
@@ -70,6 +72,7 @@ void testBadResponseAdd() {
request.writeBytes(new Uint8List(64 * 1024));
request.writeBytes(new Uint8List(64 * 1024));
request.writeBytes(new Uint8List(64 * 1024));
+ request.close();
request.done.catchError((error) {
port.close();
}, test: (e) => e is HttpException);
« no previous file with comments | « tests/standalone/io/http_10_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