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

Unified Diff: utils/testrunner/http_server.dart

Issue 11103015: Added the ability for testrunner to start the HTTP server with a random port and communicate that p… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | « pkg/unittest/unittest.dart ('k') | utils/testrunner/options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/testrunner/http_server.dart
===================================================================
--- utils/testrunner/http_server.dart (revision 13499)
+++ utils/testrunner/http_server.dart (working copy)
@@ -51,9 +51,15 @@
'vc1' : 'video/vc1'
};
- HttpTestServer(port, this.staticFileDirectory) {
+ HttpTestServer(int port, this.staticFileDirectory) {
server = new HttpServer();
- server.listen("127.0.0.1", port);
+ try {
+ server.listen("127.0.0.1", port);
+ print('Server listening on port $port');
+ } catch (e) {
+ print('Server listen on port $port failed');
+ throw e;
+ }
server.onError = (e) {
};
server.defaultRequestHandler =
« no previous file with comments | « pkg/unittest/unittest.dart ('k') | utils/testrunner/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698