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

Unified Diff: tests/standalone/io/http_session_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_server_test.dart ('k') | tests/standalone/io/http_shutdown_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_session_test.dart
diff --git a/tests/standalone/io/http_session_test.dart b/tests/standalone/io/http_session_test.dart
index 6c9d565e406c7aedfc9aaab0ced7119185af9aae..4b3472e6bbd0c232a33758606aaf4b2e72cd11cd 100644
--- a/tests/standalone/io/http_session_test.dart
+++ b/tests/standalone/io/http_session_test.dart
@@ -37,7 +37,7 @@ Future<String> connectGetSession(
void testSessions(int sessionCount) {
var client = new HttpClient();
- HttpServer.bind().then((server) {
+ HttpServer.bind("127.0.0.1", 0).then((server) {
var sessions = new Set();
server.listen((request) {
sessions.add(request.session.id);
@@ -67,7 +67,7 @@ void testSessions(int sessionCount) {
void testTimeout(int sessionCount) {
var client = new HttpClient();
- HttpServer.bind().then((server) {
+ HttpServer.bind("127.0.0.1", 0).then((server) {
server.sessionTimeout = 0;
var timeouts = [];
server.listen((request) {
@@ -103,7 +103,7 @@ void testTimeout(int sessionCount) {
}
void testSessionsData() {
- HttpServer.bind().then((server) {
+ HttpServer.bind("127.0.0.1", 0).then((server) {
bool firstHit = false;
bool secondHit = false;
server.listen((request) {
« no previous file with comments | « tests/standalone/io/http_server_test.dart ('k') | tests/standalone/io/http_shutdown_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698