/external/protobuf/src/google/protobuf/ |
D | lite_unittest.cc | 102 protobuf_unittest::TestAllTypesLite message, message2, message3; in main() local 105 message2.CopyFrom(message); in main() 109 google::protobuf::TestUtilLite::ExpectAllFieldsSet(message2); in main() 118 protobuf_unittest::TestAllExtensionsLite message, message2, message3; in main() local 121 message2.CopyFrom(message); in main() 125 google::protobuf::TestUtilLite::ExpectAllExtensionsSet(message2); in main() 134 protobuf_unittest::TestPackedTypesLite message, message2, message3; in main() local 137 message2.CopyFrom(message); in main() 141 google::protobuf::TestUtilLite::ExpectPackedFieldsSet(message2); in main() 150 protobuf_unittest::TestPackedExtensionsLite message, message2, message3; in main() local [all …]
|
D | reflection_ops_unittest.cc | 59 unittest::TestAllTypes message, message2; in TEST() local 63 ReflectionOps::Copy(message, &message2); in TEST() 65 TestUtil::ExpectAllFieldsSet(message2); in TEST() 68 ReflectionOps::Copy(message2, &message2); in TEST() 69 TestUtil::ExpectAllFieldsSet(message2); in TEST() 73 unittest::TestAllExtensions message, message2; in TEST() local 77 ReflectionOps::Copy(message, &message2); in TEST() 79 TestUtil::ExpectAllExtensionsSet(message2); in TEST() 83 unittest::TestOneof2 message, message2; in TEST() local 85 ReflectionOps::Copy(message, &message2); in TEST() [all …]
|
D | generated_message_reflection_unittest.cc | 158 unittest::TestAllTypes message2; in TEST() local 163 reflection->Swap(&message1, &message2); in TEST() 166 TestUtil::ExpectAllFieldsSet(message2); in TEST() 171 unittest::TestAllTypes message2; in TEST() local 174 TestUtil::SetAllFields(&message2); in TEST() 175 TestUtil::ModifyRepeatedFields(&message2); in TEST() 178 reflection->Swap(&message1, &message2); in TEST() 181 TestUtil::ExpectAllFieldsSet(message2); in TEST() 185 reflection->Swap(&message1, &message2); in TEST() 187 EXPECT_EQ(532819, message2.optional_int32()); in TEST() [all …]
|
D | extension_set_unittest.cc | 210 unittest::TestAllExtensions message1, message2; in TEST() local 213 message2.CopyFrom(message1); in TEST() 214 TestUtil::ExpectAllExtensionsSet(message2); in TEST() 215 message2.CopyFrom(message1); // exercise copy when fields already exist in TEST() 216 TestUtil::ExpectAllExtensionsSet(message2); in TEST() 220 unittest::TestPackedExtensions message1, message2; in TEST() local 223 message2.CopyFrom(message1); in TEST() 224 TestUtil::ExpectPackedExtensionsSet(message2); in TEST() 225 message2.CopyFrom(message1); // exercise copy when fields already exist in TEST() 226 TestUtil::ExpectPackedExtensionsSet(message2); in TEST() [all …]
|
D | map_test.cc | 1789 unittest::TestMap message1, message2; in TEST() local 1792 message2.CopyFrom(message1); in TEST() 1793 MapTestUtil::ExpectMapFieldsSet(message2); in TEST() 1796 message2.CopyFrom(message2); in TEST() 1797 MapTestUtil::ExpectMapFieldsSet(message2); in TEST() 1801 unittest::TestMessageMap message1, message2; in TEST() local 1804 (*message2.mutable_map_int32_message())[0].add_repeated_int32(101); in TEST() 1806 message1.CopyFrom(message2); in TEST() 1814 unittest::TestMap message1, message2; in TEST() local 1818 MapTestUtil::ExpectClear(message2); in TEST() [all …]
|
D | generated_message_reflection.cc | 394 Message* message2, in SwapField() argument 401 MutableRaw<RepeatedField<TYPE> >(message2, field)); \ in SwapField() 420 MutableRaw<RepeatedPtrFieldBase>(message2, field)); in SwapField() 429 MutableRaw<MapFieldBase>(message2, field)-> in SwapField() 434 MutableRaw<RepeatedPtrFieldBase>(message2, field)); in SwapField() 446 *MutableRaw<TYPE>(message2, field)); \ in SwapField() 459 if (GetArena(message1) == GetArena(message2)) { in SwapField() 461 *MutableRaw<Message*>(message2, field)); in SwapField() 464 Message** sub_msg2 = MutableRaw<Message*>(message2, field); in SwapField() 473 ClearField(message2, field); in SwapField() [all …]
|
D | preserve_unknown_enum_test.cc | 144 proto2_preserve_unknown_enum_unittest::MyMessage message2 = message; in TEST() local 145 message2.DiscardUnknownFields(); in TEST() 146 EXPECT_EQ(0, message2.ByteSize()); in TEST() 168 proto2_preserve_unknown_enum_unittest::MyMessage message2; in TEST() local 169 message2.CopyFrom(*message); in TEST() 170 message2.DiscardUnknownFields(); in TEST() 171 EXPECT_EQ(0, message2.ByteSize()); in TEST()
|
/external/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_unittest.cc | 424 unittest::TestAllTypes message1, message2; in TEST() local 427 message2.CopyFrom(message1); in TEST() 428 TestUtil::ExpectAllFieldsSet(message2); in TEST() 431 message2.CopyFrom(message2); in TEST() 432 TestUtil::ExpectAllFieldsSet(message2); in TEST() 437 unittest::TestAllTypes message1, message2; in TEST() local 441 TestUtil::ExpectClear(message2); in TEST() 442 message1.Swap(&message2); in TEST() 443 TestUtil::ExpectAllFieldsSet(message2); in TEST() 456 unittest::TestAllTypes message1, message2; in TEST() local [all …]
|
/external/protobuf/src/google/protobuf/util/ |
D | message_differencer.h | 118 static bool Equals(const Message& message1, const Message& message2); 130 static bool Equivalent(const Message& message1, const Message& message2); 143 const Message& message2); 158 const Message& message2); 223 const Message& message1, const Message& message2, 229 const Message& message2, 235 const Message& message2, 245 const Message& message2, in ReportMoved() argument 254 const Message& message2, in ReportMatched() argument 278 const Message& message2, in ReportIgnored() argument [all …]
|
D | message_differencer.cc | 94 const Message& message2, in IsMatch() argument 97 if (!IsMatchInternal(message1, message2, parent_fields, in IsMatch() 107 const Message& message2, in IsMatchInternal() argument 116 message1, message2, field, ¤t_parent_fields)) { in IsMatchInternal() 121 message1, message2, field, -1, -1, ¤t_parent_fields)) { in IsMatchInternal() 128 const Reflection* reflection2 = message2.GetReflection(); in IsMatchInternal() 130 bool has_field2 = reflection2->HasField(message2, field); in IsMatchInternal() 142 reflection2->GetMessage(message2, field), in IsMatchInternal() 154 const Message& message2) { in Equals() argument 157 return differencer.Compare(message1, message2); in Equals() [all …]
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | WireFormatTest.java | 66 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testSerialization() local 68 TestUtil.assertAllFieldsSet(message2); in testSerialization() 77 TestPackedTypes message2 = TestPackedTypes.parseFrom(rawBytes); in testSerializationPacked() local 79 TestUtil.assertPackedFieldsSet(message2); in testSerializationPacked() 91 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testSerializeExtensions() local 93 TestUtil.assertAllFieldsSet(message2); in testSerializeExtensions() 102 TestPackedTypes message2 = TestUtil.getPackedSet(); in testSerializePackedExtensions() local 103 ByteString rawBytes2 = message2.toByteString(); in testSerializePackedExtensions() 124 TestPackedTypes message2 = TestPackedTypes.parseFrom( in testSerializationPackedWithoutGetSerializedSize() local 127 TestUtil.assertPackedFieldsSet(message2); in testSerializationPackedWithoutGetSerializedSize() [all …]
|
D | DynamicMessageTest.java | 173 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testDynamicMessageSerialization() local 175 TestUtil.assertAllFieldsSet(message2); in testDynamicMessageSerialization() 188 Message message2 = in testDynamicMessageParsing() local 190 reflectionTester.assertAllFieldsSetViaReflection(message2); in testDynamicMessageParsing() 193 Message message3 = message2.getParserForType().parseFrom(rawBytes); in testDynamicMessageParsing() 205 Message message2 = message.getParserForType().parseFrom( in testDynamicMessageExtensionParsing() local 207 extensionsReflectionTester.assertAllFieldsSetViaReflection(message2); in testDynamicMessageExtensionParsing() 217 TestPackedTypes message2 = TestPackedTypes.parseFrom(rawBytes); in testDynamicMessagePackedSerialization() local 219 TestUtil.assertPackedFieldsSet(message2); in testDynamicMessagePackedSerialization() 232 Message message2 = in testDynamicMessagePackedParsing() local [all …]
|
D | GeneratedMessageTest.java | 1251 message2 = OuterClassNameTest2OuterClass.TestMessage2.NestedMessage in testConflictingOuterClassName() local 1253 assertEquals(0, message2.getSerializedSize()); in testConflictingOuterClassName() 1322 TestOneof2 message2 = builder.build(); in testOneofTypes() local 1323 assertFalse(message2.hasFooInt()); in testOneofTypes() 1324 assertEquals(message2.getFooInt(), 0); in testOneofTypes() 1338 TestOneof2 message2 = builder.build(); in testOneofTypes() local 1339 assertFalse(message2.hasFooEnum()); in testOneofTypes() 1340 assertEquals(message2.getFooEnum(), TestOneof2.NestedEnum.FOO); in testOneofTypes() 1356 TestOneof2 message2 = builder.buildPartial(); in testOneofTypes() local 1357 assertFalse(message2.hasFooString()); in testOneofTypes() [all …]
|
D | LazyFieldLiteTest.java | 147 TestAllTypes message2 = TestAllTypes.newBuilder().setOptionalInt64(2).build(); in testMergeBeforeParsing() local 148 LazyFieldLite field2 = createLazyFieldLiteFromMessage(message2); in testMergeBeforeParsing() 159 TestAllTypes message2 = TestAllTypes.newBuilder().setOptionalInt64(2).build(); in testMergeOneNotParsed() local 165 LazyFieldLite field2 = createLazyFieldLiteFromMessage(message2); in testMergeOneNotParsed() 171 field2 = createLazyFieldLiteFromMessage(message2); in testMergeOneNotParsed() 228 TestAllExtensions message2 = in testMergeMightLoseExtensions() local 232 field.merge(LazyFieldLite.fromValue(message2)); in testMergeMightLoseExtensions()
|
/external/libchrome/ipc/ |
D | ipc_channel_reader_unittest.cc | 187 ExposedMessage message2; in TEST() local 188 message2.WriteString(std::string(LargePayloadSize, 'Y')); in TEST() 189 reader.AppendData(message2.header(), sizeof(ExposedMessage::Header)); in TEST() 211 ExposedMessage message2; in TEST() local 212 message2.WriteString(std::string(LargePayloadSize * 2, 'X')); in TEST() 213 reader.AppendData(message2.header(), sizeof(ExposedMessage::Header)); in TEST() 221 EXPECT_GE(reader.input_overflow_buf_.capacity(), message2.size()); in TEST() 235 ExposedMessage message2; in TEST() local 236 message2.WriteString(std::string(LargePayloadSize, 'Y')); in TEST() 237 reader.AppendData(message2.header(), sizeof(ExposedMessage::Header)); in TEST() [all …]
|
/external/protobuf/objectivec/Tests/ |
D | GPBMessageTests.m | 429 GPBMessage *message2 = [TestAllExtensions message]; 430 [message2 setExtension:[UnittestRoot optionalInt32Extension] value:@1]; 432 [message2 addExtension:[UnittestRoot repeatedInt32Extension] value:@2]; 434 description = [message2 description]; 566 TestAllTypes *message2 = [TestAllTypes message]; 567 XCTAssertEqualObjects(message, message2); 587 GPBMessage *message2 = [TestAllExtensions message]; 588 [message2 addExtension:[UnittestRoot repeatedInt32Extension] value:@1]; 591 [[message2 getExtension:[UnittestRoot repeatedInt32Extension]] count], 593 [message2 clearExtension:[UnittestRoot repeatedInt32Extension]]; [all …]
|
D | GPBWireFormatTests.m | 51 TestAllTypes* message2 = [TestAllTypes parseFromData:rawBytes error:NULL]; 53 [self assertAllFieldsSet:message2 repeatedCount:kGPBDefaultRepeatCount]; 63 TestPackedTypes* message2 = 66 [self assertPackedFieldsSet:message2 repeatedCount:kGPBDefaultRepeatCount]; 79 TestAllTypes* message2 = [TestAllTypes parseFromData:rawBytes error:NULL]; 81 [self assertAllFieldsSet:message2 repeatedCount:kGPBDefaultRepeatCount]; 91 TestPackedTypes* message2 = 93 NSData* rawBytes2 = message2.data; 108 TestAllExtensions* message2 = [TestAllExtensions parseFromData:rawBytes 112 [self assertAllExtensionsSet:message2 repeatedCount:kGPBDefaultRepeatCount]; [all …]
|
/external/libprotobuf-mutator/src/ |
D | mutator.cc | 488 protobuf::Message* message2) { in CrossOver() argument 491 std::unique_ptr<protobuf::Message> message2_copy(message2->New()); in CrossOver() 492 message2_copy->CopyFrom(*message2); in CrossOver() 494 CrossOverImpl(message1, message2); in CrossOver() 496 InitializeAndTrim(message2, kMaxInitializeDepth); in CrossOver() 497 assert(!keep_initialized_ || message2->IsInitialized()); in CrossOver() 508 protobuf::Message* message2) { in CrossOverImpl() argument 509 const Descriptor* descriptor = message2->GetDescriptor(); in CrossOverImpl() 510 const Reflection* reflection = message2->GetReflection(); in CrossOverImpl() 519 int field_size2 = reflection->FieldSize(*message2, field); in CrossOverImpl() [all …]
|
D | mutator.h | 57 protobuf::Message* message2); 83 protobuf::Message* message2);
|
/external/libchrome/mojo/core/ |
D | channel_unittest.cc | 103 Channel::Message* message2, in TestMessagesAreEqual() argument 108 ASSERT_NE(nullptr, message2); in TestMessagesAreEqual() 110 ASSERT_EQ(message1->payload_size(), message2->payload_size()); in TestMessagesAreEqual() 111 EXPECT_EQ(message1->has_handles(), message2->has_handles()); in TestMessagesAreEqual() 114 message2->payload(), message2->payload_size()); in TestMessagesAreEqual() 119 ASSERT_EQ(message1->extra_header_size(), message2->extra_header_size()); in TestMessagesAreEqual() 121 message2->extra_header(), message2->extra_header_size()); in TestMessagesAreEqual()
|
/external/libprotobuf-mutator/src/libfuzzer/ |
D | libfuzzer_macro.cc | 110 protobuf::Message* message2) { in CrossOverMessages() argument 114 input2.Read(message2); in CrossOverMessages() 115 mutator.CrossOver(*message2, message1); in CrossOverMessages() 134 protobuf::Message* message2) { in CrossOverTextMessages() argument 138 return CrossOverMessages(seed, input1, input2, &output, message1, message2); in CrossOverTextMessages() 152 protobuf::Message* message2) { in CrossOverBinaryMessages() argument 156 return CrossOverMessages(seed, input1, input2, &output, message1, message2); in CrossOverBinaryMessages()
|
/external/nanopb-c/tests/oneof/ |
D | SConscript | 30 env.RunTest("message2.pb", enc, ARGS = ['2']) 31 env.RunTest("message2.txt", [dec, 'message2.pb'], ARGS = ['2'])
|
/external/grpc-grpc/third_party/nanopb/tests/oneof/ |
D | SConscript | 30 env.RunTest("message2.pb", enc, ARGS = ['2']) 31 env.RunTest("message2.txt", [dec, 'message2.pb'], ARGS = ['2'])
|
/external/protobuf/csharp/src/Google.Protobuf.Test/ |
D | GeneratedMessageTest.cs | 54 var message2 = new TestAllTypes(); // SingleForeignMessage is null in EmptyMessageFieldDistinctFromMissingMessageField() 55 EqualityTester.AssertInequality(message1, message2); in EmptyMessageFieldDistinctFromMissingMessageField() 606 var message2 = new TestAllTypes { OneofUint32 = 0 }; in Oneof_DefaultValuesNotEqual() 608 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofUint32, message2.OneofFieldCase); in Oneof_DefaultValuesNotEqual() 609 Assert.AreNotEqual(message1, message2); in Oneof_DefaultValuesNotEqual() 621 var message2 = TestAllTypes.Parser.ParseFrom(bytes); in OneofSerialization_NonDefaultValue() 622 Assert.AreEqual(message, message2); in OneofSerialization_NonDefaultValue() 623 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofUint32, message2.OneofFieldCase); in OneofSerialization_NonDefaultValue() 635 var message2 = TestAllTypes.Parser.ParseFrom(bytes); in OneofSerialization_DefaultValue() 636 Assert.AreEqual(message, message2); in OneofSerialization_DefaultValue() [all …]
|
/external/python/apitools/apitools/base/protorpclite/ |
D | messages_test.py | 1537 message2 = MyMessage() 1539 self.assertEquals(message1, message2) 1542 self.assertNotEquals(message1, message2) 1544 message2.field1 = 20 1545 self.assertNotEquals(message1, message2) 1547 message2.field1 = 10 1548 self.assertEquals(message1, message2) 1551 self.assertNotEquals(message1, message2) 1553 message2.field2 = MyEnum.val2 1554 self.assertNotEquals(message1, message2) [all …]
|