Searched refs:FindValueByName (Results 1 - 10 of 10) sorted by relevance

/external/chromium_org/third_party/protobuf/src/google/protobuf/
H A Ddescriptor_unittest.cc850 // TestEnum2 is primarily here to test FindValueByName and friends.
929 TEST_F(EnumDescriptorTest, FindValueByName) {
930 EXPECT_EQ(foo_ , enum_ ->FindValueByName("FOO"));
931 EXPECT_EQ(bar_ , enum_ ->FindValueByName("BAR"));
932 EXPECT_EQ(foo2_, enum2_->FindValueByName("FOO"));
933 EXPECT_EQ(baz2_, enum2_->FindValueByName("BAZ"));
935 EXPECT_TRUE(enum_ ->FindValueByName("NO_SUCH_VALUE") == NULL);
936 EXPECT_TRUE(enum_ ->FindValueByName("BAZ" ) == NULL);
937 EXPECT_TRUE(enum2_->FindValueByName("BAR" ) == NULL);
2399 const EnumValueDescriptor* enumv = enumd->FindValueByName("VALU
[all...]
H A Ddescriptor.h612 const EnumValueDescriptor* FindValueByName(const string& name) const;
679 // for its type, then use EnumDescriptor::FindValueByName() or
H A Dgenerated_message_reflection.cc51 const EnumValueDescriptor* d = descriptor->FindValueByName(name);
H A Dtext_format.cc619 enum_value = enum_type->FindValueByName(value);
H A Ddescriptor.cc1207 EnumDescriptor::FindValueByName(const string& key) const { function in class:google::protobuf::EnumDescriptor
3878 // We can't just use field->enum_type()->FindValueByName() here
4727 enum_value = enum_type->FindValueByName(value_name);
/external/protobuf/src/google/protobuf/
H A Ddescriptor_unittest.cc848 // TestEnum2 is primarily here to test FindValueByName and friends.
927 TEST_F(EnumDescriptorTest, FindValueByName) {
928 EXPECT_EQ(foo_ , enum_ ->FindValueByName("FOO"));
929 EXPECT_EQ(bar_ , enum_ ->FindValueByName("BAR"));
930 EXPECT_EQ(foo2_, enum2_->FindValueByName("FOO"));
931 EXPECT_EQ(baz2_, enum2_->FindValueByName("BAZ"));
933 EXPECT_TRUE(enum_ ->FindValueByName("NO_SUCH_VALUE") == NULL);
934 EXPECT_TRUE(enum_ ->FindValueByName("BAZ" ) == NULL);
935 EXPECT_TRUE(enum2_->FindValueByName("BAR" ) == NULL);
3880 EXPECT_TRUE(test_enum->FindValueByName("NO_SUCH_VALU
[all...]
H A Ddescriptor.h565 const EnumValueDescriptor* FindValueByName(const string& name) const;
621 // for its type, then use EnumDescriptor::FindValueByName() or
H A Dtext_format.cc422 = enum_type->FindValueByName(value);
H A Dgenerated_message_reflection.cc65 const EnumValueDescriptor* d = descriptor->FindValueByName(name);
H A Ddescriptor.cc1116 EnumDescriptor::FindValueByName(const string& key) const { function in class:google::protobuf::EnumDescriptor
3484 // We can't just use field->enum_type()->FindValueByName() here
4281 enum_value = enum_type->FindValueByName(value_name);

Completed in 303 milliseconds