/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/cpp/ |
D | cpp_unittest.cc | 424 unittest::TestAllTypes message1, message2; in TEST() local 426 TestUtil::SetAllFields(&message1); in TEST() 427 message2.CopyFrom(message1); in TEST() 437 unittest::TestAllTypes message1, message2; in TEST() local 438 TestUtil::SetAllFields(&message1); in TEST() 440 TestUtil::ExpectAllFieldsSet(message1); in TEST() 442 message1.Swap(&message2); in TEST() 444 TestUtil::ExpectClear(message1); in TEST() 456 unittest::TestAllTypes message1, message2; in TEST() local 458 message1.set_optional_int32(123); in TEST() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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); 142 static bool ApproximatelyEquals(const Message& message1, 157 static bool ApproximatelyEquivalent(const Message& message1, 223 const Message& message1, const Message& message2, 228 const Message& message1, 234 const Message& message1, 244 const Message& message1, in ReportMoved() argument 253 const Message& message1, in ReportMatched() argument 277 const Message& message1, in ReportIgnored() argument [all …]
|
D | message_differencer.cc | 93 const Message& message1, in IsMatch() argument 97 if (!IsMatchInternal(message1, message2, parent_fields, in IsMatch() 106 const Message& message1, in IsMatchInternal() argument 116 message1, message2, field, ¤t_parent_fields)) { in IsMatchInternal() 121 message1, message2, field, -1, -1, ¤t_parent_fields)) { in IsMatchInternal() 127 const Reflection* reflection1 = message1.GetReflection(); in IsMatchInternal() 129 bool has_field1 = reflection1->HasField(message1, field); in IsMatchInternal() 141 reflection1->GetMessage(message1, field), in IsMatchInternal() 153 bool MessageDifferencer::Equals(const Message& message1, in Equals() argument 157 return differencer.Compare(message1, message2); in Equals() [all …]
|
D | message_differencer_unittest.cc | 1458 const Message& message1, const Message& message2, in IsIgnored() argument 1504 const Message &message1, const Message &message2, in IsMatch() argument 1506 const Reflection* reflection1 = message1.GetReflection(); in IsMatch() 1510 message1.GetDescriptor()->FindFieldByName("ra"); in IsMatch() 1513 for (int i = 0; i < reflection1->FieldSize(message1, ra_field); ++i) { in IsMatch() 1514 result1 *= reflection1->GetRepeatedInt32(message1, ra_field, i); in IsMatch() 2793 unittest::ForeignMessage message1, message2; in TEST_F() local 2795 message1.set_c(5); in TEST_F() 2796 message1.mutable_unknown_fields()->AddVarint(123, 456); in TEST_F() 2800 EXPECT_FALSE(util::MessageDifferencer::Equals(message1, message2)); in TEST_F() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/ |
D | generated_message_reflection_unittest.cc | 157 unittest::TestAllTypes message1; in TEST() local 160 TestUtil::SetAllFields(&message1); in TEST() 162 const Reflection* reflection = message1.GetReflection(); in TEST() 163 reflection->Swap(&message1, &message2); in TEST() 165 TestUtil::ExpectClear(message1); in TEST() 170 unittest::TestAllTypes message1; in TEST() local 173 TestUtil::SetAllFields(&message1); in TEST() 177 const Reflection* reflection = message1.GetReflection(); in TEST() 178 reflection->Swap(&message1, &message2); in TEST() 180 TestUtil::ExpectRepeatedFieldsModified(message1); in TEST() [all …]
|
D | lite_unittest.cc | 400 protobuf_unittest::TestMapLite message1, message2; in main() local 402 google::protobuf::MapLiteTestUtil::SetMapFields(&message1); in main() 403 message2.CopyFrom(message1); in main() 413 protobuf_unittest::TestMessageMapLite message1, message2; in main() local 415 (*message1.mutable_map_int32_message())[0].add_repeated_int32(100); in main() 418 message1.CopyFrom(message2); in main() 421 EXPECT_EQ(1, message1.map_int32_message().at(0).repeated_int32_size()); in main() 422 EXPECT_EQ(101, message1.map_int32_message().at(0).repeated_int32(0)); in main() 427 protobuf_unittest::TestMapLite message1, message2; in main() local 429 google::protobuf::MapLiteTestUtil::SetMapFields(&message1); in main() [all …]
|
D | extension_set_unittest.cc | 278 unittest::TestAllExtensions message1, message2; in TEST() local 280 TestUtil::SetAllExtensions(&message1); in TEST() 281 message2.CopyFrom(message1); in TEST() 283 message2.CopyFrom(message1); // exercise copy when fields already exist in TEST() 288 unittest::TestPackedExtensions message1, message2; in TEST() local 290 TestUtil::SetPackedExtensions(&message1); in TEST() 291 message2.CopyFrom(message1); in TEST() 293 message2.CopyFrom(message1); // exercise copy when fields already exist in TEST() 298 unittest::TestAllExtensions message1, message2; in TEST() local 299 const Message& upcasted_message = message1; in TEST() [all …]
|
D | reflection_ops_unittest.cc | 153 unittest::TestEmptyMessage message1, message2; in TEST() local 154 message1.mutable_unknown_fields()->AddVarint(1234, 1); in TEST() 157 ReflectionOps::Merge(message2, &message1); in TEST() 159 ASSERT_EQ(2, message1.unknown_fields().field_count()); in TEST() 161 message1.unknown_fields().field(0).type()); in TEST() 162 EXPECT_EQ(1, message1.unknown_fields().field(0).varint()); in TEST() 164 message1.unknown_fields().field(1).type()); in TEST() 165 EXPECT_EQ(2, message1.unknown_fields().field(1).varint()); in TEST() 169 unittest::TestOneof2 message1, message2; in TEST() local 170 TestUtil::SetOneof1(&message1); in TEST() [all …]
|
D | generated_message_reflection.cc | 393 Message* message1, in SwapField() argument 400 MutableRaw<RepeatedField<TYPE> >(message1, field)->Swap( \ in SwapField() 418 MutableRaw<RepeatedPtrFieldBase>(message1, field)-> in SwapField() 426 MutableRaw<MapFieldBase>(message1, field)-> in SwapField() 432 MutableRaw<RepeatedPtrFieldBase>(message1, field)-> in SwapField() 445 std::swap(*MutableRaw<TYPE>(message1, field), \ in SwapField() 459 if (GetArena(message1) == GetArena(message2)) { in SwapField() 460 std::swap(*MutableRaw<Message*>(message1, field), in SwapField() 463 Message** sub_msg1 = MutableRaw<Message*>(message1, field); in SwapField() 471 *sub_msg1 = (*sub_msg2)->New(message1->GetArena()); in SwapField() [all …]
|
D | map_test.cc | 1839 unittest::TestMap message1, message2; in TEST() local 1841 MapTestUtil::SetMapFields(&message1); in TEST() 1842 message2.CopyFrom(message1); in TEST() 1851 unittest::TestMessageMap message1, message2; in TEST() local 1853 (*message1.mutable_map_int32_message())[0].add_repeated_int32(100); in TEST() 1856 message1.CopyFrom(message2); in TEST() 1859 EXPECT_EQ(1, message1.map_int32_message().at(0).repeated_int32_size()); in TEST() 1860 EXPECT_EQ(101, message1.map_int32_message().at(0).repeated_int32(0)); in TEST() 1864 unittest::TestMap message1, message2; in TEST() local 1866 MapTestUtil::SetMapFields(&message1); in TEST() [all …]
|
D | generated_message_reflection.h | 227 void Swap(Message* message1, Message* message2) const; 228 void SwapFields(Message* message1, Message* message2, 494 inline void SwapBit(Message* message1, 500 void SwapField(Message* message1, 504 void SwapOneofField(Message* message1,
|
D | arena_unittest.cc | 481 TestAllTypes* message1 = Arena::CreateMessage<TestAllTypes>(&shared_arena); in TEST() local 483 TestUtil::SetAllFields(message1); in TEST() 484 message1->UnsafeArenaSwap(message2); in TEST() 853 TestAllTypes* message1 = Arena::CreateMessage<TestAllTypes>(&arena); in TEST() local 858 message1->unsafe_arena_set_allocated_optional_string(arena_string); in TEST() 859 EXPECT_EQ(arena_string, message1->mutable_optional_string()); in TEST() 861 message1->unsafe_arena_release_optional_string()); in TEST()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/ |
D | LazyFieldLiteTest.java | 145 TestAllTypes message1 = TestAllTypes.newBuilder().setOptionalInt32(1).build(); in testMergeBeforeParsing() local 146 LazyFieldLite field1 = createLazyFieldLiteFromMessage(message1); in testMergeBeforeParsing() 158 TestAllTypes message1 = TestAllTypes.newBuilder().setOptionalInt32(1).build(); in testMergeOneNotParsed() local 163 LazyFieldLite field1 = LazyFieldLite.fromValue(message1); in testMergeOneNotParsed() 170 field1 = LazyFieldLite.fromValue(message1); in testMergeOneNotParsed() 226 TestAllExtensions message1 = in testMergeMightLoseExtensions() local 231 LazyFieldLite field = LazyFieldLite.fromValue(message1); in testMergeMightLoseExtensions()
|
D | LiteEqualsAndHashTest.java | 90 TestOneofEquals message1 = builder.build(); in testOneofEquals() local 95 assertFalse(message1.equals(message2)); in testOneofEquals()
|
D | UnknownFieldSetTest.java | 507 TestAllTypes message1 = TestAllTypes.newBuilder() in testMergeFromLite() local 521 ByteString data1 = message1.toByteString(); in testMergeFromLite() 528 message1 = TestAllTypes.newBuilder(message1).mergeFrom(message2).build(); in testMergeFromLite() 535 assertEquals(message1, message2); in testMergeFromLite()
|
D | AbstractMessageTest.java | 511 private void checkEqualsIsConsistent(Message message1, Message message2) { in checkEqualsIsConsistent() argument 512 assertEquals(message1, message2); in checkEqualsIsConsistent() 513 assertEquals(message2, message1); in checkEqualsIsConsistent() 514 assertEquals(message2.hashCode(), message1.hashCode()); in checkEqualsIsConsistent()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/Collections/ |
D | RepeatedFieldTest.cs | 386 var message1 = new ForeignMessage { C = 2000 }; in AddEntriesFrom_Message() 393 output.WriteMessage(message1); in AddEntriesFrom_Message() 403 CollectionAssert.AreEqual(new[] { message1, message2}, field); in AddEntriesFrom_Message() 473 var message1 = new ForeignMessage { C = 20 }; in WriteTo_Message() 476 var field = new RepeatedField<ForeignMessage> { message1, message2 }; in WriteTo_Message() 485 Assert.AreEqual(message1, input.ReadMessage(ForeignMessage.Parser)); in WriteTo_Message()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | AbstractMessageTest.java | 488 private void checkEqualsIsConsistent(Message message1, Message message2) { in checkEqualsIsConsistent() argument 489 assertEquals(message1, message2); in checkEqualsIsConsistent() 490 assertEquals(message2, message1); in checkEqualsIsConsistent() 491 assertEquals(message2.hashCode(), message1.hashCode()); in checkEqualsIsConsistent()
|
D | WireFormatTest.java | 309 TestMessageSetExtension1 message1 = in testSerializeMessageSetWithFlag() local 312 assertEquals(123, message1.getI()); in testSerializeMessageSetWithFlag()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/ |
D | unknown_fields_test.py | 97 message1 = message_set_extensions_pb2.TestMessageSetExtension1() 98 message1.i = 12345 99 item.message = message1.SerializeToString()
|
D | reflection_test.py | 1419 message1 = unittest_pb2.TestAllTypes() 1424 message1.optional_nested_message 1425 self.assertFalse(message1.HasField('optional_nested_message')) 1428 message2.MergeFrom(message1) 1602 message1 = proto.repeated_message.add() 1604 message1.a = message1.b = message1.c = 0 1610 message1 = proto.Extensions[extension].add() 1613 message1.a = 1 1614 message1.b = 1 1615 message1.c = 1 [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/ |
D | GeneratedMessageTest.cs | 53 var message1 = new TestAllTypes { SingleForeignMessage = new ForeignMessage() }; in EmptyMessageFieldDistinctFromMissingMessageField() 55 EqualityTester.AssertInequality(message1, message2); in EmptyMessageFieldDistinctFromMissingMessageField() 605 var message1 = new TestAllTypes { OneofString = "" }; in Oneof_DefaultValuesNotEqual() 607 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofString, message1.OneofFieldCase); in Oneof_DefaultValuesNotEqual() 609 Assert.AreNotEqual(message1, message2); in Oneof_DefaultValuesNotEqual()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/Tests/ |
D | GPBWireFormatTests.m | 175 TestMessageSetExtension1* message1 = 178 XCTAssertEqual(message1.i, 123);
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | LooperStatsTest.java | 250 Message message1 = mHandlerFirst.obtainMessage(1000); in testDispatchDelayIsRecorded() local 251 message1.when = looperStats.getSystemUptimeMillis(); in testDispatchDelayIsRecorded() 254 looperStats.messageDispatched(token1, message1); in testDispatchDelayIsRecorded()
|