Searched refs:map_message (Results 1 – 2 of 2) sorted by relevance
2164 unittest::TestRequiredMessageMap map_message; in TEST() local2170 (*map_message.mutable_map_field())[key] = with_dummy4; in TEST()2171 string s = map_message.SerializeAsString(); in TEST()2177 (*map_message.mutable_map_field())[key] = with_dummy5; in TEST()2178 string both = s + map_message.SerializeAsString(); in TEST()2180 ASSERT_TRUE(map_message.ParseFromString(both)); in TEST()2181 ASSERT_EQ(1, map_message.map_field().size()); in TEST()2182 ASSERT_EQ(1, map_message.map_field().count(key)); in TEST()2183 EXPECT_EQ(0, map_message.map_field().find(key)->second.a()); in TEST()2184 EXPECT_EQ(0, map_message.map_field().find(key)->second.b()); in TEST()[all …]
676 protobuf_unittest::TestRequiredMessageMapLite map_message; in main() local679 (*map_message.mutable_map_field())[0]; in main()680 EXPECT_FALSE(map_message.IsInitialized()); in main()683 (*map_message.mutable_map_field())[0].set_a(0); in main()684 (*map_message.mutable_map_field())[0].set_b(0); in main()685 (*map_message.mutable_map_field())[0].set_c(0); in main()686 EXPECT_TRUE(map_message.IsInitialized()); in main()