Searched refs:isFresh (Results 1 – 7 of 7) sorted by relevance
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | GCSFileDownloaderFuncTest.java | 381 Assert.assertTrue(mDownloader.isFresh(localFile, remotePath)); in testCheckFreshness() 387 Assert.assertFalse(mDownloader.isFresh(new File("/not/exist"), remotePath)); in testCheckFreshness_notExist() 393 Assert.assertFalse(mDownloader.isFresh(new File("/not/exist"), remotePath)); in testCheckFreshness_folderNotExist() 401 Assert.assertFalse(mDownloader.isFresh(localFile, remoteNotExistPath)); in testCheckFreshness_remoteNotExist() 409 Assert.assertFalse(mDownloader.isFresh(localFolder, remoteNotExistPath)); in testCheckFreshness_remoteFolderNotExist() 419 Assert.assertFalse(mDownloader.isFresh(localFile, remotePath)); in testCheckFreshness_notFresh() 426 Assert.assertTrue(mDownloader.isFresh(localFolder, remotePath)); in testCheckFreshness_folder() 442 Assert.assertFalse(mDownloader.isFresh(localFolder, remotePath)); in testCheckFreshness_folder_addFile() 453 Assert.assertFalse(mDownloader.isFresh(localFolder, remotePath)); in testCheckFreshness_folder_removeFile() 462 Assert.assertFalse(mDownloader.isFresh(localFolder, remotePath)); in testCheckFreshness_folder_changeFile()
|
/tools/tradefederation/core/src/com/android/tradefed/build/ |
D | FileDownloadCacheWrapper.java | 54 public boolean isFresh(File localFile, String remoteFilePath) throws BuildRetrievalError { in isFresh() method in FileDownloadCacheWrapper 55 return mDelegateDownloader.isFresh(localFile, remoteFilePath); in isFresh()
|
D | IFileDownloader.java | 76 public default boolean isFresh(File localFile, String remoteFilePath) in isFresh() method
|
D | FileDownloadCache.java | 362 || !downloader.isFresh(cachedFile, remotePath))) { in internalfetchRemoteFile()
|
/tools/tradefederation/core/javatests/com/android/tradefed/build/ |
D | FileDownloadCacheFuncTest.java | 99 when(mMockDownloader.isFresh(Mockito.any(), Mockito.eq(REMOTE_PATH))).thenReturn(true); in testFetchRemoteFile_concurrent() 231 when(mMockDownloader.isFresh(Mockito.any(), Mockito.eq(REMOTE_PATH))).thenReturn(true); in testFetchRemoteFile_concurrentFail()
|
D | FileDownloadCacheTest.java | 446 when(mMockDownloader.isFresh(Mockito.<File>any(), Mockito.<String>any())) in setFreshnessExpectations()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | GCSFileDownloader.java | 226 public boolean isFresh(File localFile, String remotePath) throws BuildRetrievalError { in isFresh() method in GCSFileDownloader
|