Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(484)

Side by Side Diff: utils/tests/pub/version_solver_test.dart

Issue 10532123: - Move the Timer interface to the dart:isolate library so that it (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/testing/dart/test_runner.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « tools/testing/dart/test_runner.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698