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

Side by Side Diff: tools/testing/dart/http_server.dart

Issue 2915843003: Simplify test_suite.dart. (Closed)
Patch Set: Fix path in test. Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « tools/testing/dart/drt_updater.dart ('k') | tools/testing/dart/main.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « tools/testing/dart/drt_updater.dart ('k') | tools/testing/dart/main.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698