Searched refs:REMOTE_PATH (Results 1 – 2 of 2) sorted by relevance
/tools/tradefederation/core/javatests/com/android/tradefed/build/ |
D | FileDownloadCacheTest.java | 60 private static final String REMOTE_PATH = "foo/path"; field in FileDownloadCacheTest 114 assertFetchRemoteFile(REMOTE_PATH, null, destFile); in testFetchRemoteFile_destFile() 180 assertNotNull(mCache.getCachedFile(REMOTE_PATH)); in testFetchRemoteFile_cacheSizeExceeded() 193 .downloadFile(eq(REMOTE_PATH), any(File.class)); in testFetchRemoteFile_downloadFailed() 196 mCache.fetchRemoteFile(mMockDownloader, REMOTE_PATH); in testFetchRemoteFile_downloadFailed() 201 assertNull(mCache.getCachedFile(REMOTE_PATH)); in testFetchRemoteFile_downloadFailed() 212 .downloadFile(eq(REMOTE_PATH), any(File.class)); in testFetchRemoteFile_downloadFailed_Runtime() 215 mCache.fetchRemoteFile(mMockDownloader, REMOTE_PATH); in testFetchRemoteFile_downloadFailed_Runtime() 220 assertNull(mCache.getCachedFile(REMOTE_PATH)); in testFetchRemoteFile_downloadFailed_Runtime() 230 setDownloadExpectations(REMOTE_PATH); in testFetchRemoteFile_cacheMissing() [all …]
|
D | FileDownloadCacheFuncTest.java | 54 private static final String REMOTE_PATH = "path"; field in FileDownloadCacheFuncTest 98 .downloadFile(Mockito.eq(REMOTE_PATH), Mockito.<File>any()); in testFetchRemoteFile_concurrent() 99 when(mMockDownloader.isFresh(Mockito.any(), Mockito.eq(REMOTE_PATH))).thenReturn(true); in testFetchRemoteFile_concurrent() 101 Thread downloadThread1 = createDownloadThread(mMockDownloader, REMOTE_PATH); in testFetchRemoteFile_concurrent() 103 Thread downloadThread2 = createDownloadThread(mMockDownloader, REMOTE_PATH); in testFetchRemoteFile_concurrent() 109 assertNotNull(mCache.getCachedFile(REMOTE_PATH)); in testFetchRemoteFile_concurrent() 120 inOrder.verify(mMockDownloader).downloadFile(Mockito.eq(REMOTE_PATH), Mockito.<File>any()); in testFetchRemoteFile_concurrent() 230 .downloadFile(Mockito.eq(REMOTE_PATH), Mockito.<File>any()); in testFetchRemoteFile_concurrentFail() 231 when(mMockDownloader.isFresh(Mockito.any(), Mockito.eq(REMOTE_PATH))).thenReturn(true); in testFetchRemoteFile_concurrentFail() 233 Thread downloadThread1 = createDownloadThread(mMockDownloader, REMOTE_PATH); in testFetchRemoteFile_concurrentFail() [all …]
|