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

Unified Diff: tests/standalone/io/http_proxy_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
« no previous file with comments | « tests/standalone/io/http_headers_state_test.dart ('k') | tests/standalone/io/http_read_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_proxy_test.dart
diff --git a/tests/standalone/io/http_proxy_test.dart b/tests/standalone/io/http_proxy_test.dart
index 365ce2960d43fc237e0fc85b86a46e19279e58db..197b11a3dbd410969e8b8aea1968e39b748f5ef8 100644
--- a/tests/standalone/io/http_proxy_test.dart
+++ b/tests/standalone/io/http_proxy_test.dart
@@ -23,7 +23,7 @@ class Server {
Future f = secure
? HttpServer.bindSecure(
"localhost", 0, certificateName: 'localhost_cert')
- : HttpServer.bind("localhost");
+ : HttpServer.bind("localhost", 0);
return f.then((s) {
server = s;
x.complete(this);
@@ -97,7 +97,7 @@ class ProxyServer {
Future<ProxyServer> start() {
var x = new Completer();
- HttpServer.bind("localhost").then((s) {
+ HttpServer.bind("localhost", 0).then((s) {
server = s;
x.complete(this);
server.listen((HttpRequest request) {
« no previous file with comments | « tests/standalone/io/http_headers_state_test.dart ('k') | tests/standalone/io/http_read_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698