Searched refs:empty_message (Results 1 – 4 of 4) sorted by relevance
/external/protobuf/src/google/protobuf/ |
D | unknown_field_set_unittest.cc | 349 unittest::TestEmptyMessage empty_message; in TEST_F() local 352 ASSERT_TRUE(empty_message.ParseFromString(bizarro_data)); in TEST_F() 356 EXPECT_EQ(empty_message.DebugString(), all_types_message.DebugString()); in TEST_F() 363 unittest::TestEmptyMessage empty_message; in TEST_F() local 368 ASSERT_TRUE(empty_message.ParseFromString(bizarro_data)); in TEST_F() 370 EXPECT_EQ(empty_message.DebugString(), all_types_message.DebugString()); in TEST_F() 400 unittest::TestEmptyMessage empty_message; in TEST_F() local 403 ASSERT_TRUE(empty_message.ParseFromString(bizarro_data)); in TEST_F() 407 EXPECT_EQ(empty_message.DebugString(), all_extensions_message.DebugString()); in TEST_F() 425 TestEmptyMessage empty_message; in TEST_F() local [all …]
|
D | lite_unittest.cc | 69 unittest::TestEmptyMessageLite* empty_message) { in SetAllTypesInEmptyMessageUnknownFields() argument 74 empty_message->ParseFromString(data); in SetAllTypesInEmptyMessageUnknownFields() 78 unittest::TestEmptyMessageLite* empty_message) { in SetSomeTypesInEmptyMessageUnknownFields() argument 86 empty_message->ParseFromString(data); in SetSomeTypesInEmptyMessageUnknownFields() 228 protobuf_unittest::TestEmptyMessageLite empty_message; in TEST() local 232 ASSERT_TRUE(empty_message.ParseFromString(data)); in TEST() 234 data = empty_message.SerializeAsString(); in TEST() 248 protobuf_unittest::TestEmptyMessageLite empty_message; in TEST() local 252 empty_message.ParseFromString(data); in TEST() 254 data = empty_message.SerializeAsString(); in TEST() [all …]
|
/external/protobuf/python/google/protobuf/internal/ |
D | unknown_fields_test.py | 64 self.empty_message = unittest_pb2.TestEmptyMessage() 65 self.empty_message.ParseFromString(self.all_fields_data) 68 data = self.empty_message.SerializeToString() 81 self.assertEqual(self.all_fields.ByteSize(), self.empty_message.ByteSize()) 85 self.assertEqual(0, len(self.empty_message.ListFields())) 114 self.assertEqual(self.empty_message, message) 118 self.assertNotEqual(self.empty_message, message) 121 self.empty_message.DiscardUnknownFields() 122 self.assertEqual(b'', self.empty_message.SerializeToString()) 161 self.empty_message = unittest_pb2.TestEmptyMessage() [all …]
|
D | text_format_test.py | 846 empty_message = unittest_pb2.TestEmptyMessage() 847 empty_message.ParseFromString(all_data) 858 text_format.MessageToString(empty_message, 866 text_format.MessageToString(empty_message,
|