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

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

Issue 14640008: Change the signature for all network bind calls. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments by whesse@ 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
Index: tests/standalone/io/http_content_length_test.dart
diff --git a/tests/standalone/io/http_content_length_test.dart b/tests/standalone/io/http_content_length_test.dart
index 4efd9afd5a0a10c24179da5bb420b41a84b1dd77..335121d1c4c327fb344e72e2fe76e7a053de83c6 100644
--- a/tests/standalone/io/http_content_length_test.dart
+++ b/tests/standalone/io/http_content_length_test.dart
@@ -9,7 +9,7 @@ import "dart:io";
void testNoBody(int totalConnections, bool explicitContentLength) {
var errors = 0;
- HttpServer.bind("127.0.0.1", 0, totalConnections).then((server) {
+ HttpServer.bind("127.0.0.1", 0, backlog: totalConnections).then((server) {
server.listen(
(HttpRequest request) {
Expect.equals("0", request.headers.value('content-length'));
@@ -75,7 +75,7 @@ void testNoBody(int totalConnections, bool explicitContentLength) {
}
void testBody(int totalConnections, bool useHeader) {
- HttpServer.bind("127.0.0.1", 0, totalConnections).then((server) {
+ HttpServer.bind("127.0.0.1", 0, backlog: totalConnections).then((server) {
int serverCount = 0;
server.listen(
(HttpRequest request) {
@@ -153,7 +153,7 @@ void testBody(int totalConnections, bool useHeader) {
}
void testBodyChunked(int totalConnections, bool useHeader) {
- HttpServer.bind("127.0.0.1", 0, totalConnections).then((server) {
+ HttpServer.bind("127.0.0.1", 0, backlog: totalConnections).then((server) {
server.listen(
(HttpRequest request) {
Expect.isNull(request.headers.value('content-length'));
@@ -229,7 +229,7 @@ void testBodyChunked(int totalConnections, bool useHeader) {
}
void testSetContentLength() {
- HttpServer.bind().then((server) {
+ HttpServer.bind("127.0.0.1", 0).then((server) {
server.listen(
(HttpRequest request) {
var response = request.response;
« no previous file with comments | « tests/standalone/io/http_connection_header_test.dart ('k') | tests/standalone/io/http_detach_socket_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698