/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | WireFormatTest.java | 67 ByteString rawBytes = message.toByteString(); in testSerialization() 78 ByteString rawBytes = message.toByteString(); in testSerializationPacked() 92 ByteString rawBytes = message.toByteString(); in testSerializeExtensions() 104 ByteString rawBytes = message.toByteString(); in testSerializePackedExtensions() 107 ByteString rawBytes2 = message2.toByteString(); in testSerializePackedExtensions() 138 ByteString rawBytes = message.toByteString(); in testParseExtensions() 150 ByteString rawBytes = message.toByteString(); in testParsePackedExtensions() 205 .toByteString(); in testInterleavedFieldsAndExtensions() 217 .toByteString(); in testInterleavedFieldsAndExtensions() 240 TestFieldOrderings.parseFrom(source.toByteString(), getTestFieldOrderingsRegistry()); in testParseMultipleExtensionRanges() [all …]
|
D | ParserTest.java | 72 assertMessageEquals(message, parser.parseFrom(message.toByteString(), registry)); in assertRoundTripEquals() 76 message, parser.parseFrom(message.toByteString().asReadOnlyByteBuffer(), registry)); in assertRoundTripEquals() 90 assertMessageEquals(message, parser.parseFrom(message.toByteString())); in assertRoundTripEquals() 93 assertMessageEquals(message, parser.parseFrom(message.toByteString().asReadOnlyByteBuffer())); in assertRoundTripEquals() 100 assertEquals(expected.toByteString(), actual.toByteString()); in assertMessageEquals() 126 assertEquals(partialMessage, parser.parsePartialFrom(partialMessage.toByteString())); in assertParsePartial() 140 parser.parseFrom(partialMessage.toByteString()); in assertParsePartial() 187 TestEmptyMessage.parser().parseFrom(TestUtil.getAllSet().toByteString()); in testParseUnknownFields() 188 assertEquals(TestUtil.getAllSet().toByteString(), emptyMessage.toByteString()); in testParseUnknownFields() 262 .toByteString(); in testParsingMerge()
|
D | LazyFieldLiteTest.java | 102 assertEquals(message.toByteString(), lazyField.toByteString()); in testGetByteString() 104 assertNotEqual(message.toByteString(), lazyField.toByteString()); in testGetByteString() 110 assertEquals(message.toByteString(), lazyField.toByteString()); in testGetByteStringEx() 112 assertNotEqual(message.toByteString(), lazyField.toByteString()); in testGetByteStringEx() 128 assertEquals(ByteString.EMPTY, field.toByteString()); in testEmptyLazyField() 138 assertEquals(ByteString.EMPTY, field.toByteString()); in testInvalidProto() 230 ByteString bytes = message.toByteString(); in createLazyFieldLiteFromMessage()
|
D | AbstractMessageTest.java | 267 TestUtil.assertAllFieldsSet(TestAllTypes.parseFrom(abstractMessage.toByteString())); in testSerialization() 269 assertEquals(TestUtil.getAllSet().toByteString(), abstractMessage.toByteString()); in testSerialization() 275 AbstractMessageWrapper message = builder.mergeFrom(TestUtil.getAllSet().toByteString()).build(); in testParsing() 282 ByteString bytes = builder.buildPartial().toByteString(); in testParsingUninitialized() 310 TestUtil.assertPackedFieldsSet(TestPackedTypes.parseFrom(abstractMessage.toByteString())); in testPackedSerialization() 312 assertEquals(TestUtil.getPackedSet().toByteString(), abstractMessage.toByteString()); in testPackedSerialization() 319 builder.mergeFrom(TestUtil.getPackedSet().toByteString()).build(); in testPackedParsing() 326 TestUtil.assertUnpackedFieldsSet(TestUnpackedTypes.parseFrom(abstractMessage.toByteString())); in testUnpackedSerialization() 328 assertEquals(TestUtil.getUnpackedSet().toByteString(), abstractMessage.toByteString()); in testUnpackedSerialization() 335 builder.mergeFrom(TestUtil.getPackedSet().toByteString()).build(); in testParsePackedToUnpacked() [all …]
|
D | PackedFieldTest.java | 196 assertEquals(expectedPackedRawBytes, message.toByteString()); in testPackedGeneratedMessage() 202 assertEquals(expectedPackedRawBytes, message.toByteString()); in testPackedDynamicMessageSerialize() 207 assertEquals(expectedUnpackedRawBytes, message.toByteString()); in testUnpackedGeneratedMessage() 213 assertEquals(expectedUnpackedRawBytes, message.toByteString()); in testUnPackedDynamicMessageSerialize()
|
D | WireFormatLiteTest.java | 69 ByteString rawBytes = message.toByteString(); in testSerializeExtensionsLite() 81 ByteString rawBytes = message.toByteString(); in testSerializePackedExtensionsLite() 84 ByteString rawBytes2 = message2.toByteString(); in testSerializePackedExtensionsLite() 95 ByteString rawBytes = message.toByteString(); in testParseExtensionsLite() 108 ByteString rawBytes = message.toByteString(); in testParsePackedExtensionsLite() 121 ByteString rawBytes = message.toByteString(); in testSerialization() 132 ByteString rawBytes = message.toByteString(); in testSerializationPacked() 146 ByteString rawBytes = message.toByteString(); in testSerializeExtensions() 158 ByteString rawBytes = message.toByteString(); in testSerializePackedExtensions() 161 ByteString rawBytes2 = message2.toByteString(); in testSerializePackedExtensions() [all …]
|
D | DiscardUnknownFieldsTest.java | 91 assertEquals(message.getClass().getName(), payload, parsed.toByteString()); in assertReuseCodedInputStreamPreserve() 102 assertEquals(message.getClass().getName(), payload, built.toByteString()); in assertUnknownFieldsInUnknownFieldSetArePreserve() 107 assertEquals(message.getClass().getName(), payload, parsed.toByteString()); in assertUnknownFieldsPreserved() 110 assertEquals(message.getClass().getName(), payload, parsed.toByteString()); in assertUnknownFieldsPreserved() 119 TestUtilLite.getAllLiteSetBuilder().build().toByteString();
|
D | LazyStringEndToEndTest.java | 62 .toByteString(); in setUp() 69 ByteString bytes = tV2.toByteString(); in testParseAndSerialize() 73 bytes = tV2.toByteString(); in testParseAndSerialize() 104 proto.toByteString(); in testCaching()
|
D | DynamicMessageTest.java | 103 newBuilder.mergeFrom(message.toByteString()); in testUnknownFields() 162 ByteString rawBytes = message.toByteString(); in testDynamicMessageSerialization() 168 assertEquals(TestUtil.getAllSet().toByteString(), rawBytes); in testDynamicMessageSerialization() 176 ByteString rawBytes = message.toByteString(); in testDynamicMessageParsing() 187 ByteString rawBytes = TestUtil.getAllExtensionsSet().toByteString(); in testDynamicMessageExtensionParsing() 204 ByteString rawBytes = message.toByteString(); in testDynamicMessagePackedSerialization() 210 assertEquals(TestUtil.getPackedSet().toByteString(), rawBytes); in testDynamicMessagePackedSerialization() 218 ByteString rawBytes = message.toByteString(); in testDynamicMessagePackedParsing()
|
D | ParserLiteTest.java | 53 assertEquals(message, parser.parseFrom(message.toByteString(), registry)); in assertRoundTripEquals() 57 message, parser.parseFrom(message.toByteString().asReadOnlyByteBuffer(), registry)); in assertRoundTripEquals() 71 assertEquals(message, parser.parseFrom(message.toByteString())); in assertRoundTripEquals() 74 assertEquals(message, parser.parseFrom(message.toByteString().asReadOnlyByteBuffer())); in assertRoundTripEquals() 173 .toByteString(); in testParsingMergeLite()
|
D | UnknownFieldSetTest.java | 61 allFieldsData = allFields.toByteString(); in setUp() 91 return bizarroFields.build().toByteString(); in getBizarroData() 304 ByteString data = emptyMessage.toByteString(); in testSerialize() 371 ByteString data = fields.toByteString(); in testParseKnownAndUnknown() 403 assertEquals(allFieldsData, message.toByteString()); in testUnknownExtensions() 444 .toByteString(); in testParseUnknownEnumValue() 483 .toByteString(); in testLargeVarint() 558 assertEquals(data, message.toByteString()); in testProto3RoundTrip() 561 assertEquals(data, message.toByteString()); in testProto3RoundTrip() 574 .toByteString()); in testProto3RoundTrip()
|
D | MapForProto2LiteTest.java | 367 assertEquals(message.getSerializedSize(), message.toByteString().size()); in testSerializeAndParse() 368 message = TestMap.parser().parseFrom(message.toByteString()); in testSerializeAndParse() 374 assertEquals(message.getSerializedSize(), message.toByteString().size()); in testSerializeAndParse() 375 message = TestMap.parser().parseFrom(message.toByteString()); in testSerializeAndParse() 381 assertEquals(message.getSerializedSize(), message.toByteString().size()); in testSerializeAndParse() 382 message = TestMap.parser().parseFrom(message.toByteString()); in testSerializeAndParse() 474 .toByteString(); in testUnknownEnumValues() 482 data = message.toByteString(); in testUnknownEnumValues()
|
D | LazyMessageLiteTest.java | 248 ByteString data1 = outer.toByteString(); in testMergeOneofMessages() 256 ByteString data2 = outer.toByteString(); in testMergeOneofMessages() 268 ByteString bytes = outer.toByteString(); in testSerialize() 287 assertEquals(bytes, deserialized.toByteString()); in testSerialize()
|
D | MapForProto2Test.java | 515 assertEquals(message.getSerializedSize(), message.toByteString().size()); in testSerializeAndParse() 516 message = TestMap.parser().parseFrom(message.toByteString()); in testSerializeAndParse() 522 assertEquals(message.getSerializedSize(), message.toByteString().size()); in testSerializeAndParse() 523 message = TestMap.parser().parseFrom(message.toByteString()); in testSerializeAndParse() 529 assertEquals(message.getSerializedSize(), message.toByteString().size()); in testSerializeAndParse() 530 message = TestMap.parser().parseFrom(message.toByteString()); in testSerializeAndParse() 785 dynamicDefaultInstance.newBuilderForType().mergeFrom(message.toByteString()).build(); in testDynamicMessage() 801 ByteString bytes = message.toByteString(); in testDynamicMessageUnsetKeyAndValue() 805 assertEquals(generatedMessage.toByteString(), bytes); in testDynamicMessageUnsetKeyAndValue() 842 ByteString data = builder.build().toByteString(); in testUnknownEnumValues() [all …]
|
D | ByteStringTest.java | 512 ByteString byteString = output.toByteString(); in testNewOutput_InitialCapacity() 535 ByteString byteString = output.toByteString(); in testNewOutput_ArrayWrite() 556 ByteString byteString = output.toByteString(); in testNewOutput_WriteChar() 590 isArrayRange(output.toByteString().toByteArray(), bytes, 0, position)); in testNewOutput_Mixed() 592 ByteString byteString = output.toByteString(); in testNewOutput_Mixed() 601 ByteString byteString = ByteString.newOutput().toByteString(); in testNewOutputEmpty() 611 ByteString byteString = os.toByteString(); in testNewOutput_Mutating()
|
D | AbstractProto3SchemaTest.java | 128 assertEquals(expectedMessage.toByteString(), empty.toByteString()); in preserveUnknownFields()
|
D | CodedInputStreamTest.java | 525 byte[] data = rawOutput.toByteString().toByteArray(); in testReadMaliciouslyLargeBlob() 822 byte[] rawInput = rawOutput.toByteString().toByteArray(); in testReadString() 848 byte[] rawInput = rawOutput.toByteString().toByteArray(); in testReadStringRequireUtf8() 871 byte[] rawInput = rawOutput.toByteString().toByteArray(); in testReadStringInvalidUtf8() 894 byte[] rawInput = rawOutput.toByteString().toByteArray(); in testReadStringRequireUtf8InvalidUtf8() 960 byte[] rawInput = rawOutput.toByteString().toByteArray(); in testReadByteArray() 989 byte[] data = rawOutput.toByteString().toByteArray(); in testReadLargeByteStringFromInputStream() 1013 byte[] data = rawOutput.toByteString().toByteArray(); in testReadLargeByteArrayFromInputStream() 1048 byte[] rawInput = rawOutput.toByteString().toByteArray(); in testReadByteBuffer()
|
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | WireFormatTest.java | 60 ByteString rawBytes = message.toByteString(); in testSerialization() 71 ByteString rawBytes = message.toByteString(); in testSerializationPacked() 85 ByteString rawBytes = message.toByteString(); in testSerializeExtensions() 97 ByteString rawBytes = message.toByteString(); in testSerializePackedExtensions() 100 ByteString rawBytes2 = message2.toByteString(); in testSerializePackedExtensions() 133 ByteString rawBytes = message.toByteString(); in testParseExtensions() 146 ByteString rawBytes = message.toByteString(); in testParsePackedExtensions() 206 .build().toByteString(); in testInterleavedFieldsAndExtensions() 217 .build().toByteString(); in testInterleavedFieldsAndExtensions() 240 TestFieldOrderings.parseFrom(source.toByteString(), in testParseMultipleExtensionRanges() [all …]
|
D | AbstractMessageTest.java | 218 TestAllTypes.parseFrom(abstractMessage.toByteString())); in testSerialization() 220 assertEquals(TestUtil.getAllSet().toByteString(), in testSerialization() 221 abstractMessage.toByteString()); in testSerialization() 228 builder.mergeFrom(TestUtil.getAllSet().toByteString()).build(); in testParsing() 235 ByteString bytes = builder.buildPartial().toByteString(); in testParsingUninitialized() 265 TestPackedTypes.parseFrom(abstractMessage.toByteString())); in testPackedSerialization() 267 assertEquals(TestUtil.getPackedSet().toByteString(), in testPackedSerialization() 268 abstractMessage.toByteString()); in testPackedSerialization() 275 builder.mergeFrom(TestUtil.getPackedSet().toByteString()).build(); in testPackedParsing() 284 TestUnpackedTypes.parseFrom(abstractMessage.toByteString())); in testUnpackedSerialization() [all …]
|
D | ParserTest.java | 77 message.toByteString(), registry)); in assertRoundTripEquals() 94 assertMessageEquals(message, parser.parseFrom(message.toByteString())); in assertRoundTripEquals() 106 assertEquals(expected.toByteString(), actual.toByteString()); in assertMessageEquals() 133 partialMessage.toByteString())); in testParsePartial() 149 parser.parseFrom(partialMessage.toByteString()); in testParsePartial() 188 TestUtil.getAllSet().toByteString()); in testParseUnknownFields() 190 TestUtil.getAllSet().toByteString(), in testParseUnknownFields() 191 emptyMessage.toByteString()); in testParseUnknownFields() 255 .build().toByteString(); in testParsingMerge()
|
D | DynamicMessageTest.java | 102 newBuilder.mergeFrom(message.toByteString()); in testUnknownFields() 169 ByteString rawBytes = message.toByteString(); in testDynamicMessageSerialization() 175 assertEquals(TestUtil.getAllSet().toByteString(), rawBytes); in testDynamicMessageSerialization() 183 ByteString rawBytes = message.toByteString(); in testDynamicMessageParsing() 195 ByteString rawBytes = TestUtil.getAllExtensionsSet().toByteString(); in testDynamicMessageExtensionParsing() 213 ByteString rawBytes = message.toByteString(); in testDynamicMessagePackedSerialization() 219 assertEquals(TestUtil.getPackedSet().toByteString(), rawBytes); in testDynamicMessagePackedSerialization() 227 ByteString rawBytes = message.toByteString(); in testDynamicMessagePackedParsing()
|
D | LazyStringEndToEndTest.java | 64 .toByteString(); in setUp() 74 ByteString bytes = tV2.toByteString(); in testParseAndSerialize() 78 bytes = tV2.toByteString(); in testParseAndSerialize()
|
D | UnknownFieldSetTest.java | 54 allFieldsData = allFields.toByteString(); in setUp() 87 return bizarroFields.build().toByteString(); in getBizarroData() 151 ByteString data = emptyMessage.toByteString(); in testSerialize() 218 ByteString data = fields.toByteString(); in testParseKnownAndUnknown() 252 assertEquals(allFieldsData, message.toByteString()); in testUnknownExtensions() 293 .toByteString(); in testParseUnknownEnumValue() 339 .toByteString(); in testLargeVarint()
|
D | ByteStringTest.java | 375 ByteString byteString = output.toByteString(); in testNewOutput_InitialCapacity() 397 ByteString byteString = output.toByteString(); in testNewOutput_ArrayWrite() 417 ByteString byteString = output.toByteString(); in testNewOutput_WriteChar() 449 isArrayRange(output.toByteString().toByteArray(), in testNewOutput_Mixed() 452 ByteString byteString = output.toByteString(); in testNewOutput_Mixed() 460 ByteString byteString = ByteString.newOutput().toByteString(); in testNewOutputEmpty() 470 ByteString byteString = os.toByteString(); in testNewOutput_Mutating()
|
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | LazyFieldLite.java | 156 return toByteString().equals(other.toByteString()); in equals() 369 public ByteString toByteString() { in toByteString() method in LazyFieldLite 385 memoizedBytes = value.toByteString(); in toByteString()
|