Searched refs:assertByteBufferEquals (Results 1 – 4 of 4) sorted by relevance
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/ber/ |
D | BerDataValueTest.java | 19 import static com.android.apksig.internal.test.MoreAsserts.assertByteBufferEquals; 71 assertByteBufferEquals(HexEncoding.decode("aa"), TEST_VALUE1.getEncoded()); in testGetEncoded() 72 assertByteBufferEquals(HexEncoding.decode("cc"), TEST_VALUE2.getEncoded()); in testGetEncoded() 80 assertByteBufferEquals(HexEncoding.decode("aa"), encoded); in testGetEncodedReturnsSlice() 82 assertByteBufferEquals(HexEncoding.decode("aa"), TEST_VALUE1.getEncoded()); in testGetEncodedReturnsSlice() 87 assertByteBufferEquals(HexEncoding.decode("bb"), TEST_VALUE1.getEncodedContents()); in testGetEncodedContents() 88 assertByteBufferEquals(HexEncoding.decode("dd"), TEST_VALUE2.getEncodedContents()); in testGetEncodedContents() 96 assertByteBufferEquals(HexEncoding.decode("bb"), encoded); in testGetEncodedContentsReturnsSlice() 98 assertByteBufferEquals(HexEncoding.decode("bb"), TEST_VALUE1.getEncodedContents()); in testGetEncodedContentsReturnsSlice() 120 assertByteBufferEquals(HexEncoding.decode("30020304"), reader.readDataValue().getEncoded()); in testContentsReader() [all …]
|
D | BerDataValueReaderTestBase.java | 19 import static com.android.apksig.internal.test.MoreAsserts.assertByteBufferEquals; 114 assertByteBufferEquals(new byte[0], readDataValue("3000").getEncodedContents()); in testShortFormLength() 115 assertByteBufferEquals( in testShortFormLength() 121 assertByteBufferEquals(new byte[0], readDataValue("308100").getEncodedContents()); in testLongFormLength() 122 assertByteBufferEquals( in testLongFormLength() 151 assertByteBufferEquals(new byte[0], readDataValue("30800000").getEncodedContents()); in testIndefiniteFormLength() 152 assertByteBufferEquals( in testIndefiniteFormLength() 154 assertByteBufferEquals( in testIndefiniteFormLength() 218 assertByteBufferEquals(new byte[0], readDataValue("3000").getEncodedContents()); in testEmptyDefiniteLengthContents() 223 assertByteBufferEquals(new byte[0], readDataValue("30800000").getEncodedContents()); in testEmptyIndefiniteLengthContents() [all …]
|
/tools/apksig/src/test/java/com/android/apksig/internal/test/ |
D | MoreAsserts.java | 30 public static void assertByteBufferEquals(byte[] expected, ByteBuffer actual) { in assertByteBufferEquals() method in MoreAsserts 31 assertByteBufferEquals(null, expected, actual); in assertByteBufferEquals() 38 public static void assertByteBufferEquals(String message, byte[] expected, ByteBuffer actual) { in assertByteBufferEquals() method in MoreAsserts
|
/tools/apksig/src/test/java/com/android/apksig/internal/util/ |
D | ChainedDataSourceTest.java | 56 assertByteBufferEquals( in feedAllPossibleRanges() 73 assertByteBufferEquals( in getByteBufferFromAllPossibleRanges() 95 assertByteBufferEquals( in copyTo() 109 assertByteBufferEquals( in slice() 116 private void assertByteBufferEquals(ByteBuffer buffer, ByteBuffer buffer2) { in assertByteBufferEquals() method in ChainedDataSourceTest
|