Index: tools/testing/dart/runtime_configuration.dart |
diff --git a/tools/testing/dart/runtime_configuration.dart b/tools/testing/dart/runtime_configuration.dart |
index 867d8f7c7ba3d189a41749f053893e2bcc794c20..71913427ccdc30dd2f90a7c9dc897087a4aae1b5 100644 |
--- a/tools/testing/dart/runtime_configuration.dart |
+++ b/tools/testing/dart/runtime_configuration.dart |
@@ -19,6 +19,8 @@ class RuntimeConfiguration { |
// [RuntimeConfiguration] in [configuration] there. |
factory RuntimeConfiguration(Map configuration) { |
String runtime = configuration['runtime']; |
+ bool useBlobs = configuration['use_blobs']; |
+ |
switch (runtime) { |
case 'ContentShellOnAndroid': |
case 'DartiumOnAndroid': |
@@ -52,7 +54,7 @@ class RuntimeConfiguration { |
return new DartProductRuntimeConfiguration(); |
case 'dart_precompiled': |
- return new DartPrecompiledRuntimeConfiguration(); |
+ return new DartPrecompiledRuntimeConfiguration(useBlobs: useBlobs); |
case 'drt': |
return new DrtRuntimeConfiguration(); |
@@ -244,6 +246,9 @@ class DartProductRuntimeConfiguration extends DartVmRuntimeConfiguration { |
} |
class DartPrecompiledRuntimeConfiguration extends DartVmRuntimeConfiguration { |
+ final bool useBlobs; |
+ DartPrecompiledRuntimeConfiguration({bool useBlobs}) : useBlobs = useBlobs; |
+ |
List<Command> computeRuntimeCommands( |
TestSuite suite, |
CommandBuilder commandBuilder, |
@@ -258,6 +263,9 @@ class DartPrecompiledRuntimeConfiguration extends DartVmRuntimeConfiguration { |
var augmentedArgs = new List(); |
augmentedArgs.add("--run-precompiled-snapshot=${artifact.filename}"); |
+ if (useBlobs) { |
+ augmentedArgs.add("--use_blobs"); |
+ } |
augmentedArgs.addAll(arguments); |
return <Command>[ |