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

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

Issue 1123323003: Fix or work around failing pub tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/_internal/pub/test/get/hosted/avoid_network_requests_test.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 cdadb67f9f9776626b18fb3cf37ad76f42f61a8f..cee9a96a9a80e6638bb6c38f5c6a7fc170995386 100644
--- a/sdk/lib/_internal/pub/test/version_solver_test.dart
+++ b/sdk/lib/_internal/pub/test/version_solver_test.dart
@@ -1377,7 +1377,7 @@ class MockSource extends CachedSource {
return new Future.value('${id.name}-${id.version}');
}
- Future<List<Version>> getVersions(String name, String description) {
+ Future<List<Pubspec>> getVersions(String name, String description) {
return new Future.sync(() {
// Make sure the solver doesn't request the same thing twice.
if (_requestedVersions.contains(description)) {
@@ -1392,7 +1392,8 @@ class MockSource extends CachedSource {
'"$description".');
}
- return _packages[description].keys.toList();
+ return _packages[description].values
+ .map((package) => package.pubspec).toList();
});
}
« no previous file with comments | « sdk/lib/_internal/pub/test/get/hosted/avoid_network_requests_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698