/external/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_unittest.cc | 274 unittest::TestAllTypes message1, message2; in TEST() local 277 message2.CopyFrom(message1); in TEST() 278 TestUtil::ExpectAllFieldsSet(message2); in TEST() 281 message2.CopyFrom(message2); in TEST() 282 TestUtil::ExpectAllFieldsSet(message2); in TEST() 286 unittest::TestAllTypes message1, message2; in TEST() local 290 TestUtil::ExpectClear(message2); in TEST() 291 message1.Swap(&message2); in TEST() 292 TestUtil::ExpectAllFieldsSet(message2); in TEST() 305 unittest::TestAllTypes message1, message2; in TEST() local [all …]
|
/external/protobuf/java/src/test/java/com/google/protobuf/ |
D | LiteTest.java | 75 TestAllTypesLite message2 = TestAllTypesLite.parseFrom(data); in testLite() local 77 assertEquals(123, message2.getOptionalInt32()); in testLite() 78 assertEquals(1, message2.getRepeatedStringCount()); in testLite() 79 assertEquals("hello", message2.getRepeatedString(0)); in testLite() 80 assertEquals(7, message2.getOptionalNestedMessage().getBb()); in testLite() 101 TestAllExtensionsLite message2 = message.toBuilder().build(); in testLiteExtensions() local 103 assertEquals(123, (int) message2.getExtension( in testLiteExtensions() 105 assertEquals(1, message2.getExtensionCount( in testLiteExtensions() 107 assertEquals(1, message2.getExtension( in testLiteExtensions() 109 assertEquals("hello", message2.getExtension( in testLiteExtensions() [all …]
|
D | WireFormatTest.java | 63 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 …]
|
D | DynamicMessageTest.java | 152 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testDynamicMessageSerialization() local 154 TestUtil.assertAllFieldsSet(message2); in testDynamicMessageSerialization() 167 Message message2 = in testDynamicMessageParsing() local 169 reflectionTester.assertAllFieldsSetViaReflection(message2); in testDynamicMessageParsing() 179 TestPackedTypes message2 = TestPackedTypes.parseFrom(rawBytes); in testDynamicMessagePackedSerialization() local 181 TestUtil.assertPackedFieldsSet(message2); in testDynamicMessagePackedSerialization() 194 Message message2 = in testDynamicMessagePackedParsing() local 196 packedReflectionTester.assertPackedFieldsSetViaReflection(message2); in testDynamicMessagePackedParsing()
|
D | CodedInputStreamTest.java | 281 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testReadWholeMessage() local 282 TestUtil.assertAllFieldsSet(message2); in testReadWholeMessage() 286 message2 = TestAllTypes.parseFrom( in testReadWholeMessage() 288 TestUtil.assertAllFieldsSet(message2); in testReadWholeMessage() 370 TestAllTypes message2 = in testReadHugeBlob() local 373 assertEquals(message.getOptionalBytes(), message2.getOptionalBytes()); in testReadHugeBlob() 376 TestAllTypes message3 = TestAllTypes.newBuilder(message2) in testReadHugeBlob()
|
D | AbstractMessageTest.java | 437 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()
|
/external/protobuf/src/google/protobuf/ |
D | reflection_ops_unittest.cc | 58 unittest::TestAllTypes message, message2; in TEST() local 62 ReflectionOps::Copy(message, &message2); in TEST() 64 TestUtil::ExpectAllFieldsSet(message2); in TEST() 67 ReflectionOps::Copy(message2, &message2); in TEST() 68 TestUtil::ExpectAllFieldsSet(message2); in TEST() 72 unittest::TestAllExtensions message, message2; in TEST() local 76 ReflectionOps::Copy(message, &message2); in TEST() 78 TestUtil::ExpectAllExtensionsSet(message2); in TEST() 85 unittest::TestAllTypes message, message2; in TEST() local 90 message2.set_optional_int32(message.optional_int32()); in TEST() [all …]
|
D | lite_unittest.cc | 45 protobuf_unittest::TestAllTypesLite message, message2, message3; in main() local 48 message2.CopyFrom(message); in main() 52 google::protobuf::TestUtilLite::ExpectAllFieldsSet(message2); in main() 61 protobuf_unittest::TestAllExtensionsLite message, message2, message3; in main() local 64 message2.CopyFrom(message); in main() 69 google::protobuf::TestUtilLite::ExpectAllExtensionsSet(message2); in main() 78 protobuf_unittest::TestPackedTypesLite message, message2, message3; in main() local 81 message2.CopyFrom(message); in main() 85 google::protobuf::TestUtilLite::ExpectPackedFieldsSet(message2); in main() 94 protobuf_unittest::TestPackedExtensionsLite message, message2, message3; in main() local [all …]
|
D | generated_message_reflection_unittest.cc | 152 unittest::TestAllTypes message2; in TEST() local 157 reflection->Swap(&message1, &message2); in TEST() 160 TestUtil::ExpectAllFieldsSet(message2); in TEST() 165 unittest::TestAllTypes message2; in TEST() local 168 TestUtil::SetAllFields(&message2); in TEST() 169 TestUtil::ModifyRepeatedFields(&message2); in TEST() 172 reflection->Swap(&message1, &message2); in TEST() 175 TestUtil::ExpectAllFieldsSet(message2); in TEST() 179 reflection->Swap(&message1, &message2); in TEST() 181 EXPECT_EQ(532819, message2.optional_int32()); in TEST() [all …]
|
D | extension_set_unittest.cc | 144 unittest::TestAllExtensions message1, message2; in TEST() local 148 message2.CopyFrom(message1); in TEST() 149 TestUtil::ExpectAllExtensionsSet(message2); in TEST() 153 unittest::TestAllExtensions message1, message2; in TEST() local 158 message2.CopyFrom(upcasted_message); in TEST() 159 TestUtil::ExpectAllExtensionsSet(message2); in TEST() 163 unittest::TestAllExtensions message1, message2; in TEST() local 167 TestUtil::ExpectExtensionsClear(message2); in TEST() 168 message1.Swap(&message2); in TEST() 169 TestUtil::ExpectAllExtensionsSet(message2); in TEST() [all …]
|
D | wire_format_unittest.cc | 372 unittest::TestMessageSetExtension2 message2; in TEST() local 373 EXPECT_TRUE(message2.ParseFromString(raw.item(1).message())); in TEST() 374 EXPECT_EQ("foo", message2.str()); in TEST() 493 unittest::TestRecursiveMessage message2; in TEST() local 494 EXPECT_TRUE(message2.ParseFromCodedStream(&input)); in TEST() 501 unittest::TestRecursiveMessage message2; in TEST() local 502 EXPECT_FALSE(message2.ParseFromCodedStream(&input)); in TEST() 521 unittest::TestEmptyMessage message2; in TEST() local 522 EXPECT_TRUE(message2.ParseFromCodedStream(&input)); in TEST() 529 unittest::TestEmptyMessage message2; in TEST() local [all …]
|
D | generated_message_reflection.cc | 314 Message* message2) const { in Swap() 315 if (message1 == message2) return; in Swap() 325 GOOGLE_CHECK_EQ(message2->GetReflection(), this) in Swap() 334 uint32* has_bits2 = MutableHasBits(message2); in Swap() 348 MutableRaw<RepeatedField<TYPE> >(message2, field)); \ in Swap() 364 MutableRaw<RepeatedPtrFieldBase>(message2, field)); in Swap() 375 *MutableRaw<TYPE>(message2, field)); \ in Swap() 394 *MutableRaw<string*>(message2, field)); in Swap() 406 MutableExtensionSet(message1)->Swap(MutableExtensionSet(message2)); in Swap() 409 MutableUnknownFields(message1)->Swap(MutableUnknownFields(message2)); in Swap()
|
D | descriptor_unittest.cc | 424 DescriptorProto* message2 = AddMessage(&bar_file, "TestMessage2"); in SetUp() local 425 AddField(message2, "foo", 1, in SetUp() 428 AddField(message2, "bar", 2, in SetUp() 431 AddField(message2, "quux", 6, in SetUp() 1186 DescriptorProto* message2 = AddMessage(&bar_file, "TestMessage2"); in SetUp() local 1187 AddNestedMessage(message2, "Foo"); in SetUp() 1188 AddNestedMessage(message2, "Baz"); in SetUp() 1189 EnumDescriptorProto* qux2 = AddNestedEnum(message2, "Qux"); in SetUp() 1191 EnumDescriptorProto* quux2 = AddNestedEnum(message2, "Quux"); in SetUp()
|
D | generated_message_reflection.h | 144 void Swap(Message* message1, Message* message2) const;
|
D | message.h | 422 virtual void Swap(Message* message1, Message* message2) const = 0;
|
/external/apache-harmony/support/src/test/java/tests/support/ |
D | Support_HttpTests.java | 228 String message1 = "test2", message2 = "test3"; in runTests() local 233 os.write(message2.getBytes("ISO8859_1")); in runTests() 248 + message1 + chunkChar + message2).equals(result)); in runTests() 256 String message1 = "test4", message2 = "test5"; in runTests() local 262 os.write(message2.getBytes("ISO8859_1")); in runTests() 277 + result, (chunkChar + message1 + chunkChar + message2) in runTests()
|
/external/dbus/dbus/ |
D | dbus-message-util.c | 1348 DBusMessage *message2; in _dbus_message_test() local 1361 message2 = dbus_message_demarshal (marshalled, len, &error); in _dbus_message_test() 1363 _dbus_assert (message2 != NULL); in _dbus_message_test() 1365 verify_test_message (message2); in _dbus_message_test() 1367 dbus_message_unref (message2); in _dbus_message_test() 1372 message2 = dbus_message_demarshal ("invalid", 7, &error); in _dbus_message_test() 1373 _dbus_assert (message2 == NULL); in _dbus_message_test() 1379 message2 = dbus_message_demarshal ("", 0, &error); in _dbus_message_test() 1380 _dbus_assert (message2 == NULL); in _dbus_message_test()
|
/external/protobuf/python/google/protobuf/internal/ |
D | reflection_test.py | 1152 message2 = proto.Extensions[extension].add() 1158 message2.a = 2 1159 message2.b = 2 1160 message2.c = 2 1229 message2 = unittest_mset_pb2.TestMessageSetExtension2() 1238 message2.MergeFromString(raw.item[0].message) 1240 self.assertEqual(type(message2.str), unicode) 1241 self.assertEqual(message2.str, test_utf8) 1246 self.assertRaises(UnicodeDecodeError, message2.MergeFromString, bytes) 1857 message2 = unittest_mset_pb2.TestMessageSetExtension2() [all …]
|