| 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 library http_server; | 5 library http_server; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:io'; | 8 import 'dart:io'; |
| 9 import 'test_suite.dart'; // For TestUtils. | 9 import 'test_suite.dart'; // For TestUtils. |
| 10 // TODO(efortuna): Rewrite to not use the args library and simply take an | 10 // TODO(efortuna): Rewrite to not use the args library and simply take an |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 */ | 88 */ |
| 89 class TestingServers { | 89 class TestingServers { |
| 90 static final _CACHE_EXPIRATION_IN_SECONDS = 30; | 90 static final _CACHE_EXPIRATION_IN_SECONDS = 30; |
| 91 static final _HARMLESS_REQUEST_PATH_ENDINGS = [ | 91 static final _HARMLESS_REQUEST_PATH_ENDINGS = [ |
| 92 "/apple-touch-icon.png", | 92 "/apple-touch-icon.png", |
| 93 "/apple-touch-icon-precomposed.png", | 93 "/apple-touch-icon-precomposed.png", |
| 94 "/favicon.ico", | 94 "/favicon.ico", |
| 95 "/foo", | 95 "/foo", |
| 96 "/bar", | 96 "/bar", |
| 97 "/NonExistingFile", | 97 "/NonExistingFile", |
| 98 "/NonExistingFile.js", |
| 98 "/hahaURL", | 99 "/hahaURL", |
| 99 ]; | 100 ]; |
| 100 | 101 |
| 101 List _serverList = []; | 102 List _serverList = []; |
| 102 Path _buildDirectory = null; | 103 Path _buildDirectory = null; |
| 103 final bool useContentSecurityPolicy; | 104 final bool useContentSecurityPolicy; |
| 104 final String runtime; | 105 final String runtime; |
| 105 | 106 |
| 106 TestingServers(Path buildDirectory, | 107 TestingServers(Path buildDirectory, |
| 107 this.useContentSecurityPolicy, | 108 this.useContentSecurityPolicy, |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 class _Entry { | 387 class _Entry { |
| 387 final String name; | 388 final String name; |
| 388 final String displayName; | 389 final String displayName; |
| 389 | 390 |
| 390 _Entry(this.name, this.displayName); | 391 _Entry(this.name, this.displayName); |
| 391 | 392 |
| 392 int compareTo(_Entry other) { | 393 int compareTo(_Entry other) { |
| 393 return name.compareTo(other.name); | 394 return name.compareTo(other.name); |
| 394 } | 395 } |
| 395 } | 396 } |
| OLD | NEW |