/third_party/protobuf/src/google/protobuf/util/ |
D | message_differencer.cc | 74 const google::protobuf::Message& message1, const google::protobuf::Message& message2, in ReportAdded() argument 82 const google::protobuf::Message& message1, const google::protobuf::Message& message2, in ReportDeleted() argument 90 const google::protobuf::Message& message1, const google::protobuf::Message& message2, in ReportModified() argument 125 bool IsMatch(const Message& message1, const Message& message2, in IsMatch() argument 128 if (!IsMatchInternal(message1, message2, parent_fields, in IsMatch() 138 const Message& message1, const Message& message2, in IsMatchInternal() argument 147 message1, message2, field, ¤t_parent_fields)) { in IsMatchInternal() 152 message1, message2, field, -1, -1, ¤t_parent_fields)) { in IsMatchInternal() 158 const Reflection* reflection1 = message1.GetReflection(); in IsMatchInternal() 160 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, 247 virtual void ReportAdded(const Message& message1, const Message& message2, 252 const Message& message1, const Message& message2, 257 const Message& message1, const Message& message2, 596 bool Compare(const Message& message1, const Message& message2); 601 const Message& message1, const Message& message2, 643 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()
|
/third_party/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 | 406 UNITTEST::TestAllTypes message1, message2; 408 TestUtil::SetAllFields(&message1); 409 message2.CopyFrom(message1); 419 UNITTEST::TestAllTypes message1, message2; 420 TestUtil::SetAllFields(&message1); 422 TestUtil::ExpectAllFieldsSet(message1); 424 message1.Swap(&message2); 426 TestUtil::ExpectClear(message1); 438 UNITTEST::TestAllTypes message1, message2; 440 message1.set_optional_int32(123); [all …]
|
/third_party/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 | 273 unittest::TestAllExtensions message1, message2; in TEST() local 275 TestUtil::SetAllExtensions(&message1); in TEST() 276 message2.CopyFrom(message1); in TEST() 278 message2.CopyFrom(message1); // exercise copy when fields already exist in TEST() 283 unittest::TestPackedExtensions message1, message2; in TEST() local 285 TestUtil::SetPackedExtensions(&message1); in TEST() 286 message2.CopyFrom(message1); in TEST() 288 message2.CopyFrom(message1); // exercise copy when fields already exist in TEST() 293 unittest::TestAllExtensions message1, message2; in TEST() local 294 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 | map_test.cc | 1992 unittest::TestMap message1, message2; in TEST() local 1994 MapTestUtil::SetMapFields(&message1); in TEST() 1995 message2.CopyFrom(message1); in TEST() 2004 unittest::TestMessageMap message1, message2; in TEST() local 2006 (*message1.mutable_map_int32_message())[0].add_repeated_int32(100); in TEST() 2009 message1.CopyFrom(message2); in TEST() 2012 EXPECT_EQ(1, message1.map_int32_message().at(0).repeated_int32_size()); in TEST() 2013 EXPECT_EQ(101, message1.map_int32_message().at(0).repeated_int32(0)); in TEST() 2017 unittest::TestMap message1, message2; in TEST() local 2019 MapTestUtil::SetMapFields(&message1); in TEST() [all …]
|
D | generated_message_reflection.cc | 360 void Reflection::SwapField(Message* message1, Message* message2, in SwapField() argument 368 MutableRaw<RepeatedField<TYPE> >(message1, field) \ in SwapField() 386 MutableRaw<RepeatedPtrFieldBase>(message1, field) in SwapField() 394 MutableRaw<MapFieldBase>(message1, field) in SwapField() 397 MutableRaw<RepeatedPtrFieldBase>(message1, field) in SwapField() 410 std::swap(*MutableRaw<TYPE>(message1, field), \ in SwapField() 424 if (GetArena(message1) == GetArena(message2)) { in SwapField() 425 std::swap(*MutableRaw<Message*>(message1, field), in SwapField() 428 Message** sub_msg1 = MutableRaw<Message*>(message1, field); in SwapField() 436 *sub_msg1 = (*sub_msg2)->New(message1->GetArena()); in SwapField() [all …]
|
/third_party/node/test/parallel/ |
D | test-worker-message-port-receive-message.js | 8 const message1 = { hello: 'world' }; variable 14 port1.postMessage(message1); 16 assert.deepStrictEqual(receiveMessageOnPort(port2), { message: message1 }); 23 port1.postMessage(message1); 24 assert.deepStrictEqual(receiveMessageOnPort(port2), { message: message1 });
|
/third_party/boost/libs/log/test/run/ |
D | util_ipc_reliable_mq.cpp | 49 const char message1[] = "Hello, world!"; variable 168 BOOST_CHECK(queue_a.try_send(message1, sizeof(message1) - 1u)); in BOOST_AUTO_TEST_CASE() 173 BOOST_CHECK_EQUAL(message_size, sizeof(message1) - 1u); in BOOST_AUTO_TEST_CASE() 174 BOOST_CHECK(std::memcmp(buffer, message1, message_size) == 0); in BOOST_AUTO_TEST_CASE() 194 BOOST_CHECK(queue_a.send(message1, sizeof(message1) - 1u) == queue_t::succeeded); in BOOST_AUTO_TEST_CASE() 198 BOOST_CHECK_EQUAL(message_size, sizeof(message1) - 1u); in BOOST_AUTO_TEST_CASE() 199 BOOST_CHECK(std::memcmp(buffer, message1, message_size) == 0); in BOOST_AUTO_TEST_CASE() 218 BOOST_CHECK(queue_a.send(message1, sizeof(message1) - 1u) == queue_t::succeeded); in BOOST_AUTO_TEST_CASE() 221 queue_t::operation_result res = queue_a.send(message1, sizeof(message1) - 1u); in BOOST_AUTO_TEST_CASE() 229 BOOST_CHECK(queue_a.send(message1, sizeof(message1) - 1u) == queue_t::succeeded); in BOOST_AUTO_TEST_CASE() [all …]
|
/third_party/gettext/gettext-tools/src/ |
D | po-xerror.c | 142 const struct message_ty *message1, in textmode_xerror2() argument 154 if (message1 != NULL && (filename1 == NULL || lineno1 == (size_t)(-1))) in textmode_xerror2() 156 filename1 = message1->pos.file_name; in textmode_xerror2() 157 lineno1 = message1->pos.line_number; in textmode_xerror2() 198 const struct message_ty *message1,
|
D | po-xerror.h | 58 const struct message_ty *message1, 71 const struct message_ty *message1,
|
/third_party/protobuf/js/ |
D | message_test.js | 952 var message1 = new proto.jspb.circulartest.MessageField1; 957 message1.setB(nestMessage2); 961 assertEquals(2, message1.getB().getA()); 969 var message1 = new proto.jspb.circulartest.RepeatedMessageField1; 974 message1.setB(nestMessage2); 978 assertEquals(2, message1.getB().getA()); 985 var message1 = new proto.jspb.circulartest.MapField1; 990 message1.setB(nestMessage2); 994 assertEquals(2, message1.getB().getA()); 1002 var message1 = new proto.jspb.circulartest.NestedMessage1; [all …]
|
/third_party/protobuf/csharp/src/Google.Protobuf.Test/ |
D | Proto3OptionalTest.cs | 137 var message1 = new TestProto3Optional { OptionalInt32 = 0 }; in Equality_IgnoresPresence() 140 Assert.IsTrue(message1.Equals(message2)); in Equality_IgnoresPresence() 141 message1.ClearOptionalInt32(); in Equality_IgnoresPresence()
|
D | IssuesTest.cs | 86 var message1 = new OneofMerging { Nested = new Nested { X = 10 } }; in OneofMerging() 90 var merged = message1.Clone(); in OneofMerging()
|
D | GeneratedMessageTest.cs | 54 var message1 = new TestAllTypes { SingleForeignMessage = new ForeignMessage() }; in EmptyMessageFieldDistinctFromMissingMessageField() 56 EqualityTester.AssertInequality(message1, message2); in EmptyMessageFieldDistinctFromMissingMessageField() 651 var message1 = new TestAllTypes { OneofString = "" }; in Oneof_DefaultValuesNotEqual() 653 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofString, message1.OneofFieldCase); in Oneof_DefaultValuesNotEqual() 655 Assert.AreNotEqual(message1, message2); in Oneof_DefaultValuesNotEqual() 791 var message1 = new TestAllTypes { SingleDouble = SampleNaNs.Regular }; in NaNComparisons() 795 EqualityTester.AssertInequality(message1, message2); in NaNComparisons() 796 EqualityTester.AssertEquality(message1, message3); in NaNComparisons()
|
/third_party/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()
|
D | LiteEqualsAndHashTest.java | 90 TestOneofEquals message1 = builder.build(); in testOneofEquals() local 95 assertFalse(message1.equals(message2)); in testOneofEquals()
|
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | ErrorMessages.cpp | 88 const std::string message1 = gl::err::kWebglBindAttribLocationReservedPrefix; in TEST_P() local 103 expectedMessage.message = message1; in TEST_P()
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | ErrorMessages.cpp | 88 const std::string message1 = gl::err::kWebglBindAttribLocationReservedPrefix; in TEST_P() local 103 expectedMessage.message = message1; in TEST_P()
|
/third_party/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/ |
D | WrappersTest.cs | 389 var message1 = new TestWellKnownTypes { Int32Field = originValue }; in MergingMessageWithZero() 391 message1.MergeFrom(message2); in MergingMessageWithZero() 392 Assert.AreEqual(expectedResult, message1.Int32Field); in MergingMessageWithZero() 516 var message1 = new TestWellKnownTypes { DoubleField = SampleNaNs.Regular }; in NaNComparisons() 520 EqualityTester.AssertInequality(message1, message2); in NaNComparisons() 521 EqualityTester.AssertEquality(message1, message3); in NaNComparisons()
|
/third_party/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()
|