Chromium Code Reviews| Index: tools/testing/dart/runtime_configuration.dart |
| diff --git a/tools/testing/dart/runtime_configuration.dart b/tools/testing/dart/runtime_configuration.dart |
| index d3747eac06b1479d34cd6ec5755b591e7f39ecac..5a7047955ee36804a07b4bb0c9bcfbb6b5b35d69 100644 |
| --- a/tools/testing/dart/runtime_configuration.dart |
| +++ b/tools/testing/dart/runtime_configuration.dart |
| @@ -58,6 +58,9 @@ class RuntimeConfiguration { |
| case 'vm': |
| return new StandaloneDartRuntimeConfiguration(); |
| + case 'flutter_engine': |
| + return new StandaloneFlutterEngineConfiguration(); |
| + |
| case 'dart_precompiled': |
| if (configuration['system'] == 'android') { |
| return new DartPrecompiledAdbRuntimeConfiguration(useBlobs: useBlobs); |
| @@ -240,6 +243,31 @@ class StandaloneDartRuntimeConfiguration extends DartVmRuntimeConfiguration { |
| } |
| } |
| +/// The flutter engine binary, "sky_shell". |
| +class StandaloneFlutterEngineConfiguration extends DartVmRuntimeConfiguration { |
| + List<Command> computeRuntimeCommands( |
| + TestSuite suite, |
| + CommandBuilder commandBuilder, |
| + CommandArtifact artifact, |
| + List<String> arguments, |
| + Map<String, String> environmentOverrides) { |
| + String script = artifact.filename; |
| + String type = artifact.mimeType; |
| + if (script != null && |
| + type != 'application/dart' && |
| + type != 'application/dart-snapshot') { |
| + throw "Flutter Engine cannot run files of type '$type'."; |
| + } |
| + String executable = suite.skyBinaryFileName; |
| + var args = new List(); |
|
Bill Hesse
2017/01/05 17:48:33
I see this is just copied from other cases, but su
siva
2017/01/05 20:38:45
Done.
|
| + args.add('--non-interactive'); |
| + args.addAll(arguments); |
| + return <Command>[ |
| + commandBuilder.getVmCommand(executable, args, environmentOverrides) |
| + ]; |
| + } |
| +} |
| + |
| class DartPrecompiledRuntimeConfiguration extends DartVmRuntimeConfiguration { |
| final bool useBlobs; |
| DartPrecompiledRuntimeConfiguration({bool useBlobs}) : useBlobs = useBlobs; |