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

Unified Diff: pkg/http/test/utils.dart

Issue 12633015: Add a SafeHttpServer shim to work around issue 9140. (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
Index: pkg/http/test/utils.dart
diff --git a/pkg/http/test/utils.dart b/pkg/http/test/utils.dart
index a3960975ecb3387139b70588e66ffb3029a96c9a..6bbe139a7adbc856d7ec3b1b9603f67a225342c3 100644
--- a/pkg/http/test/utils.dart
+++ b/pkg/http/test/utils.dart
@@ -13,6 +13,7 @@ import 'package:unittest/unittest.dart';
import '../lib/src/byte_stream.dart';
import '../lib/http.dart' as http;
import '../lib/src/utils.dart';
+import 'safe_http_server.dart';
/// The current server instance.
HttpServer _server;
@@ -25,7 +26,7 @@ Uri get dummyUrl => Uri.parse('http://dartlang.org/');
/// Starts a new HTTP server.
Future startServer() {
- return HttpServer.bind("127.0.0.1", 0).then((s) {
+ return SafeHttpServer.bind("127.0.0.1", 0).then((s) {
_server = s;
s.listen((request) {
var path = request.uri.path;

Powered by Google App Engine
This is Rietveld 408576698