Home
last modified time | relevance | path

Searched refs:fileBackend (Results 1 – 4 of 4) sorted by relevance

/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/
DSynchronousFileStorageTest.java75 ImmutableList.of(fileBackend, cnsBackend), in initStorage()
105 return fileBackend; in emptyBackendName_shouldBeSilentlySkipped()
130 verify(fileBackend).deleteFile(file1Uri); in deleteFile_shouldInvokeBackend()
136 verify(fileBackend).deleteDirectory(file1Uri); in deleteDir_shouldInvokeBackend()
142 when(fileBackend.exists(dir1Uri)).thenReturn(true); in deleteRecursively_shouldRecurse()
143 when(fileBackend.isDirectory(dir1Uri)).thenReturn(true); in deleteRecursively_shouldRecurse()
144 when(fileBackend.exists(dir2Uri)).thenReturn(true); in deleteRecursively_shouldRecurse()
145 when(fileBackend.isDirectory(dir2Uri)).thenReturn(true); in deleteRecursively_shouldRecurse()
146 when(fileBackend.exists(file1Uri)).thenReturn(true); in deleteRecursively_shouldRecurse()
147 when(fileBackend.exists(file2Uri)).thenReturn(true); in deleteRecursively_shouldRecurse()
[all …]
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/behaviors/
DUriComputingBehaviorTest.java52 @Mock protected Backend fileBackend; field in UriComputingBehaviorTest
56 when(fileBackend.name()).thenReturn("file"); in initStorage()
59 ImmutableList.of(fileBackend), in initStorage()
72 when(fileBackend.openForRead(any())).thenReturn(EMPTY_INPUT_STREAM); in getComputedUri_read_shouldRetainUnencodedUriAndFragment()
85 when(fileBackend.openForRead(any())).thenReturn(EMPTY_INPUT_STREAM); in getComputedUri_read_withNoTransform_returnsSameUri()
106 when(fileBackend.openForWrite(any())).thenReturn(outputStream); in getComputedUri_write_shouldRetainUnencodedUriAndFragment()
120 when(fileBackend.openForWrite(any())).thenReturn(outputStream); in getComputedUri_write_withNoTransform_returnsSameUri()
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/common/testing/
DFileStorageTestBase.java75 @Mock protected Backend fileBackend; field in FileStorageTestBase
119 when(fileBackend.name()).thenReturn("file"); in initMocksAndCreateFileStorage()
120 when(fileBackend.openForRead(any())).thenReturn(EMPTY_INPUT); in initMocksAndCreateFileStorage()
121 when(fileBackend.openForWrite(any())).thenReturn(NULL_OUTPUT); in initMocksAndCreateFileStorage()
122 when(fileBackend.openForAppend(any())).thenReturn(NULL_OUTPUT); in initMocksAndCreateFileStorage()
133 when(fileBackend.openForNativeRead(any())) in initMocksAndCreateFileStorage()
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/openers/
DNativeReadOpenerTest.java53 @Mock protected Backend fileBackend; field in NativeReadOpenerTest
60 when(fileBackend.name()).thenReturn("file"); in initStorage()
62 when(fileBackend.openForNativeRead(any())) in initStorage()
67 ImmutableList.of(fileBackend), in initStorage()