Home
last modified time | relevance | path

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

/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/openers/
DWriteByteArrayOpenerTest.java20 …gle.android.libraries.mobiledatadownload.file.common.testing.StreamUtils.readFileInBytesFromSource;
78 assertThat(readFileInBytesFromSource(storage.open(uri, ReadStreamOpener.create()))) in directFile_writesArray()
88 assertThat(readFileInBytesFromSource(storage.open(uri, ReadStreamOpener.create()))) in directFile_writesArrayThatExceedsOsBufferSize()
98 assertThat(readFileInBytesFromSource(storage.open(uri, ReadStreamOpener.create()))) in withMonitor_writesArray()
108 assertThat(readFileInBytesFromSource(storage.open(uri, ReadStreamOpener.create()))) in withTransform_producesArray()
121 assertThat(readFileInBytesFromSource(storage.open(uri, ReadStreamOpener.create()))) in withMockBackend_producesArray()
DRandomAccessFileOpenerAndroidTest.java57 assertThat(StreamUtils.readFileInBytesFromSource(new FileInputStream(file.getFD()))) in succeedsWithSimplePath()
DAssetFileDescriptorOpenerAndroidTest.java89 assertThat(StreamUtils.readFileInBytesFromSource(in)).isEqualTo(content); in openAssetFileDescriptor_withMonitor_shouldReadFile()
DParcelFileDescriptorOpenerAndroidTest.java94 assertThat(StreamUtils.readFileInBytesFromSource(in)).isEqualTo(content); in openParcelFileDescriptor_withMonitor_shouldReadFile()
DReadFileOpenerAndroidTest.java231 assertThat(StreamUtils.readFileInBytesFromSource(new FileInputStream(file))).isEqualTo(content); in shortCircuit_succeedsWithMonitors()
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/common/testing/
DBackendTestBase.java22 …gle.android.libraries.mobiledatadownload.file.common.testing.StreamUtils.readFileInBytesFromSource;
182 assertThat(readFileInBytesFromSource(new FileInputStream(file))).isEqualTo(TEST_CONTENT); in openForRead_returnsFileConvertible()
535 assertThat(readFileInBytesFromSource(new FileInputStream(file))).isEqualTo(TEST_CONTENT); in toFile_converts()
DStreamUtils.java105 public static byte[] readFileInBytesFromSource(InputStream source) throws IOException { in readFileInBytesFromSource() method in StreamUtils