Home
last modified time | relevance | path

Searched refs:message1 (Results 1 – 25 of 66) sorted by relevance

123

/external/protobuf/src/google/protobuf/util/
Dmessage_differencer.cc76 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, &current_parent_fields)) { in IsMatchInternal()
154 message1, message2, field, -1, -1, &current_parent_fields)) { in IsMatchInternal()
160 const Reflection* reflection1 = message1.GetReflection(); in IsMatchInternal()
162 bool has_field1 = reflection1->HasField(message1, field); in IsMatchInternal()
[all …]
Dmessage_differencer.h131 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 …]
Ddelimited_message_util_test.cc51 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/
Dcpp_move_unittest.cc52 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 …]
Dcpp_unittest.inc470 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/
Dgenerated_message_reflection_unittest.cc156 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 …]
Dextension_set_unittest.cc274 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 …]
Dlite_unittest.cc458 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 …]
Dreflection_ops_unittest.cc157 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 …]
Dgenerated_message_reflection.cc361 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 …]
Dmap_test.cc1876 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/
Dipc_channel_reader_unittest.cc182 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/
Dlibfuzzer_macro.cc121 protobuf::Message* message1, in CrossOverMessages() argument
124 input1.Read(message1); in CrossOverMessages()
126 size_t max_size = GetMaxSize(input1, *output, *message1); in CrossOverMessages()
127 GetMutator()->CrossOver(*message2, message1, max_size); in CrossOverMessages()
128 if (size_t new_size = output->Write(*message1)) { in CrossOverMessages()
145 protobuf::Message* message1, in CrossOverTextMessages() argument
150 return CrossOverMessages(seed, input1, input2, &output, message1, message2); in CrossOverTextMessages()
163 protobuf::Message* message1, in CrossOverBinaryMessages() argument
168 return CrossOverMessages(seed, input1, input2, &output, message1, message2); in CrossOverBinaryMessages()
/external/libchrome/mojo/core/
Dchannel_unittest.cc102 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/
Dmessage_test.js950 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/grpc-grpc/third_party/nanopb/tests/oneof/
DSConscript28 env.RunTest("message1.pb", enc, ARGS = ['1'])
29 env.RunTest("message1.txt", [dec, 'message1.pb'], ARGS = ['1'])
/external/nanopb-c/tests/oneof/
DSConscript28 env.RunTest("message1.pb", enc, ARGS = ['1'])
29 env.RunTest("message1.txt", [dec, 'message1.pb'], ARGS = ['1'])
/external/python/apitools/apitools/base/protorpclite/
Dmessages_test.py1536 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/protobuf/java/core/src/test/java/com/google/protobuf/
DLazyFieldLiteTest.java142 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()
DLiteEqualsAndHashTest.java90 TestOneofEquals message1 = builder.build(); in testOneofEquals() local
95 assertFalse(message1.equals(message2)); in testOneofEquals()
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DWrappersTest.cs382 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/
DIssuesTest.cs85 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/
DSConscript28 env2.RunTest("message1.txt", [dec, '$BUILD/oneof/message1.pb'], ARGS = ['1'])
/external/nanopb-c/tests/anonymous_oneof/
DSConscript28 env2.RunTest("message1.txt", [dec, '$BUILD/oneof/message1.pb'], ARGS = ['1'])
/external/angle/src/tests/gl_tests/
DErrorMessages.cpp88 const std::string message1 = gl::err::kWebglBindAttribLocationReservedPrefix; in TEST_P() local
103 expectedMessage.message = message1; in TEST_P()

123