Searched refs:inputBytes (Results 1 – 3 of 3) sorted by relevance
/libcore/ojluni/src/test/java/util/zip/ |
D | CloseInflaterDeflaterTest.java | 75 private static byte[] inputBytes = new byte[INPUT_LENGTH]; field in CloseInflaterDeflaterTest 111 rand.nextBytes(inputBytes); in before_test() 123 gzip.write(inputBytes, 0, INPUT_LENGTH); in testGZip() 133 assertThrows(NullPointerException.class , () -> gzip.write(inputBytes, 0, INPUT_LENGTH)); in testGZip() 145 assertThrows(IOException.class , () -> def.write(inputBytes, 0, INPUT_LENGTH)); in testDeflaterOutputStream() 155 assertThrows(NullPointerException.class , () -> def.write(inputBytes, 0, INPUT_LENGTH)); in testDeflaterOutputStream() 166 assertThrows(IOException.class , () -> def.read(inputBytes, 0, INPUT_LENGTH)); in testDeflaterInputStream() 170 assertThrows(IOException.class , () -> def.read(inputBytes, 0, INPUT_LENGTH)); in testDeflaterInputStream() 183 assertThrows(IOException.class , () -> inf.write(inputBytes, 0, INPUT_LENGTH)); in testInflaterOutputStream() 193 assertThrows(IOException.class , () -> inf.write(inputBytes, 0, INPUT_LENGTH)); in testInflaterOutputStream() [all …]
|
/libcore/ojluni/src/test/java/io/InputStream/ |
D | ReadNBytes.java | 66 static void test(byte[] inputBytes) throws IOException { in test() argument 67 int length = inputBytes.length; in test() 68 WrapperInputStream in = new WrapperInputStream(new ByteArrayInputStream(inputBytes)); in test() 76 check(Arrays.equals((tmp = Arrays.copyOf(inputBytes, nread)), readBytes), in test() 85 check(Arrays.equals((tmp = Arrays.copyOfRange(inputBytes, readBytes.length, length)), in test() 101 byte[] inputBytes = max <= 0 ? new byte[0] : createRandomBytes(max); in test() 103 new WrapperInputStream(new ByteArrayInputStream(inputBytes)); in test() 124 check(Arrays.equals(Arrays.copyOfRange(inputBytes, off, off + len), readBytes), in test() 125 "Expected[" + Arrays.copyOfRange(inputBytes, off, off + len) + in test() 132 check(Arrays.equals(Arrays.copyOfRange(inputBytes, off + len, max), in test() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | LibcoreIoDerivedBase64Test.java | 64 byte[] inputBytes = new byte[toEncode.length]; in assertEncodeDecode() 66 inputBytes[i] = (byte) toEncode[i]; in assertEncodeDecode() 68 String encoded = encode(inputBytes); in assertEncodeDecode()
|