Home
last modified time | relevance | path

Searched refs:stringUnderTest (Results 1 – 4 of 4) sorted by relevance

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DLiteralByteStringTest.java61 protected ByteString stringUnderTest; field in LiteralByteStringTest
68 stringUnderTest = ByteString.copyFrom(referenceBytes); in setUp()
73 String actualClassName = getActualClassName(stringUnderTest); in testExpectedType()
84 stillEqual = (referenceBytes[i] == stringUnderTest.byteAt(i)); in testByteAt()
91 ByteString.ByteIterator iter = stringUnderTest.iterator(); in testByteIterator()
109 for (byte quantum : stringUnderTest) { in testByteIterable()
119 stringUnderTest.size()); in testSize()
123 assertEquals(classUnderTest + " must have depth 0", 0, stringUnderTest.getTreeDepth()); in testGetTreeDepth()
127 assertTrue(classUnderTest + " is technically balanced", stringUnderTest.isBalanced()); in testIsBalanced()
135 stringUnderTest.copyTo(destination, sourceOffset, destinationOffset, length); in testCopyTo_ByteArrayOffsetLength()
[all …]
DRopeByteStringTest.java58 stringUnderTest = iter.next(); in setUp()
60 stringUnderTest = stringUnderTest.concat(iter.next()); in setUp()
68 4, stringUnderTest.getTreeDepth()); in testGetTreeDepth()
180 oos.writeObject(stringUnderTest); in testJavaSerialization()
187 assertEquals("Should get an equal ByteString back", stringUnderTest, o); in testJavaSerialization()
DBoundedByteStringTest.java55 stringUnderTest = ByteString.copyFrom(sourceBytes).substring(from, to); in setUp()
91 oos.writeObject(stringUnderTest); in testJavaSerialization()
98 assertEquals("Should get an equal ByteString back", stringUnderTest, o); in testJavaSerialization()
DRopeByteStringSubstringTest.java56 stringUnderTest = sourceString.substring(from, to); in setUp()
65 3, stringUnderTest.getTreeDepth()); in testGetTreeDepth()