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

Unified Diff: test/version_solver_test.dart

Issue 1276673006: Make Source.getDirectory synchronous. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 4 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 | « test/pubspec_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/version_solver_test.dart
diff --git a/test/version_solver_test.dart b/test/version_solver_test.dart
index 35fbb9b0683a0153564a637651cbc756899aec0e..070d82897ad9386318d25938e94a3231568b00e1 100644
--- a/test/version_solver_test.dart
+++ b/test/version_solver_test.dart
@@ -1392,9 +1392,7 @@ class MockSource extends CachedSource {
bool descriptionsEqual(description1, description2) =>
description1 == description2;
- Future<String> getDirectory(PackageId id) {
- return new Future.value('${id.name}-${id.version}');
- }
+ String getDirectory(PackageId id) => '${id.name}-${id.version}';
Future<List<Pubspec>> getVersions(String name, String description) {
return new Future.sync(() {
« no previous file with comments | « test/pubspec_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698