Home
last modified time | relevance | path

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

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DLiteralByteStringTest.java57 protected byte[] referenceBytes; field in LiteralByteStringTest
64 referenceBytes = ByteStringTest.getTestBytes(1234, 11337766L); in setUp()
65 stringUnderTest = ByteString.copyFrom(referenceBytes); in setUp()
77 for (int i = 0; stillEqual && i < referenceBytes.length; ++i) { in testByteAt()
78 stillEqual = (referenceBytes[i] == stringUnderTest.byteAt(i)); in testByteAt()
86 for (int i = 0; stillEqual && i < referenceBytes.length; ++i) { in testByteIterator()
87 stillEqual = (iter.hasNext() && referenceBytes[i] == iter.nextByte()); in testByteIterator()
104 stillEqual = (referenceBytes[j] == quantum); in testByteIterable()
108 assertEquals(classUnderTest + " iterable character count", referenceBytes.length, j); in testByteIterable()
112 assertEquals(classUnderTest + " must have the expected size", referenceBytes.length, in testSize()
[all …]
DByteStringTest.java497 byte[] referenceBytes = getTestBytes(77748, 113344L); in testCompositeSubstring()
499 List<ByteString> pieces = makeConcretePieces(referenceBytes); in testCompositeSubstring()
508 stillEqual = referenceBytes[from + i] == substringBytes[i]; in testCompositeSubstring()
514 stillEqual = referenceBytes[from + i] == compositeSubstring.byteAt(i); in testCompositeSubstring()
518 ByteString literalSubstring = ByteString.copyFrom(referenceBytes, from, to - from); in testCompositeSubstring()
532 byte[] referenceBytes = getTestBytes(77748, 113344L); in testCopyFromList()
533 ByteString literalString = ByteString.copyFrom(referenceBytes); in testCopyFromList()
535 List<ByteString> pieces = makeConcretePieces(referenceBytes); in testCopyFromList()
545 byte[] referenceBytes = getTestBytes(77748, 113344L); in testConcat()
546 ByteString literalString = ByteString.copyFrom(referenceBytes); in testConcat()
[all …]
DBoundedByteStringTest.java52 referenceBytes = new byte[to - from]; in setUp()
53 System.arraycopy(sourceBytes, from, referenceBytes, 0, to - from); in setUp()
DRopeByteStringSubstringTest.java58 referenceBytes = new byte[to - from]; in setUp()
59 System.arraycopy(sourceBytes, from, referenceBytes, 0, to - from); in setUp()
DRopeByteStringTest.java52 referenceBytes = ByteStringTest.getTestBytes(22341, 22337766L); in setUp()
53 Iterator<ByteString> iter = ByteStringTest.makeConcretePieces(referenceBytes).iterator(); in setUp()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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()