Chromium Code Reviews| 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); |
|
danrubel
2013/09/23 18:44:02
Will this hardcoded absolute path work on other m
keertip
2013/09/24 15:54:14
Yes, have hardcoded the pub cache list for the tes
|
| + location = manager.getCacheLocation("args", "0.5.20"); |
| + assertNull(location); |
| + } |
| + |
| public void test_getLocalPackages() { |
| Map<String, Object> p = manager.getLocalPackages(); |
| assertNotNull(p); |