Searched refs:cacheDir (Results 1 – 2 of 2) sorted by relevance
40 private File cacheDir; field in HttpResponseCacheTest46 cacheDir = new File(tmp, "HttpCache-" + UUID.randomUUID()); in setUp()47 cacheDir.mkdirs(); in setUp()49 FileUtils.setPermissions(cacheDir.getPath(), 0777); in setUp()59 HttpResponseCache installed = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testInstall()66 HttpResponseCache first = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testSecondEquivalentInstallDoesNothing()67 HttpResponseCache another = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testSecondEquivalentInstallDoesNothing()72 HttpResponseCache first = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testInstallClosesPreviouslyInstalled()75 HttpResponseCache another = HttpResponseCache.install(cacheDir, 8 * 1024 * 1024); in testInstallClosesPreviouslyInstalled()100 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testCloseCloses()[all …]
71 File cacheDir = getInstrumentation().getTargetContext().getCacheDir(); in testRunStarted() local72 System.setProperty("java.io.tmpdir", cacheDir.getAbsolutePath()); in testRunStarted()