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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/pub/PubCacheManagerTest.java

Issue 24235011: add a view for users to explore pub packages (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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
Index: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/pub/PubCacheManagerTest.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/pub/PubCacheManagerTest.java (revision 27769)
+++ editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/pub/PubCacheManagerTest.java (working copy)
@@ -76,6 +76,21 @@
private MockWorkspaceRoot rootContainer;
+ public void test_getAllCachePackages() {
+ Map<String, Object> p = manager.getAllCachePackages();
+ assertNotNull(p);
+ assertTrue(p.isEmpty());
+ }
+
+ public void test_getCacheLocation() {
+ manager.updatePackagesList(0);
+ String location = manager.getCacheLocation("browser", "0.5.20");
+ assertNotNull(location);
+ assertEquals("/Users/keertip/.pub-cache/hosted/pub.dartlang.org/browser-0.5.20", location);
+ location = manager.getCacheLocation("args", "0.5.20");
+ assertNull(location);
+ }
+
public void test_getLocalPackages() {
Map<String, Object> p = manager.getLocalPackages();
assertNotNull(p);

Powered by Google App Engine
This is Rietveld 408576698