Home
last modified time | relevance | path

Searched refs:referenceBytes (Results 1 – 5 of 5) sorted by relevance

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DLiteralByteStringTest.java60 protected byte[] referenceBytes; field in LiteralByteStringTest
67 referenceBytes = ByteStringTest.getTestBytes(1234, 11337766L); in setUp()
68 stringUnderTest = ByteString.copyFrom(referenceBytes); in setUp()
83 for (int i = 0; stillEqual && i < referenceBytes.length; ++i) { in testByteAt()
84 stillEqual = (referenceBytes[i] == stringUnderTest.byteAt(i)); in testByteAt()
92 for (int i = 0; stillEqual && i < referenceBytes.length; ++i) { in testByteIterator()
93 stillEqual = (iter.hasNext() && referenceBytes[i] == iter.nextByte()); in testByteIterator()
110 stillEqual = (referenceBytes[j] == quantum); in testByteIterable()
114 assertEquals(classUnderTest + " iterable character count", referenceBytes.length, j); in testByteIterable()
118 assertEquals(classUnderTest + " must have the expected size", referenceBytes.length, in testSize()
[all …]
DByteStringTest.java546 byte[] referenceBytes = getTestBytes(77748, 113344L); in testCompositeSubstring()
548 List<ByteString> pieces = makeConcretePieces(referenceBytes); in testCompositeSubstring()
557 stillEqual = referenceBytes[from + i] == substringBytes[i]; in testCompositeSubstring()
563 stillEqual = referenceBytes[from + i] == compositeSubstring.byteAt(i); in testCompositeSubstring()
567 ByteString literalSubstring = ByteString.copyFrom(referenceBytes, from, to - from); in testCompositeSubstring()
581 byte[] referenceBytes = getTestBytes(77748, 113344L); in testCopyFromList()
582 ByteString literalString = ByteString.copyFrom(referenceBytes); in testCopyFromList()
584 List<ByteString> pieces = makeConcretePieces(referenceBytes); in testCopyFromList()
594 byte[] referenceBytes = getTestBytes(77748, 113344L); in testConcat()
595 ByteString literalString = ByteString.copyFrom(referenceBytes); in testConcat()
[all …]
DBoundedByteStringTest.java56 referenceBytes = new byte[to - from]; in setUp()
57 System.arraycopy(sourceBytes, from, referenceBytes, 0, to - from); in setUp()
DRopeByteStringSubstringTest.java57 referenceBytes = new byte[to - from]; in setUp()
58 System.arraycopy(sourceBytes, from, referenceBytes, 0, to - from); in setUp()
DRopeByteStringTest.java56 referenceBytes = ByteStringTest.getTestBytes(22341, 22337766L); in setUp()
57 Iterator<ByteString> iter = ByteStringTest.makeConcretePieces(referenceBytes).iterator(); in setUp()