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 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:io'; | 8 import 'dart:io'; |
9 | 9 |
10 import 'configuration.dart'; | 10 import 'configuration.dart'; |
11 import 'test_suite.dart'; | 11 import 'utils.dart'; |
12 | 12 |
13 typedef void Action(); | 13 typedef void Action(); |
14 | 14 |
15 class _DartiumUpdater { | 15 class _DartiumUpdater { |
16 String name; | 16 String name; |
17 String script; | 17 String script; |
18 String option; | 18 String option; |
19 | 19 |
20 bool isActive = false; | 20 bool isActive = false; |
21 bool updated = false; | 21 bool updated = false; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // Download the default Dartium from Google Storage. | 82 // Download the default Dartium from Google Storage. |
83 if (_dartiumUpdater == null) { | 83 if (_dartiumUpdater == null) { |
84 _dartiumUpdater = new _DartiumUpdater( | 84 _dartiumUpdater = new _DartiumUpdater( |
85 'Dartium Chrome', 'tools/get_archive.py', 'dartium'); | 85 'Dartium Chrome', 'tools/get_archive.py', 'dartium'); |
86 } | 86 } |
87 return _dartiumUpdater; | 87 return _dartiumUpdater; |
88 } else { | 88 } else { |
89 return null; | 89 return null; |
90 } | 90 } |
91 } | 91 } |
OLD | NEW |