| 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 13 matching lines...) Expand all Loading... |
| 24 factory RuntimeConfiguration(Map configuration) { | 24 factory RuntimeConfiguration(Map configuration) { |
| 25 String runtime = configuration['runtime']; | 25 String runtime = configuration['runtime']; |
| 26 switch (runtime) { | 26 switch (runtime) { |
| 27 case 'ContentShellOnAndroid': | 27 case 'ContentShellOnAndroid': |
| 28 case 'DartiumOnAndroid': | 28 case 'DartiumOnAndroid': |
| 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 'ie10': | 35 case 'ie10': |
| 35 case 'ie9': | 36 case 'ie9': |
| 36 case 'opera': | 37 case 'opera': |
| 37 case 'safari': | 38 case 'safari': |
| 38 // TODO(ahe): Replace this with one or more browser runtimes. | 39 // TODO(ahe): Replace this with one or more browser runtimes. |
| 39 return new DummyRuntimeConfiguration(); | 40 return new DummyRuntimeConfiguration(); |
| 40 | 41 |
| 41 case 'jsshell': | 42 case 'jsshell': |
| 42 return new JsshellRuntimeConfiguration(); | 43 return new JsshellRuntimeConfiguration(); |
| 43 | 44 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 class DummyRuntimeConfiguration extends DartVmRuntimeConfiguration { | 220 class DummyRuntimeConfiguration extends DartVmRuntimeConfiguration { |
| 220 List<Command> computeRuntimeCommands( | 221 List<Command> computeRuntimeCommands( |
| 221 TestSuite suite, | 222 TestSuite suite, |
| 222 CommandBuilder commandBuilder, | 223 CommandBuilder commandBuilder, |
| 223 CommandArtifact artifact, | 224 CommandArtifact artifact, |
| 224 List<String> arguments, | 225 List<String> arguments, |
| 225 Map<String, String> environmentOverrides) { | 226 Map<String, String> environmentOverrides) { |
| 226 throw "Unimplemented runtime '$runtimeType'"; | 227 throw "Unimplemented runtime '$runtimeType'"; |
| 227 } | 228 } |
| 228 } | 229 } |
| OLD | NEW |