Home
last modified time | relevance | path

Searched refs:isFresh (Results 1 – 7 of 7) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DGCSFileDownloaderFuncTest.java279 Assert.assertTrue(mDownloader.isFresh(localFile, remotePath)); in testCheckFreshness()
285 Assert.assertFalse(mDownloader.isFresh(new File("/not/exist"), remotePath)); in testCheckFreshness_notExist()
291 Assert.assertFalse(mDownloader.isFresh(new File("/not/exist"), remotePath)); in testCheckFreshness_folderNotExist()
299 Assert.assertFalse(mDownloader.isFresh(localFile, remoteNotExistPath)); in testCheckFreshness_remoteNotExist()
307 Assert.assertFalse(mDownloader.isFresh(localFolder, remoteNotExistPath)); in testCheckFreshness_remoteFolderNotExist()
316 Assert.assertFalse(mDownloader.isFresh(localFile, remotePath)); in testCheckFreshness_notFresh()
323 Assert.assertTrue(mDownloader.isFresh(localFolder, remotePath)); in testCheckFreshness_folder()
338 Assert.assertFalse(mDownloader.isFresh(localFolder, remotePath)); in testCheckFreshness_folder_addFile()
348 Assert.assertFalse(mDownloader.isFresh(localFolder, remotePath)); in testCheckFreshness_folder_removeFile()
356 Assert.assertFalse(mDownloader.isFresh(localFolder, remotePath)); in testCheckFreshness_folder_changeFile()
/tools/tradefederation/core/src/com/android/tradefed/build/
DFileDownloadCacheWrapper.java54 public boolean isFresh(File localFile, String remoteFilePath) throws BuildRetrievalError { in isFresh() method in FileDownloadCacheWrapper
55 return mDelegateDownloader.isFresh(localFile, remoteFilePath); in isFresh()
DIFileDownloader.java76 public default boolean isFresh(File localFile, String remoteFilePath) in isFresh() method
DFileDownloadCache.java355 || !downloader.isFresh(cachedFile, remotePath))) { in internalfetchRemoteFile()
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DFileDownloadCacheFuncTest.java96 EasyMock.expect(mMockDownloader.isFresh(EasyMock.anyObject(), EasyMock.eq(REMOTE_PATH))) in testFetchRemoteFile_concurrent()
229 EasyMock.expect(mMockDownloader.isFresh(EasyMock.anyObject(), EasyMock.eq(REMOTE_PATH))) in testFetchRemoteFile_concurrentFail()
DFileDownloadCacheTest.java430 mMockDownloader.isFresh( in setFreshnessExpections()
/tools/tradefederation/core/src/com/android/tradefed/util/
DGCSFileDownloader.java147 public boolean isFresh(File localFile, String remotePath) throws BuildRetrievalError { in isFresh() method in GCSFileDownloader