Home
last modified time | relevance | path

Searched refs:parsing_merge (Results 1 – 3 of 3) sorted by relevance

/external/protobuf/src/google/protobuf/
Dmessage_unittest.cc376 unittest::TestParsingMerge parsing_merge; in TEST() local
377 parsing_merge.ParseFromString(buffer); in TEST()
380 ExpectMessageMerged(parsing_merge.required_all_types()); in TEST()
381 ExpectMessageMerged(parsing_merge.optional_all_types()); in TEST()
383 parsing_merge.optionalgroup().optional_group_all_types()); in TEST()
385 parsing_merge.GetExtension(unittest::TestParsingMerge::optional_ext)); in TEST()
388 EXPECT_EQ(3, parsing_merge.repeated_all_types_size()); in TEST()
389 EXPECT_EQ(3, parsing_merge.repeatedgroup_size()); in TEST()
390 EXPECT_EQ(3, parsing_merge.ExtensionSize( in TEST()
Dlite_unittest.cc200 google::protobuf::unittest::TestParsingMergeLite parsing_merge; in main() local
201 parsing_merge.ParseFromString(buffer); in main()
204 ExpectMessageMerged(parsing_merge.required_all_types()); in main()
205 ExpectMessageMerged(parsing_merge.optional_all_types()); in main()
207 parsing_merge.optionalgroup().optional_group_all_types()); in main()
208 ExpectMessageMerged(parsing_merge.GetExtension( in main()
212 GOOGLE_CHECK(parsing_merge.repeated_all_types_size() == 3); in main()
213 GOOGLE_CHECK(parsing_merge.repeatedgroup_size() == 3); in main()
214 GOOGLE_CHECK(parsing_merge.ExtensionSize( in main()
/external/protobuf/python/google/protobuf/internal/
Dmessage_test.py1090 parsing_merge = unittest_pb2.TestParsingMerge()
1091 parsing_merge.ParseFromString(data)
1094 self.assertEqual(parsing_merge.required_all_types, merged_message)
1095 self.assertEqual(parsing_merge.optional_all_types, merged_message)
1096 self.assertEqual(parsing_merge.optionalgroup.optional_group_all_types,
1098 self.assertEqual(parsing_merge.Extensions[
1103 self.assertEqual(len(parsing_merge.repeated_all_types), 3)
1104 self.assertEqual(len(parsing_merge.repeatedgroup), 3)
1105 self.assertEqual(len(parsing_merge.Extensions[