| 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 #library('pub_update_test'); | 5 #library('pub_update_test'); |
| 6 | 6 |
| 7 #import('dart:io'); | 7 #import('dart:io'); |
| 8 #import('dart:isolate'); |
| 8 | 9 |
| 9 #import('../../pub/package.dart'); | 10 #import('../../pub/package.dart'); |
| 10 #import('../../pub/pubspec.dart'); | 11 #import('../../pub/pubspec.dart'); |
| 11 #import('../../pub/source.dart'); | 12 #import('../../pub/source.dart'); |
| 12 #import('../../pub/source_registry.dart'); | 13 #import('../../pub/source_registry.dart'); |
| 13 #import('../../pub/version.dart'); | 14 #import('../../pub/version.dart'); |
| 14 #import('../../pub/version_solver.dart'); | 15 #import('../../pub/version_solver.dart'); |
| 15 #import('../../../lib/unittest/unittest.dart'); | 16 #import('../../../lib/unittest/unittest.dart'); |
| 16 | 17 |
| 17 final noVersion = 'no version'; | 18 final noVersion = 'no version'; |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 } | 269 } |
| 269 | 270 |
| 270 Future fakeAsync(callback()) { | 271 Future fakeAsync(callback()) { |
| 271 var completer = new Completer(); | 272 var completer = new Completer(); |
| 272 new Timer(0, (_) { | 273 new Timer(0, (_) { |
| 273 completer.complete(callback()); | 274 completer.complete(callback()); |
| 274 }); | 275 }); |
| 275 | 276 |
| 276 return completer.future; | 277 return completer.future; |
| 277 } | 278 } |
| OLD | NEW |