Searched refs:mungedBytes (Results 1 – 2 of 2) sorted by relevance
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/ |
D | NioByteStringTest.java | 468 byte[] mungedBytes = mungedBytes(); in testEquals() 470 testString.equals(new NioByteString(ByteBuffer.wrap(mungedBytes)))); in testEquals() 484 literal = ByteString.copyFrom(mungedBytes()); in testEqualsLiteralByteString() 505 byte[] mungedBytes = mungedBytes(); in testEqualsRopeByteString() 506 p1 = ByteString.copyFrom(mungedBytes, 0, 5); in testEqualsRopeByteString() 507 p2 = ByteString.copyFrom(mungedBytes, 5, mungedBytes.length - 5); in testEqualsRopeByteString() 515 private byte[] mungedBytes() { in mungedBytes() method in NioByteStringTest 516 byte[] mungedBytes = new byte[BYTES.length]; in mungedBytes() 517 System.arraycopy(BYTES, 0, mungedBytes, 0, BYTES.length); in mungedBytes() 518 mungedBytes[mungedBytes.length - 5] = (byte) (mungedBytes[mungedBytes.length - 5] ^ 0xFF); in mungedBytes() [all …]
|
D | LiteralByteStringTest.java | 445 byte[] mungedBytes = new byte[referenceBytes.length]; in testEquals() 446 System.arraycopy(referenceBytes, 0, mungedBytes, 0, referenceBytes.length); in testEquals() 447 mungedBytes[mungedBytes.length - 5] = (byte) (mungedBytes[mungedBytes.length - 5] ^ 0xFF); in testEquals() 449 stringUnderTest.equals(ByteString.wrap(mungedBytes))); in testEquals()
|