| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 "/NonExistingFile.js", |
| 99 "/hahaURL", | 99 "/hahaURL", |
| 100 "/UNEXISTENT", |
| 101 "/missing.png", |
| 102 "/NoSuchPart.dart", |
| 103 "/Nonexistent_library.dart", |
| 104 "/missing_file", |
| 105 "/xxx-missing.jpeg", |
| 106 "/does-not-exist.css" |
| 100 ]; | 107 ]; |
| 101 | 108 |
| 102 List _serverList = []; | 109 List _serverList = []; |
| 103 Path _buildDirectory = null; | 110 Path _buildDirectory = null; |
| 104 Path _dartDirectory = null; | 111 Path _dartDirectory = null; |
| 105 final bool useContentSecurityPolicy; | 112 final bool useContentSecurityPolicy; |
| 106 final String runtime; | 113 final String runtime; |
| 107 | 114 |
| 108 TestingServers(Path buildDirectory, | 115 TestingServers(Path buildDirectory, |
| 109 this.useContentSecurityPolicy, | 116 this.useContentSecurityPolicy, |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 class _Entry implements Comparable { | 397 class _Entry implements Comparable { |
| 391 final String name; | 398 final String name; |
| 392 final String displayName; | 399 final String displayName; |
| 393 | 400 |
| 394 _Entry(this.name, this.displayName); | 401 _Entry(this.name, this.displayName); |
| 395 | 402 |
| 396 int compareTo(_Entry other) { | 403 int compareTo(_Entry other) { |
| 397 return name.compareTo(other.name); | 404 return name.compareTo(other.name); |
| 398 } | 405 } |
| 399 } | 406 } |
| OLD | NEW |