/external/protobuf/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 …]
|
/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); 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 …]
|
/external/protobuf/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 | extension_set_unittest.cc | 210 unittest::TestAllExtensions message1, message2; in TEST() local 212 TestUtil::SetAllExtensions(&message1); in TEST() 213 message2.CopyFrom(message1); in TEST() 215 message2.CopyFrom(message1); // exercise copy when fields already exist in TEST() 220 unittest::TestPackedExtensions message1, message2; in TEST() local 222 TestUtil::SetPackedExtensions(&message1); in TEST() 223 message2.CopyFrom(message1); in TEST() 225 message2.CopyFrom(message1); // exercise copy when fields already exist in TEST() 230 unittest::TestAllExtensions message1, message2; in TEST() local 231 const Message& upcasted_message = 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 | map_test.cc | 1789 unittest::TestMap message1, message2; in TEST() local 1791 MapTestUtil::SetMapFields(&message1); in TEST() 1792 message2.CopyFrom(message1); in TEST() 1801 unittest::TestMessageMap message1, message2; in TEST() local 1803 (*message1.mutable_map_int32_message())[0].add_repeated_int32(100); in TEST() 1806 message1.CopyFrom(message2); in TEST() 1809 EXPECT_EQ(1, message1.map_int32_message().at(0).repeated_int32_size()); in TEST() 1810 EXPECT_EQ(101, message1.map_int32_message().at(0).repeated_int32(0)); in TEST() 1814 unittest::TestMap message1, message2; in TEST() local 1816 MapTestUtil::SetMapFields(&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 | 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 | 482 TestAllTypes* message1 = Arena::CreateMessage<TestAllTypes>(&shared_arena); in TEST() local 484 TestUtil::SetAllFields(message1); in TEST() 485 message1->UnsafeArenaSwap(message2); in TEST() 854 TestAllTypes* message1 = Arena::CreateMessage<TestAllTypes>(&arena); in TEST() local 859 message1->unsafe_arena_set_allocated_optional_string(arena_string); in TEST() 860 EXPECT_EQ(arena_string, message1->mutable_optional_string()); in TEST() 862 message1->unsafe_arena_release_optional_string()); in TEST()
|
/external/protobuf/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()
|
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/rbnf/ |
D | RbnfSampleRuleSets.java | 884 public static final String message1 = field in RbnfSampleRuleSets 1636 message1,
|
/external/mmc-utils/3rdparty/hmac_sha/ |
D | sha2.c | 889 static const char message1[] = "abc"; in main() local 909 sha224((const unsigned char *) message1, strlen(message1), digest); in main() 919 sha256((const unsigned char *) message1, strlen(message1), digest); in main() 929 sha384((const unsigned char *) message1, strlen(message1), digest); in main() 939 sha512((const unsigned char *) message1, strlen(message1), digest); in main()
|
/external/protobuf/csharp/src/Google.Protobuf.Test/Collections/ |
D | RepeatedFieldTest.cs | 300 var message1 = new ForeignMessage { C = 2000 }; in AddEntriesFrom_Message() 307 output.WriteMessage(message1); in AddEntriesFrom_Message() 317 CollectionAssert.AreEqual(new[] { message1, message2}, field); in AddEntriesFrom_Message() 387 var message1 = new ForeignMessage { C = 20 }; in WriteTo_Message() 390 var field = new RepeatedField<ForeignMessage> { message1, message2 }; in WriteTo_Message() 399 Assert.AreEqual(message1, input.ReadMessage(ForeignMessage.Parser)); in WriteTo_Message()
|
/external/ltp/utils/sctp/func_tests/ |
D | test_1_to_1_recvmsg.c | 78 char *message1 = "hello, world!\n"; in main() local 176 count = test_send(acpt_sk, message1, strlen(message), 0); in main()
|
/external/libmojo/mojo/public/cpp/bindings/tests/ |
D | connector_unittest.cc | 306 Message message1; in TEST_F() local 307 AllocMessage(kText, &message1); in TEST_F() 310 message1.mutable_handles()->push_back(pipe.handle0.release()); in TEST_F() 312 connector0.Accept(&message1); in TEST_F() 315 EXPECT_TRUE(message1.handles()->empty()); in TEST_F()
|
/external/protobuf/python/google/protobuf/internal/ |
D | reflection_test.py | 1418 message1 = unittest_pb2.TestAllTypes() 1423 message1.optional_nested_message 1424 self.assertFalse(message1.HasField('optional_nested_message')) 1427 message2.MergeFrom(message1) 1601 message1 = proto.repeated_message.add() 1603 message1.a = message1.b = message1.c = 0 1609 message1 = proto.Extensions[extension].add() 1612 message1.a = 1 1613 message1.b = 1 1614 message1.c = 1 [all …]
|
D | unknown_fields_test.py | 97 message1 = message_set_extensions_pb2.TestMessageSetExtension1() 98 message1.i = 12345 99 item.message = message1.SerializeToString()
|
/external/llvm/test/CodeGen/ARM/ |
D | fast-isel-intrinsic.ll | 12 @message1 = global [60 x i8] c"The LLVM Compiler Infrastructure\00\00\00\00\00\00\00\00\00\00\00\00… 17 ; ARM: {{(movw r0, :lower16:_?message1)|(ldr r0, .LCPI)}} 18 ; ARM: {{(movt r0, :upper16:_?message1)|(ldr r0, \[r0\])}} 35 ; THUMB: {{(movw r0, :lower16:_?message1)|(ldr.n r0, .LCPI)}} 36 ; THUMB: {{(movt r0, :upper16:_?message1)|(ldr r0, \[r0\])}} 47 …call void @llvm.memset.p0i8.i32(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @message1, i32 0…
|
/external/protobuf/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()
|
/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()
|