Home
last modified time | relevance | path

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

/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_unittest.cc274 unittest::TestAllTypes message1, message2; in TEST() local
276 TestUtil::SetAllFields(&message1); in TEST()
277 message2.CopyFrom(message1); in TEST()
286 unittest::TestAllTypes message1, message2; in TEST() local
287 TestUtil::SetAllFields(&message1); in TEST()
289 TestUtil::ExpectAllFieldsSet(message1); in TEST()
291 message1.Swap(&message2); in TEST()
293 TestUtil::ExpectClear(message1); in TEST()
305 unittest::TestAllTypes message1, message2; in TEST() local
307 message1.set_optional_int32(123); in TEST()
[all …]
/external/protobuf/src/google/protobuf/
Dgenerated_message_reflection_unittest.cc151 unittest::TestAllTypes message1; in TEST() local
154 TestUtil::SetAllFields(&message1); in TEST()
156 const Reflection* reflection = message1.GetReflection(); in TEST()
157 reflection->Swap(&message1, &message2); in TEST()
159 TestUtil::ExpectClear(message1); in TEST()
164 unittest::TestAllTypes message1; in TEST() local
167 TestUtil::SetAllFields(&message1); in TEST()
171 const Reflection* reflection = message1.GetReflection(); in TEST()
172 reflection->Swap(&message1, &message2); in TEST()
174 TestUtil::ExpectRepeatedFieldsModified(message1); in TEST()
[all …]
Dreflection_ops_unittest.cc140 unittest::TestEmptyMessage message1, message2; in TEST() local
141 message1.mutable_unknown_fields()->AddVarint(1234, 1); in TEST()
144 ReflectionOps::Merge(message2, &message1); in TEST()
146 ASSERT_EQ(2, message1.unknown_fields().field_count()); in TEST()
148 message1.unknown_fields().field(0).type()); in TEST()
149 EXPECT_EQ(1, message1.unknown_fields().field(0).varint()); in TEST()
151 message1.unknown_fields().field(1).type()); in TEST()
152 EXPECT_EQ(2, message1.unknown_fields().field(1).varint()); in TEST()
Dextension_set_unittest.cc144 unittest::TestAllExtensions message1, message2; in TEST() local
147 TestUtil::SetAllExtensions(&message1); in TEST()
148 message2.CopyFrom(message1); in TEST()
153 unittest::TestAllExtensions message1, message2; in TEST() local
155 const Message& upcasted_message = message1; in TEST()
157 TestUtil::SetAllExtensions(&message1); in TEST()
163 unittest::TestAllExtensions message1, message2; in TEST() local
164 TestUtil::SetAllExtensions(&message1); in TEST()
166 TestUtil::ExpectAllExtensionsSet(message1); in TEST()
168 message1.Swap(&message2); in TEST()
[all …]
Dgenerated_message_reflection.cc313 Message* message1, in Swap() argument
315 if (message1 == message2) return; in Swap()
318 GOOGLE_CHECK_EQ(message1->GetReflection(), this) in Swap()
320 << message1->GetDescriptor()->full_name() in Swap()
327 << message1->GetDescriptor()->full_name() in Swap()
333 uint32* has_bits1 = MutableHasBits(message1); in Swap()
347 MutableRaw<RepeatedField<TYPE> >(message1, field)->Swap( \ in Swap()
363 MutableRaw<RepeatedPtrFieldBase>(message1, field)->Swap( in Swap()
374 std::swap(*MutableRaw<TYPE>(message1, field), \ in Swap()
393 std::swap(*MutableRaw<string*>(message1, field), in Swap()
[all …]
Dwire_format_unittest.cc368 unittest::TestMessageSetExtension1 message1; in TEST() local
369 EXPECT_TRUE(message1.ParseFromString(raw.item(0).message())); in TEST()
370 EXPECT_EQ(123, message1.i()); in TEST()
Dgenerated_message_reflection.h144 void Swap(Message* message1, Message* message2) const;
Dmessage.h422 virtual void Swap(Message* message1, Message* message2) const = 0;
/external/apache-harmony/support/src/test/java/tests/support/
DSupport_HttpTests.java228 String message1 = "test2", message2 = "test3"; in runTests() local
231 os.write(message1.getBytes("ISO8859_1")); in runTests()
248 + message1 + chunkChar + message2).equals(result)); in runTests()
256 String message1 = "test4", message2 = "test5"; in runTests() local
260 os.write(message1.getBytes("ISO8859_1")); in runTests()
277 + result, (chunkChar + message1 + chunkChar + message2) in runTests()
/external/protobuf/java/src/test/java/com/google/protobuf/
DAbstractMessageTest.java437 private void checkEqualsIsConsistent(Message message1, Message message2) { in checkEqualsIsConsistent() argument
438 assertEquals(message1, message2); in checkEqualsIsConsistent()
439 assertEquals(message2, message1); in checkEqualsIsConsistent()
440 assertEquals(message2.hashCode(), message1.hashCode()); in checkEqualsIsConsistent()
DWireFormatTest.java362 TestMessageSetExtension1 message1 = in testSerializeMessageSet() local
365 assertEquals(123, message1.getI()); in testSerializeMessageSet()
/external/protobuf/python/google/protobuf/internal/
Dreflection_test.py1143 message1 = proto.repeated_message.add()
1145 message1.a = message1.b = message1.c = 0
1151 message1 = proto.Extensions[extension].add()
1154 message1.a = 1
1155 message1.b = 1
1156 message1.c = 1
1853 message1 = unittest_mset_pb2.TestMessageSetExtension1()
1854 message1.MergeFromString(raw.item[0].message)
1855 self.assertEqual(123, message1.i)
1880 message1 = unittest_mset_pb2.TestMessageSetExtension1()
[all …]
/external/dbus/bus/
Dsignals.c2251 DBusMessage *message1; in test_matching() local
2255 message1 = dbus_message_new (DBUS_MESSAGE_TYPE_SIGNAL); in test_matching()
2256 _dbus_assert (message1 != NULL); in test_matching()
2257 if (!dbus_message_set_member (message1, "Frobated")) in test_matching()
2262 if (!dbus_message_append_args (message1, in test_matching()
2268 check_matching (message1, 1, in test_matching()
2272 dbus_message_unref (message1); in test_matching()
/external/llvm/test/CodeGen/ARM/
Dfast-isel-intrinsic.ll6 @message1 = global [60 x i8] c"The LLVM Compiler Infrastructure\00\00\00\00\00\00\00\00\00\00\00\00…
38 …call void @llvm.memset.p0i8.i32(i8* getelementptr inbounds ([60 x i8]* @message1, i32 0, i32 5), i…