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

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

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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_auth_test.dart ('k') | tests/standalone/io/http_connection_header_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_connection_close_test.dart
diff --git a/tests/standalone/io/http_connection_close_test.dart b/tests/standalone/io/http_connection_close_test.dart
index 1e1022323f8243dd5bc71e92901886f2f25c0a44..b6116d2598149754bddb9e55830d1905022ae01f 100644
--- a/tests/standalone/io/http_connection_close_test.dart
+++ b/tests/standalone/io/http_connection_close_test.dart
@@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
//
-import "dart:isolate";
+import "dart:async";
import "dart:io";
import "dart:uri";
@@ -13,7 +13,7 @@ void testHttp10Close(bool closeRequest) {
Socket socket = new Socket("127.0.0.1", server.port);
socket.onConnect = () {
- List<int> buffer = new List<int>(1024);
+ List<int> buffer = new List<int>.fixedLength(1024);
socket.outputStream.writeString("GET / HTTP/1.0\r\n\r\n");
if (closeRequest) socket.outputStream.close();
socket.onData = () => socket.readList(buffer, 0, buffer.length);
@@ -30,7 +30,7 @@ void testHttp11Close(bool closeRequest) {
Socket socket = new Socket("127.0.0.1", server.port);
socket.onConnect = () {
- List<int> buffer = new List<int>(1024);
+ List<int> buffer = new List<int>.fixedLength(1024);
socket.outputStream.writeString(
"GET / HTTP/1.1\r\nConnection: close\r\n\r\n");
if (closeRequest) socket.outputStream.close();
« no previous file with comments | « tests/standalone/io/http_auth_test.dart ('k') | tests/standalone/io/http_connection_header_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698