Update AOT Android harness for single-file app snapshots.

R=fschneider@google.com

Review URL: https://codereview.chromium.org/2419183002 .
This commit is contained in:
Ryan Macnak 2016-10-14 16:23:19 -07:00
parent fe04737a77
commit 656964107b

View file

@ -2607,23 +2607,20 @@ class CommandExecutorImpl implements CommandExecutor {
.runAdbCommand(['push', '$testdir/$file', '$deviceTestDir/$file']));
}
if (command.useBlobs) {
steps.add(() => device.runAdbShellCommand(
[
'$devicedir/dart_precompiled_runtime',
'--run-app-snapshot=$deviceTestDir',
'--use-blobs'
]..addAll(arguments),
timeout: timeoutDuration));
} else {
steps.add(() => device.runAdbShellCommand(
[
'$devicedir/dart_precompiled_runtime',
'--run-app-snapshot=$deviceTestDir'
]..addAll(arguments),
timeout: timeoutDuration));
var args = new List();
args.addAll(arguments);
for (var i = 0; i < args.length; i++) {
if (args[i].endsWith(".dart")) {
args[i] = "$deviceTestDir/out.aotsnapshot";
}
}
steps.add(() => device.runAdbShellCommand(
[
'$devicedir/dart_precompiled_runtime',
]..addAll(args),
timeout: timeoutDuration));
var stopwatch = new Stopwatch()..start();
var writer = new StringBuffer();