Chromium Code Reviews

Unified Diff: sdk/lib/_internal/pub/test/version_solver_test.dart

Issue 581283003: Get rid of Chain.track in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « sdk/lib/_internal/pub/test/test_pub.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/test/version_solver_test.dart
diff --git a/sdk/lib/_internal/pub/test/version_solver_test.dart b/sdk/lib/_internal/pub/test/version_solver_test.dart
index d98a5bff0a875b18cb7cd7f58a7641b747111aa3..7673fde1184fe48e7ec959f7c5db3e2c273af01a 100644
--- a/sdk/lib/_internal/pub/test/version_solver_test.dart
+++ b/sdk/lib/_internal/pub/test/version_solver_test.dart
@@ -1378,7 +1378,7 @@ class MockSource extends CachedSource {
}
Future<List<Version>> getVersions(String name, String description) {
- return syncFuture(() {
+ return new Future.sync(() {
// Make sure the solver doesn't request the same thing twice.
if (_requestedVersions.contains(description)) {
throw new Exception('Version list for $description was already '
@@ -1397,7 +1397,7 @@ class MockSource extends CachedSource {
}
Future<Pubspec> describeUncached(PackageId id) {
- return syncFuture(() {
+ return new Future.sync(() {
// Make sure the solver doesn't request the same thing twice.
if (_requestedPubspecs.containsKey(id.description) &&
_requestedPubspecs[id.description].contains(id.version)) {
« no previous file with comments | « sdk/lib/_internal/pub/test/test_pub.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine