OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 runtime_configuration; | 5 library runtime_configuration; |
6 | 6 |
7 import 'compiler_configuration.dart' show | 7 import 'compiler_configuration.dart' show |
8 CommandArtifact; | 8 CommandArtifact; |
9 | 9 |
10 // TODO(ahe): Remove this import, we can precompute all the values required | 10 // TODO(ahe): Remove this import, we can precompute all the values required |
(...skipping 18 matching lines...) Expand all Loading... |
29 case 'chrome': | 29 case 'chrome': |
30 case 'chromeOnAndroid': | 30 case 'chromeOnAndroid': |
31 case 'dartium': | 31 case 'dartium': |
32 case 'ff': | 32 case 'ff': |
33 case 'firefox': | 33 case 'firefox': |
34 case 'ie11': | 34 case 'ie11': |
35 case 'ie10': | 35 case 'ie10': |
36 case 'ie9': | 36 case 'ie9': |
37 case 'opera': | 37 case 'opera': |
38 case 'safari': | 38 case 'safari': |
| 39 case 'safarimobilesim': |
39 // TODO(ahe): Replace this with one or more browser runtimes. | 40 // TODO(ahe): Replace this with one or more browser runtimes. |
40 return new DummyRuntimeConfiguration(); | 41 return new DummyRuntimeConfiguration(); |
41 | 42 |
42 case 'jsshell': | 43 case 'jsshell': |
43 return new JsshellRuntimeConfiguration(); | 44 return new JsshellRuntimeConfiguration(); |
44 | 45 |
45 case 'd8': | 46 case 'd8': |
46 return new D8RuntimeConfiguration(); | 47 return new D8RuntimeConfiguration(); |
47 | 48 |
48 case 'none': | 49 case 'none': |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 class DummyRuntimeConfiguration extends DartVmRuntimeConfiguration { | 221 class DummyRuntimeConfiguration extends DartVmRuntimeConfiguration { |
221 List<Command> computeRuntimeCommands( | 222 List<Command> computeRuntimeCommands( |
222 TestSuite suite, | 223 TestSuite suite, |
223 CommandBuilder commandBuilder, | 224 CommandBuilder commandBuilder, |
224 CommandArtifact artifact, | 225 CommandArtifact artifact, |
225 List<String> arguments, | 226 List<String> arguments, |
226 Map<String, String> environmentOverrides) { | 227 Map<String, String> environmentOverrides) { |
227 throw "Unimplemented runtime '$runtimeType'"; | 228 throw "Unimplemented runtime '$runtimeType'"; |
228 } | 229 } |
229 } | 230 } |
OLD | NEW |