/external/protobuf/src/google/protobuf/util/ |
D | message_differencer.cc | 76 const google::protobuf::Message& message1, const google::protobuf::Message& message2, in ReportAdded() argument 84 const google::protobuf::Message& message1, const google::protobuf::Message& message2, in ReportDeleted() argument 92 const google::protobuf::Message& message1, const google::protobuf::Message& message2, in ReportModified() argument 127 bool IsMatch(const Message& message1, const Message& message2, in IsMatch() argument 130 if (!IsMatchInternal(message1, message2, parent_fields, in IsMatch() 140 const Message& message1, const Message& message2, in IsMatchInternal() argument 149 message1, message2, field, ¤t_parent_fields)) { in IsMatchInternal() 154 message1, message2, field, -1, -1, ¤t_parent_fields)) { in IsMatchInternal() 160 const Reflection* reflection1 = message1.GetReflection(); in IsMatchInternal() 162 bool has_field1 = reflection1->HasField(message1, field); in IsMatchInternal() [all …]
|
D | message_differencer.h | 131 static bool Equals(const Message& message1, const Message& message2); 144 static bool Equivalent(const Message& message1, const Message& message2); 156 static bool ApproximatelyEquals(const Message& message1, 171 static bool ApproximatelyEquivalent(const Message& message1, 234 virtual void ReportAdded(const Message& message1, const Message& message2, 239 const Message& message1, const Message& message2, 244 const Message& message1, const Message& message2, 580 bool Compare(const Message& message1, const Message& message2); 585 const Message& message1, const Message& message2, 627 void ReportAdded(const Message& message1, const Message& message2, [all …]
|
D | delimited_message_util_test.cc | 51 protobuf_unittest::TestAllTypes message1; in TEST() local 52 TestUtil::SetAllFields(&message1); in TEST() 53 EXPECT_TRUE(SerializeDelimitedToOstream(message1, &stream)); in TEST() 64 protobuf_unittest::TestAllTypes message1; in TEST() local 66 EXPECT_TRUE(ParseDelimitedFromZeroCopyStream(&message1, in TEST() 69 TestUtil::ExpectAllFieldsSet(message1); in TEST()
|
/external/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_move_unittest.cc | 52 protobuf_unittest::TestAllTypes message1; in TEST() local 53 TestUtil::SetAllFields(&message1); in TEST() 54 const auto* nested = &message1.optional_nested_message(); in TEST() 56 protobuf_unittest::TestAllTypes message2(std::move(message1)); in TEST() 62 EXPECT_NE(nested, &message1.optional_nested_message()); in TEST() 66 protobuf_unittest::TestAllTypes message1; in TEST() local 67 TestUtil::SetAllFields(&message1); in TEST() 68 const auto* nested = &message1.optional_nested_message(); in TEST() 71 message2 = std::move(message1); in TEST() 77 EXPECT_NE(nested, &message1.optional_nested_message()); in TEST() [all …]
|
D | cpp_unittest.inc | 470 UNITTEST::TestAllTypes message1, message2; 472 TestUtil::SetAllFields(&message1); 473 message2.CopyFrom(message1); 483 UNITTEST::TestAllTypes message1, message2; 484 TestUtil::SetAllFields(&message1); 486 TestUtil::ExpectAllFieldsSet(message1); 488 message1.Swap(&message2); 490 TestUtil::ExpectClear(message1); 502 UNITTEST::TestAllTypes message1, message2; 504 message1.set_optional_int32(123); [all …]
|
/external/protobuf/src/google/protobuf/ |
D | generated_message_reflection_unittest.cc | 156 unittest::TestAllTypes message1; in TEST() local 159 TestUtil::SetAllFields(&message1); in TEST() 161 const Reflection* reflection = message1.GetReflection(); in TEST() 162 reflection->Swap(&message1, &message2); in TEST() 164 TestUtil::ExpectClear(message1); in TEST() 169 unittest::TestAllTypes message1; in TEST() local 172 TestUtil::SetAllFields(&message1); in TEST() 176 const Reflection* reflection = message1.GetReflection(); in TEST() 177 reflection->Swap(&message1, &message2); in TEST() 179 TestUtil::ExpectRepeatedFieldsModified(message1); in TEST() [all …]
|
D | extension_set_unittest.cc | 274 unittest::TestAllExtensions message1, message2; in TEST() local 276 TestUtil::SetAllExtensions(&message1); in TEST() 277 message2.CopyFrom(message1); in TEST() 279 message2.CopyFrom(message1); // exercise copy when fields already exist in TEST() 284 unittest::TestPackedExtensions message1, message2; in TEST() local 286 TestUtil::SetPackedExtensions(&message1); in TEST() 287 message2.CopyFrom(message1); in TEST() 289 message2.CopyFrom(message1); // exercise copy when fields already exist in TEST() 294 unittest::TestAllExtensions message1, message2; in TEST() local 295 const Message& upcasted_message = message1; in TEST() [all …]
|
D | lite_unittest.cc | 458 protobuf_unittest::TestMapLite message1, message2; in TEST() local 460 MapLiteTestUtil::SetMapFields(&message1); in TEST() 461 message2.CopyFrom(message1); in TEST() 475 protobuf_unittest::TestMessageMapLite message1, message2; in TEST() local 477 (*message1.mutable_map_int32_message())[0].add_repeated_int32(100); in TEST() 480 message1.CopyFrom(message2); in TEST() 483 EXPECT_EQ(1, message1.map_int32_message().at(0).repeated_int32_size()); in TEST() 484 EXPECT_EQ(101, message1.map_int32_message().at(0).repeated_int32(0)); in TEST() 493 protobuf_unittest::TestMapLite message1, message2; in TEST() local 495 MapLiteTestUtil::SetMapFields(&message1); in TEST() [all …]
|
D | reflection_ops_unittest.cc | 157 unittest::TestEmptyMessage message1, message2; in TEST() local 158 message1.mutable_unknown_fields()->AddVarint(1234, 1); in TEST() 161 ReflectionOps::Merge(message2, &message1); in TEST() 163 ASSERT_EQ(2, message1.unknown_fields().field_count()); in TEST() 165 message1.unknown_fields().field(0).type()); in TEST() 166 EXPECT_EQ(1, message1.unknown_fields().field(0).varint()); in TEST() 168 message1.unknown_fields().field(1).type()); in TEST() 169 EXPECT_EQ(2, message1.unknown_fields().field(1).varint()); in TEST() 173 unittest::TestOneof2 message1, message2; in TEST() local 174 TestUtil::SetOneof1(&message1); in TEST() [all …]
|
D | generated_message_reflection.cc | 361 void Reflection::SwapField(Message* message1, Message* message2, in SwapField() argument 367 MutableRaw<RepeatedField<TYPE> >(message1, field) \ in SwapField() 385 MutableRaw<RepeatedPtrFieldBase>(message1, field) in SwapField() 393 MutableRaw<MapFieldBase>(message1, field) in SwapField() 396 MutableRaw<RepeatedPtrFieldBase>(message1, field) in SwapField() 409 std::swap(*MutableRaw<TYPE>(message1, field), \ in SwapField() 423 if (GetArena(message1) == GetArena(message2)) { in SwapField() 424 std::swap(*MutableRaw<Message*>(message1, field), in SwapField() 427 Message** sub_msg1 = MutableRaw<Message*>(message1, field); in SwapField() 435 *sub_msg1 = (*sub_msg2)->New(message1->GetArena()); in SwapField() [all …]
|
D | map_test.cc | 1876 unittest::TestMap message1, message2; in TEST() local 1878 MapTestUtil::SetMapFields(&message1); in TEST() 1879 message2.CopyFrom(message1); in TEST() 1888 unittest::TestMessageMap message1, message2; in TEST() local 1890 (*message1.mutable_map_int32_message())[0].add_repeated_int32(100); in TEST() 1893 message1.CopyFrom(message2); in TEST() 1896 EXPECT_EQ(1, message1.map_int32_message().at(0).repeated_int32_size()); in TEST() 1897 EXPECT_EQ(101, message1.map_int32_message().at(0).repeated_int32(0)); in TEST() 1901 unittest::TestMap message1, message2; in TEST() local 1903 MapTestUtil::SetMapFields(&message1); in TEST() [all …]
|
/external/libchrome/ipc/ |
D | ipc_channel_reader_unittest.cc | 182 Message message1; in TEST() local 183 message1.WriteString(std::string(LargePayloadSize * 2, 'X')); in TEST() 184 reader.AppendMessageData(message1); in TEST() 197 EXPECT_GE(reader.input_overflow_buf_.capacity(), message1.size()); in TEST() 206 Message message1; in TEST() local 207 message1.WriteString(std::string(LargePayloadSize, 'Y')); in TEST() 208 reader.AppendMessageData(message1); in TEST() 230 Message message1; in TEST() local 231 message1.WriteString(std::string(11, 'X')); in TEST() 232 reader.AppendMessageData(message1); in TEST()
|
/external/libprotobuf-mutator/src/libfuzzer/ |
D | libfuzzer_macro.cc | 153 protobuf::Message* message1, in CrossOverMessages() argument 156 input1.Read(message1); in CrossOverMessages() 158 size_t max_size = GetMaxSize(input1, *output, *message1); in CrossOverMessages() 159 GetMutator()->CrossOver(*message2, message1, max_size); in CrossOverMessages() 160 if (size_t new_size = output->Write(*message1)) { in CrossOverMessages() 162 GetCache()->Store(output->data(), new_size, message1); in CrossOverMessages() 178 protobuf::Message* message1, in CrossOverTextMessages() argument 183 return CrossOverMessages(seed, input1, input2, &output, message1, message2); in CrossOverTextMessages() 196 protobuf::Message* message1, in CrossOverBinaryMessages() argument 201 return CrossOverMessages(seed, input1, input2, &output, message1, message2); in CrossOverBinaryMessages()
|
/external/libchrome/mojo/core/ |
D | channel_unittest.cc | 102 void TestMessagesAreEqual(Channel::Message* message1, in TestMessagesAreEqual() argument 107 ASSERT_NE(nullptr, message1); in TestMessagesAreEqual() 110 ASSERT_EQ(message1->payload_size(), message2->payload_size()); in TestMessagesAreEqual() 111 EXPECT_EQ(message1->has_handles(), message2->has_handles()); in TestMessagesAreEqual() 113 TestMemoryEqual(message1->payload(), message1->payload_size(), in TestMessagesAreEqual() 119 ASSERT_EQ(message1->extra_header_size(), message2->extra_header_size()); in TestMessagesAreEqual() 120 TestMemoryEqual(message1->extra_header(), message1->extra_header_size(), in TestMessagesAreEqual()
|
/external/protobuf/js/ |
D | message_test.js | 950 var message1 = new proto.jspb.circulartest.MessageField1; 955 message1.setB(nestMessage2); 959 assertEquals(2, message1.getB().getA()); 967 var message1 = new proto.jspb.circulartest.RepeatedMessageField1; 972 message1.setB(nestMessage2); 976 assertEquals(2, message1.getB().getA()); 983 var message1 = new proto.jspb.circulartest.MapField1; 988 message1.setB(nestMessage2); 992 assertEquals(2, message1.getB().getA()); 1000 var message1 = new proto.jspb.circulartest.NestedMessage1; [all …]
|
/external/nanopb-c/tests/oneof/ |
D | SConscript | 28 env.RunTest("message1.pb", enc, ARGS = ['1']) 29 env.RunTest("message1.txt", [dec, 'message1.pb'], ARGS = ['1'])
|
/external/grpc-grpc/third_party/nanopb/tests/oneof/ |
D | SConscript | 28 env.RunTest("message1.pb", enc, ARGS = ['1']) 29 env.RunTest("message1.txt", [dec, 'message1.pb'], ARGS = ['1'])
|
/external/openscreen/discovery/mdns/ |
D | mdns_records_unittest.cc | 649 MdnsMessage message1; in TEST() local 650 EXPECT_EQ(message1.MaxWireSize(), UINT64_C(12)); in TEST() 651 EXPECT_EQ(message1.id(), UINT16_C(0)); in TEST() 652 EXPECT_EQ(message1.type(), MessageType::Query); in TEST() 653 EXPECT_EQ(message1.questions().size(), UINT64_C(0)); in TEST() 654 EXPECT_EQ(message1.answers().size(), UINT64_C(0)); in TEST() 655 EXPECT_EQ(message1.authority_records().size(), UINT64_C(0)); in TEST() 656 EXPECT_EQ(message1.additional_records().size(), UINT64_C(0)); in TEST() 725 MdnsMessage message1( in TEST() local 758 EXPECT_EQ(message1, message2); in TEST() [all …]
|
/external/python/apitools/apitools/base/protorpclite/ |
D | messages_test.py | 1536 message1 = MyMessage() 1538 self.assertNotEquals('hi', message1) 1539 self.assertNotEquals(AnotherMessage(), message1) 1540 self.assertEquals(message1, message1) 1544 self.assertEquals(message1, message2) 1546 message1.field1 = 10 1547 self.assertNotEquals(message1, message2) 1550 self.assertNotEquals(message1, message2) 1553 self.assertEquals(message1, message2) 1555 message1.field2 = MyEnum.val1 [all …]
|
/external/openscreen/cast/common/channel/ |
D | namespace_router_unittest.cc | 88 CastMessage message1; in TEST_F() local 89 message1.set_namespace_("one"); in TEST_F() 90 router_.OnMessage(&vc_router_, socket(), std::move(message1)); in TEST_F()
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | LazyFieldLiteTest.java | 142 TestAllTypes message1 = TestAllTypes.newBuilder().setOptionalInt32(1).build(); in testMergeBeforeParsing() local 143 LazyFieldLite field1 = createLazyFieldLiteFromMessage(message1); in testMergeBeforeParsing() 155 TestAllTypes message1 = TestAllTypes.newBuilder().setOptionalInt32(1).build(); in testMergeOneNotParsed() local 160 LazyFieldLite field1 = LazyFieldLite.fromValue(message1); in testMergeOneNotParsed() 167 field1 = LazyFieldLite.fromValue(message1); in testMergeOneNotParsed()
|
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/ |
D | WrappersTest.cs | 382 var message1 = new TestWellKnownTypes { Int32Field = originValue }; in MergingMessageWithZero() 384 message1.MergeFrom(message2); in MergingMessageWithZero() 385 Assert.AreEqual(expectedResult, message1.Int32Field); in MergingMessageWithZero() 424 var message1 = new TestWellKnownTypes { DoubleField = SampleNaNs.Regular }; in NaNComparisons() 428 EqualityTester.AssertInequality(message1, message2); in NaNComparisons() 429 EqualityTester.AssertEquality(message1, message3); in NaNComparisons()
|
/external/protobuf/csharp/src/Google.Protobuf.Test/ |
D | IssuesTest.cs | 85 var message1 = new OneofMerging { Nested = new Nested { X = 10 } }; in OneofMerging() 89 var merged = message1.Clone(); in OneofMerging()
|
/external/grpc-grpc/third_party/nanopb/tests/anonymous_oneof/ |
D | SConscript | 28 env2.RunTest("message1.txt", [dec, '$BUILD/oneof/message1.pb'], ARGS = ['1'])
|
/external/nanopb-c/tests/anonymous_oneof/ |
D | SConscript | 28 env2.RunTest("message1.txt", [dec, '$BUILD/oneof/message1.pb'], ARGS = ['1'])
|