| Index: tools/testing/dart/drt_updater.dart
|
| diff --git a/tools/testing/dart/drt_updater.dart b/tools/testing/dart/drt_updater.dart
|
| index befc49f40b786bb20717aca2c2d2c4745aeef2fe..ea466de0c2eec8f41f35903c2804c1fc7cb88221 100644
|
| --- a/tools/testing/dart/drt_updater.dart
|
| +++ b/tools/testing/dart/drt_updater.dart
|
| @@ -4,12 +4,11 @@
|
|
|
| // TODO(antonm): rename to something like test_runner_updater.
|
|
|
| -library drt_updater;
|
| +import 'dart:async';
|
| +import 'dart:io';
|
|
|
| -import "dart:async";
|
| -import "dart:io";
|
| -
|
| -import "test_suite.dart";
|
| +import 'configuration.dart';
|
| +import 'test_suite.dart';
|
|
|
| typedef void Action();
|
|
|
| @@ -70,16 +69,16 @@ class _DartiumUpdater {
|
| _DartiumUpdater _contentShellUpdater;
|
| _DartiumUpdater _dartiumUpdater;
|
|
|
| -_DartiumUpdater runtimeUpdater(Map configuration) {
|
| - var runtime = configuration['runtime'] as String;
|
| - if (runtime == 'drt' && configuration['drt'] == '') {
|
| +_DartiumUpdater runtimeUpdater(
|
| + Runtime runtime, String drtPath, String dartiumPath) {
|
| + if (runtime == Runtime.drt && drtPath == null) {
|
| // Download the default content shell from Google Storage.
|
| if (_contentShellUpdater == null) {
|
| _contentShellUpdater =
|
| new _DartiumUpdater('Content Shell', 'tools/get_archive.py', 'drt');
|
| }
|
| return _contentShellUpdater;
|
| - } else if (runtime == 'dartium' && configuration['dartium'] == '') {
|
| + } else if (runtime == Runtime.dartium && dartiumPath == null) {
|
| // Download the default Dartium from Google Storage.
|
| if (_dartiumUpdater == null) {
|
| _dartiumUpdater = new _DartiumUpdater(
|
|
|