| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // TODO(antonm): rename to something like test_runner_updater. | 5 // TODO(antonm): rename to something like test_runner_updater. |
| 6 | 6 |
| 7 library drt_updater; | 7 library drt_updater; |
| 8 | 8 |
| 9 import "dart:async"; | 9 import "dart:async"; |
| 10 import "dart:io"; | 10 import "dart:io"; |
| 11 | 11 |
| 12 import "test_suite.dart"; | 12 import "test_suite.dart"; |
| 13 import "utils.dart" show Path; |
| 13 | 14 |
| 14 class _DartiumUpdater { | 15 class _DartiumUpdater { |
| 15 String name; | 16 String name; |
| 16 String script; | 17 String script; |
| 17 String option; | 18 String option; |
| 18 | 19 |
| 19 bool isActive = false; | 20 bool isActive = false; |
| 20 bool updated = false; | 21 bool updated = false; |
| 21 List onUpdated; | 22 List onUpdated; |
| 22 | 23 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // Download the default Dartium from Google Storage. | 79 // Download the default Dartium from Google Storage. |
| 79 if (_dartiumUpdater == null) { | 80 if (_dartiumUpdater == null) { |
| 80 _dartiumUpdater = new _DartiumUpdater('Dartium Chrome', 'get_archive.py', | 81 _dartiumUpdater = new _DartiumUpdater('Dartium Chrome', 'get_archive.py', |
| 81 'dartium'); | 82 'dartium'); |
| 82 } | 83 } |
| 83 return _dartiumUpdater; | 84 return _dartiumUpdater; |
| 84 } else { | 85 } else { |
| 85 return null; | 86 return null; |
| 86 } | 87 } |
| 87 } | 88 } |
| OLD | NEW |