Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/time/tck/java/time/
DAbstractTCKTest.java112 …protected static void assertSerializedBySer(Object object, byte[] expectedBytes, byte[]... matches… in assertSerializedBySer() argument
135 if (expectedBytes.length < 256) { in assertSerializedBySer()
137 … assertEquals(dis.readUnsignedByte(), expectedBytes.length, "blockdata length incorrect"); in assertSerializedBySer()
140 assertEquals(dis.readInt(), expectedBytes.length, "blockdatalong length incorrect"); in assertSerializedBySer()
142 byte[] input = new byte[expectedBytes.length]; in assertSerializedBySer()
144 assertEquals(input, expectedBytes); in assertSerializedBySer()
/libcore/support/src/test/java/org/apache/harmony/testframework/
DSinkTester.java192 byte[] expectedBytes = { 5, 6 }; in sinkTestWriteAfterClose()
195 out.write(expectedBytes); in sinkTestWriteAfterClose()
204 assertArrayEquals(expectedBytes, getBytes()); in sinkTestWriteAfterClose()
/libcore/luni/src/test/java/libcore/java/util/zip/
DInflaterTest.java43 byte[] expectedBytes = expected.getBytes("UTF-8"); in assertRoundTrip()
46 byte[] deflatedBytes = deflate(expectedBytes, dictionary); in assertRoundTrip()
70 while (inflatedBytes.size() != expectedBytes.length) { in assertRoundTrip()
/libcore/luni/src/test/java/libcore/libcore/io/
DMemoryMappedFileTest.java538 byte[] expectedBytes = new byte[byteCount + 2]; in assertReadByteArraySucceeds()
539 expectedBytes[0] = Byte.MAX_VALUE; in assertReadByteArraySucceeds()
540 expectedBytes[byteCount - 1] = Byte.MIN_VALUE; in assertReadByteArraySucceeds()
541 System.arraycopy(underlyingData, posBefore, expectedBytes, 1, byteCount); in assertReadByteArraySucceeds()
546 dst[0] = expectedBytes[0]; in assertReadByteArraySucceeds()
547 dst[byteCount - 1] = expectedBytes[byteCount - 1]; in assertReadByteArraySucceeds()
551 assertArrayEquals(expectedBytes, dst); in assertReadByteArraySucceeds()
/libcore/luni/src/test/java/libcore/java/util/
DBase64Test.java429 byte[] expectedBytes = expectedString.getBytes(US_ASCII); in testDecoder_decodeByteBuffer()
434 checkDecoder_decodeByteBuffer(decoder, inputBuffer, expectedBytes); in testDecoder_decodeByteBuffer()
439 checkDecoder_decodeByteBuffer(decoder, inputBuffer, expectedBytes); in testDecoder_decodeByteBuffer()
443 Decoder decoder, ByteBuffer inputBuffer, byte[] expectedBytes) { in checkDecoder_decodeByteBuffer() argument
454 assertEquals(expectedBytes.length, decodedBuffer.remaining()); in checkDecoder_decodeByteBuffer()
455 assertEquals(expectedBytes.length, decodedBuffer.limit()); in checkDecoder_decodeByteBuffer()
681 byte[] expectedBytes = expectedString.getBytes(US_ASCII); in testEncoder_encodeByteBuffer()
686 testEncoder_encodeByteBuffer(encoder, inputBuffer, expectedBytes); in testEncoder_encodeByteBuffer()
691 testEncoder_encodeByteBuffer(encoder, inputBuffer, expectedBytes); in testEncoder_encodeByteBuffer()
695 Encoder encoder, ByteBuffer inputBuffer, byte[] expectedBytes) { in testEncoder_encodeByteBuffer() argument
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DDeflaterTest.java1137 byte[] expectedBytes = { 120, -100, 3, 0, 0, 0, 0, 1 }; in test_deflate_beforeSetInput()
1138 for (int i = 0; i < expectedBytes.length; i++) { in test_deflate_beforeSetInput()
1139 assertEquals(expectedBytes[i], buffer[i]); in test_deflate_beforeSetInput()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DFileChannelTest.java2694 byte[] expectedBytes = new byte[OFFSET + LENGTH]; in test_transferFromLReadableByteChannelJJ_Pipe()
2695 System.arraycopy(CONTENT_AS_BYTES, 0, expectedBytes, 0, OFFSET); in test_transferFromLReadableByteChannelJJ_Pipe()
2696 System.arraycopy(CONTENT_AS_BYTES, 0, expectedBytes, OFFSET, LENGTH); in test_transferFromLReadableByteChannelJJ_Pipe()
2698 assertTrue(Arrays.equals(expectedBytes, resultBytes)); in test_transferFromLReadableByteChannelJJ_Pipe()