Searched refs:readFileInBytesFromSource (Results 1 – 7 of 7) sorted by relevance
20 …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()
57 assertThat(StreamUtils.readFileInBytesFromSource(new FileInputStream(file.getFD()))) in succeedsWithSimplePath()
89 assertThat(StreamUtils.readFileInBytesFromSource(in)).isEqualTo(content); in openAssetFileDescriptor_withMonitor_shouldReadFile()
94 assertThat(StreamUtils.readFileInBytesFromSource(in)).isEqualTo(content); in openParcelFileDescriptor_withMonitor_shouldReadFile()
231 assertThat(StreamUtils.readFileInBytesFromSource(new FileInputStream(file))).isEqualTo(content); in shortCircuit_succeedsWithMonitors()
22 …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()
105 public static byte[] readFileInBytesFromSource(InputStream source) throws IOException { in readFileInBytesFromSource() method in StreamUtils