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

Unified Diff: tests/standalone/io/http_server_response_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_content_length_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_server_response_test.dart
diff --git a/tests/standalone/io/http_server_response_test.dart b/tests/standalone/io/http_server_response_test.dart
index 8cbfaa4396cac5483fa3c60beea6f807717fde0b..be1dfffebbc6df91540cb3fd0557aca21a8e1c31 100644
--- a/tests/standalone/io/http_server_response_test.dart
+++ b/tests/standalone/io/http_server_response_test.dart
@@ -88,6 +88,7 @@ void testBadResponseAdd() {
testServerRequest((server, request) {
request.response.contentLength = 0;
request.response.writeBytes([0]);
+ request.response.close();
request.response.done.catchError((error) {
server.close();
}, test: (e) => e is HttpException);
@@ -97,6 +98,7 @@ void testBadResponseAdd() {
request.response.contentLength = 5;
request.response.writeBytes([0, 0, 0]);
request.response.writeBytes([0, 0, 0]);
+ request.response.close();
request.response.done.catchError((error) {
server.close();
}, test: (e) => e is HttpException);
@@ -107,6 +109,7 @@ void testBadResponseAdd() {
request.response.writeBytes(new Uint8List(64 * 1024));
request.response.writeBytes(new Uint8List(64 * 1024));
request.response.writeBytes(new Uint8List(64 * 1024));
+ request.response.close();
request.response.done.catchError((error) {
server.close();
}, test: (e) => e is HttpException);
« no previous file with comments | « tests/standalone/io/http_content_length_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698