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

Unified Diff: utils/tests/pub/test_pub.dart

Issue 10214006: Refactor command code and add support for --help and --version. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 8 years, 8 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 | « utils/tests/pub/pub_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/test_pub.dart
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart
index 73dbd111f1e6932f38891d8218c71840612e03d8..a56ae6fd74b2c3ef6003c9b0aca2c53f9315188a 100644
--- a/utils/tests/pub/test_pub.dart
+++ b/utils/tests/pub/test_pub.dart
@@ -87,7 +87,7 @@ void testPub(String description, [List<Descriptor> cache, Descriptor app,
}
Future<Directory> _setUpSandbox() {
- return createTempDir('pub-test-sandbox-');
+ return cleanDir('pub-test-sandbox');
}
Future _setUpCache(Directory sandboxDir, List<Descriptor> cache) {
@@ -192,11 +192,11 @@ class Descriptor {
abstract Future create(String dir);
/**
- * Validates that this descriptor correctly matches the actual file system
- * entry at [path]. Returns a [Future] that completes when the validation is
- * done.
+ * Validates that this descriptor correctly matches the corresponding file
+ * system entry within [dir]. Returns a [Future] that completes when the
+ * validation is done.
*/
- abstract Future<bool> validate(String path);
+ abstract Future<bool> validate(String dir);
}
/**
« no previous file with comments | « utils/tests/pub/pub_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698