Home
last modified time | relevance | path

Searched refs:message2 (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dlite_unittest.cc102 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 …]
Dreflection_ops_unittest.cc59 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 …]
Dgenerated_message_reflection_unittest.cc158 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 …]
Dextension_set_unittest.cc278 unittest::TestAllExtensions message1, message2; in TEST() local
281 message2.CopyFrom(message1); in TEST()
282 TestUtil::ExpectAllExtensionsSet(message2); in TEST()
283 message2.CopyFrom(message1); // exercise copy when fields already exist in TEST()
284 TestUtil::ExpectAllExtensionsSet(message2); in TEST()
288 unittest::TestPackedExtensions message1, message2; in TEST() local
291 message2.CopyFrom(message1); in TEST()
292 TestUtil::ExpectPackedExtensionsSet(message2); in TEST()
293 message2.CopyFrom(message1); // exercise copy when fields already exist in TEST()
294 TestUtil::ExpectPackedExtensionsSet(message2); in TEST()
[all …]
Dmap_test.cc1839 unittest::TestMap message1, message2; in TEST() local
1842 message2.CopyFrom(message1); in TEST()
1843 MapTestUtil::ExpectMapFieldsSet(message2); in TEST()
1846 message2.CopyFrom(message2); in TEST()
1847 MapTestUtil::ExpectMapFieldsSet(message2); in TEST()
1851 unittest::TestMessageMap message1, message2; in TEST() local
1854 (*message2.mutable_map_int32_message())[0].add_repeated_int32(101); in TEST()
1856 message1.CopyFrom(message2); in TEST()
1864 unittest::TestMap message1, message2; in TEST() local
1868 MapTestUtil::ExpectClear(message2); in TEST()
[all …]
Dgenerated_message_reflection.cc394 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 …]
Dpreserve_unknown_enum_test.cc144 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()
Dwire_format_unittest.cc455 unittest::TestMessageSetExtension2 message2; in TEST() local
456 EXPECT_TRUE(message2.ParseFromString(raw.item(1).message())); in TEST()
457 EXPECT_EQ("foo", message2.str()); in TEST()
624 unittest::TestRecursiveMessage message2; in TEST() local
625 EXPECT_TRUE(message2.ParseFromCodedStream(&input)); in TEST()
632 unittest::TestRecursiveMessage message2; in TEST() local
633 EXPECT_FALSE(message2.ParseFromCodedStream(&input)); in TEST()
652 unittest::TestEmptyMessage message2; in TEST() local
653 EXPECT_TRUE(message2.ParseFromCodedStream(&input)); in TEST()
660 unittest::TestEmptyMessage message2; in TEST() local
[all …]
Dno_field_presence_test.cc518 proto2_nofieldpresence_unittest::TestAllTypes message2; in TEST() local
519 message2.ParseFromString(output); in TEST()
521 EXPECT_EQ(true, message2.has_optional_lazy_message()); in TEST()
522 EXPECT_EQ(true, r->HasField(message2, field)); in TEST()
526 EXPECT_EQ(true, message2.has_optional_lazy_message()); in TEST()
527 EXPECT_EQ(true, r->HasField(message2, field)); in TEST()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/cpp/
Dcpp_unittest.cc424 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 …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/
Dmessage_differencer.h118 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 …]
Dmessage_differencer.cc94 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, &current_parent_fields)) { in IsMatchInternal()
121 message1, message2, field, -1, -1, &current_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 …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DWireFormatTest.java66 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 …]
DDynamicMessageTest.java173 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 …]
DGeneratedMessageTest.java1251 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 …]
DLazyFieldLiteTest.java147 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()
DLiteEqualsAndHashTest.java94 TestOneofEquals message2 = builder.build(); in testOneofEquals() local
95 assertFalse(message1.equals(message2)); in testOneofEquals()
DCodedInputStreamTest.java322 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testReadWholeMessage() local
323 TestUtil.assertAllFieldsSet(message2); in testReadWholeMessage()
327 message2 = TestAllTypes.parseFrom( in testReadWholeMessage()
329 TestUtil.assertAllFieldsSet(message2); in testReadWholeMessage()
407 TestAllTypes message2 = in testReadHugeBlob() local
410 assertEquals(message.getOptionalBytes(), message2.getOptionalBytes()); in testReadHugeBlob()
413 TestAllTypes message3 = TestAllTypes.newBuilder(message2) in testReadHugeBlob()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DWireFormatTest.java63 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testSerialization() local
65 TestUtil.assertAllFieldsSet(message2); in testSerialization()
74 TestPackedTypes message2 = TestPackedTypes.parseFrom(rawBytes); in testSerializationPacked() local
76 TestUtil.assertPackedFieldsSet(message2); in testSerializationPacked()
88 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testSerializeExtensions() local
90 TestUtil.assertAllFieldsSet(message2); in testSerializeExtensions()
99 TestPackedTypes message2 = TestUtil.getPackedSet(); in testSerializePackedExtensions() local
100 ByteString rawBytes2 = message2.toByteString(); in testSerializePackedExtensions()
121 TestPackedTypes message2 = TestPackedTypes.parseFrom( in testSerializationPackedWithoutGetSerializedSize() local
124 TestUtil.assertPackedFieldsSet(message2); in testSerializationPackedWithoutGetSerializedSize()
[all …]
DDynamicMessageTest.java170 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testDynamicMessageSerialization() local
172 TestUtil.assertAllFieldsSet(message2); in testDynamicMessageSerialization()
185 Message message2 = in testDynamicMessageParsing() local
187 reflectionTester.assertAllFieldsSetViaReflection(message2); in testDynamicMessageParsing()
190 Message message3 = message2.getParserForType().parseFrom(rawBytes); in testDynamicMessageParsing()
202 Message message2 = message.getParserForType().parseFrom( in testDynamicMessageExtensionParsing() local
204 extensionsReflectionTester.assertAllFieldsSetViaReflection(message2); in testDynamicMessageExtensionParsing()
214 TestPackedTypes message2 = TestPackedTypes.parseFrom(rawBytes); in testDynamicMessagePackedSerialization() local
216 TestUtil.assertPackedFieldsSet(message2); in testDynamicMessagePackedSerialization()
229 Message message2 = in testDynamicMessagePackedParsing() local
[all …]
DCodedInputStreamTest.java263 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testReadWholeMessage() local
264 TestUtil.assertAllFieldsSet(message2); in testReadWholeMessage()
268 message2 = TestAllTypes.parseFrom( in testReadWholeMessage()
270 TestUtil.assertAllFieldsSet(message2); in testReadWholeMessage()
347 TestAllTypes message2 = in testReadHugeBlob() local
350 assertEquals(message.getOptionalBytes(), message2.getOptionalBytes()); in testReadHugeBlob()
353 TestAllTypes message3 = TestAllTypes.newBuilder(message2) in testReadHugeBlob()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/Tests/
DGPBMessageTests.m429 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 …]
DGPBWireFormatTests.m52 TestAllTypes* message2 = [TestAllTypes parseFromData:rawBytes error:NULL];
54 [self assertAllFieldsSet:message2 repeatedCount:kGPBDefaultRepeatCount];
65 TestPackedTypes* message2 =
68 [self assertPackedFieldsSet:message2 repeatedCount:kGPBDefaultRepeatCount];
82 TestAllTypes* message2 = [TestAllTypes parseFromData:rawBytes error:NULL];
84 [self assertAllFieldsSet:message2 repeatedCount:kGPBDefaultRepeatCount];
95 TestPackedTypes* message2 =
97 NSData* rawBytes2 = message2.data;
113 TestAllExtensions* message2 = [TestAllExtensions parseFromData:rawBytes
117 [self assertAllExtensionsSet:message2 repeatedCount:kGPBDefaultRepeatCount];
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/
DGeneratedMessageTest.cs54 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 …]
DCodedInputStreamTest.cs236 TestAllTypes message2 = TestAllTypes.Parser.ParseFrom(rawBytes); in ReadWholeMessage_VaryingBlockSizes()
237 Assert.AreEqual(message, message2); in ReadWholeMessage_VaryingBlockSizes()
242message2 = TestAllTypes.Parser.ParseFrom(new SmallBlockInputStream(rawBytes, blockSize)); in ReadWholeMessage_VaryingBlockSizes()
243 Assert.AreEqual(message, message2); in ReadWholeMessage_VaryingBlockSizes()
263 TestAllTypes message2 = TestAllTypes.Parser.ParseFrom(message.ToByteString()); in ReadHugeBlob()
265 Assert.AreEqual(message, message2); in ReadHugeBlob()

12