| 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_utils.dart'; |
| 13 | 13 |
| 14 class _DartiumUpdater { | 14 class _DartiumUpdater { |
| 15 String name; | 15 String name; |
| 16 String script; | 16 String script; |
| 17 String option; | 17 String option; |
| 18 | 18 |
| 19 bool isActive = false; | 19 bool isActive = false; |
| 20 bool updated = false; | 20 bool updated = false; |
| 21 List onUpdated; | 21 List onUpdated; |
| 22 | 22 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 if (_dartiumUpdater == null) { | 79 if (_dartiumUpdater == null) { |
| 80 _dartiumUpdater = new _DartiumUpdater('Dartium Chrome', | 80 _dartiumUpdater = new _DartiumUpdater('Dartium Chrome', |
| 81 'tools/get_archive.py', | 81 'tools/get_archive.py', |
| 82 'dartium'); | 82 'dartium'); |
| 83 } | 83 } |
| 84 return _dartiumUpdater; | 84 return _dartiumUpdater; |
| 85 } else { | 85 } else { |
| 86 return null; | 86 return null; |
| 87 } | 87 } |
| 88 } | 88 } |
| OLD | NEW |