Home
last modified time | relevance | path

Searched refs:referenceBytes (Results 1 - 12 of 12) sorted by relevance

/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
H A 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 in testSize()
[all...]
H A 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()
577 makeConcretePieces(byte[] referenceBytes) makeConcretePieces() argument
[all...]
H A DBoundedByteStringTest.java52 referenceBytes = new byte[to - from]; in setUp()
53 System.arraycopy(sourceBytes, from, referenceBytes, 0, to - from); in setUp()
H A DRopeByteStringSubstringTest.java58 referenceBytes = new byte[to - from]; in setUp()
59 System.arraycopy(sourceBytes, from, referenceBytes, 0, to - from); in setUp()
H A DRopeByteStringTest.java52 referenceBytes = ByteStringTest.getTestBytes(22341, 22337766L); in setUp()
53 Iterator<ByteString> iter = ByteStringTest.makeConcretePieces(referenceBytes).iterator(); in setUp()
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
H A DLiteralByteStringTest.java61 protected byte[] referenceBytes; field in LiteralByteStringTest
68 referenceBytes = ByteStringTest.getTestBytes(1234, 11337766L); in setUp()
69 stringUnderTest = ByteString.copyFrom(referenceBytes); in setUp()
84 for (int i = 0; stillEqual && i < referenceBytes.length; ++i) { in testByteAt()
85 stillEqual = (referenceBytes[i] == stringUnderTest.byteAt(i)); in testByteAt()
93 for (int i = 0; stillEqual && i < referenceBytes.length; ++i) { in testByteIterator()
94 stillEqual = (iter.hasNext() && referenceBytes[i] == iter.nextByte()); in testByteIterator()
111 stillEqual = (referenceBytes[j] == quantum); in testByteIterable()
115 assertEquals(classUnderTest + " iterable character count", referenceBytes.length, j); in testByteIterable()
121 referenceBytes in testSize()
[all...]
H A DByteStringTest.java91 byte[] referenceBytes = getTestBytes(); in testCompare_equalByteStrings_compareEqual()
92 ByteString string1 = ByteString.copyFrom(referenceBytes); in testCompare_equalByteStrings_compareEqual()
93 ByteString string2 = ByteString.copyFrom(referenceBytes); in testCompare_equalByteStrings_compareEqual()
650 byte[] referenceBytes = getTestBytes(77748, 113344L); in testCompositeSubstring()
652 List<ByteString> pieces = makeConcretePieces(referenceBytes); in testCompositeSubstring()
661 stillEqual = referenceBytes[from + i] == substringBytes[i]; in testCompositeSubstring()
667 stillEqual = referenceBytes[from + i] == compositeSubstring.byteAt(i); in testCompositeSubstring()
671 ByteString literalSubstring = ByteString.copyFrom(referenceBytes, from, to - from); in testCompositeSubstring()
692 byte[] referenceBytes = getTestBytes(77748, 113344L); in testCopyFromList()
693 ByteString literalString = ByteString.copyFrom(referenceBytes); in testCopyFromList()
815 makeConcretePieces(byte[] referenceBytes) makeConcretePieces() argument
[all...]
H A DBoundedByteStringTest.java56 referenceBytes = new byte[to - from]; in setUp()
57 System.arraycopy(sourceBytes, from, referenceBytes, 0, to - from); in setUp()
H A DRopeByteStringSubstringTest.java57 referenceBytes = new byte[to - from]; in setUp()
58 System.arraycopy(sourceBytes, from, referenceBytes, 0, to - from); in setUp()
H A DRopeByteStringTest.java56 referenceBytes = ByteStringTest.getTestBytes(22341, 22337766L); in setUp()
57 Iterator<ByteString> iter = ByteStringTest.makeConcretePieces(referenceBytes).iterator(); in setUp()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/
H A DvktSpvAsmTrinaryMinMaxTests.cpp382 char* referenceBytes = reinterpret_cast<char*>(referenceBuffer); in compareResults() local
387 char *refCompBytes = referenceBytes; in compareResults()
397 referenceBytes += m_operandSize; in compareResults()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/spirv_assembly/
H A DvktSpvAsmTrinaryMinMaxTests.cpp382 char* referenceBytes = reinterpret_cast<char*>(referenceBuffer); in compareResults() local
387 char *refCompBytes = referenceBytes; in compareResults()
397 referenceBytes += m_operandSize; in compareResults()

Completed in 11 milliseconds