OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'dart:async'; | 5 import 'dart:async'; |
6 import 'dart:convert' show HtmlEscape; | 6 import 'dart:convert' show HtmlEscape; |
7 import 'dart:io'; | 7 import 'dart:io'; |
8 | 8 |
9 import 'package:package_resolver/package_resolver.dart'; | 9 import 'package:package_resolver/package_resolver.dart'; |
10 | 10 |
11 import 'configuration.dart'; | 11 import 'configuration.dart'; |
12 import 'test_suite.dart'; | |
13 import 'vendored_pkg/args/args.dart'; | 12 import 'vendored_pkg/args/args.dart'; |
14 import 'utils.dart'; | 13 import 'utils.dart'; |
15 | 14 |
16 class DispatchingServer { | 15 class DispatchingServer { |
17 HttpServer server; | 16 HttpServer server; |
18 Map<String, Function> _handlers = new Map<String, Function>(); | 17 Map<String, Function> _handlers = new Map<String, Function>(); |
19 Function _notFound; | 18 Function _notFound; |
20 | 19 |
21 DispatchingServer( | 20 DispatchingServer( |
22 this.server, void onError(e), void this._notFound(HttpRequest request)) { | 21 this.server, void onError(e), void this._notFound(HttpRequest request)) { |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 class _Entry implements Comparable<_Entry> { | 468 class _Entry implements Comparable<_Entry> { |
470 final String name; | 469 final String name; |
471 final String displayName; | 470 final String displayName; |
472 | 471 |
473 _Entry(this.name, this.displayName); | 472 _Entry(this.name, this.displayName); |
474 | 473 |
475 int compareTo(_Entry other) { | 474 int compareTo(_Entry other) { |
476 return name.compareTo(other.name); | 475 return name.compareTo(other.name); |
477 } | 476 } |
478 } | 477 } |
OLD | NEW |