Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/io/
DByteStreamsTest.java45 byte[] expected = newPreFilledByteArray(100); in testCopyChannel()
106 assertEquals(newPreFilledByteArray(10), b); in testReadFully()
114 byte[] bytes = newPreFilledByteArray(100); in testSkipFully()
437 return new ByteArrayInputStream(newPreFilledByteArray(n)); in newTestStream()
455 final byte[] array = newPreFilledByteArray(1000); in testReadBytes()
477 byte[] array = newPreFilledByteArray(6000); in testByteProcessorStopEarly()
485 newPreFilledByteArray(4096)); in testByteProcessorStopEarly()
509 byte[] big = newPreFilledByteArray(5); in testLimit()
540 byte[] big = newPreFilledByteArray(5); in testLimit_mark()
561 byte[] big = newPreFilledByteArray(5); in testLimit_skip()
[all …]
DFileBackedOutputStreamTest.java45 byte[] data = newPreFilledByteArray(100); in testFinalizeDeletesFile()
79 byte[] data = newPreFilledByteArray(dataSize); in testThreshold()
128 byte[] data = newPreFilledByteArray(100); in testWriteErrorAfterClose()
149 byte[] data = newPreFilledByteArray(100); in testReset()
DIoTestCase.java148 static byte[] newPreFilledByteArray(int size) { in newPreFilledByteArray() method in IoTestCase
149 return newPreFilledByteArray(0, size); in newPreFilledByteArray()
155 static byte[] newPreFilledByteArray(int offset, int size) { in newPreFilledByteArray() method in IoTestCase
DMultiInputStreamTest.java100 return new ByteArrayInputStream(newPreFilledByteArray(0, 50)) { in testSkip()
118 return new ByteArrayInputStream(newPreFilledByteArray(start, size)); in newByteSource()
DByteSourceTest.java61 private static final byte[] bytes = newPreFilledByteArray(10000);
181 ByteSource fewerBytes = new TestByteSource(newPreFilledByteArray(bytes.length / 2)); in testContentEquals()
230 byte[] expected = newPreFilledByteArray(offset, expectRead); in assertCorrectSlice()
232 ByteSource source = new TestByteSource(newPreFilledByteArray(input)); in assertCorrectSlice()
DByteSinkTest.java37 private final byte[] bytes = newPreFilledByteArray(10000);
DFilesTest.java197 byte[] data = newPreFilledByteArray(2000); in testWriteBytes()
618 byte[] bytes = newPreFilledByteArray(size); in testMap()
650 byte[] bytes = newPreFilledByteArray(1024); in testMap_readWrite()
671 byte[] expectedBytes = newPreFilledByteArray(1024); in testMap_readWrite_creates()