Home
last modified time | relevance | path

Searched refs:FindEnumValueByName (Results 1 – 4 of 4) sorted by relevance

/external/protobuf/src/google/protobuf/
Ddescriptor_unittest.cc308 TEST_F(FileDescriptorTest, FindEnumValueByName) { in TEST_F() argument
309 EXPECT_EQ(foo_enum_value_, foo_file_->FindEnumValueByName("FOO_ENUM_VALUE")); in TEST_F()
310 EXPECT_EQ(bar_enum_value_, bar_file_->FindEnumValueByName("BAR_ENUM_VALUE")); in TEST_F()
312 EXPECT_TRUE(foo_file_->FindEnumValueByName("BAR_ENUM_VALUE") == NULL); in TEST_F()
313 EXPECT_TRUE(bar_file_->FindEnumValueByName("FOO_ENUM_VALUE") == NULL); in TEST_F()
314 EXPECT_TRUE(baz_file_->FindEnumValueByName("FOO_ENUM_VALUE") == NULL); in TEST_F()
316 EXPECT_TRUE(foo_file_->FindEnumValueByName("NO_SUCH_VALUE") == NULL); in TEST_F()
317 EXPECT_TRUE(foo_file_->FindEnumValueByName("FooMessage") == NULL); in TEST_F()
1440 TEST_F(NestedDescriptorTest, FindEnumValueByName) { in TEST_F() argument
1441 EXPECT_EQ(a_ , message_ ->FindEnumValueByName("A")); in TEST_F()
[all …]
Ddescriptor.h231 const EnumValueDescriptor* FindEnumValueByName(const string& name) const;
1061 const EnumValueDescriptor* FindEnumValueByName(const string& name) const;
1227 const EnumValueDescriptor* FindEnumValueByName(const string& name) const;
Dtest_util.cc2321 pool->FindEnumValueByName("protobuf_unittest.TestAllTypes.FOO"); in ReflectionTester()
2323 pool->FindEnumValueByName("protobuf_unittest.TestAllTypes.BAR"); in ReflectionTester()
2325 pool->FindEnumValueByName("protobuf_unittest.TestAllTypes.BAZ"); in ReflectionTester()
2327 pool->FindEnumValueByName("protobuf_unittest.FOREIGN_FOO"); in ReflectionTester()
2329 pool->FindEnumValueByName("protobuf_unittest.FOREIGN_BAR"); in ReflectionTester()
2331 pool->FindEnumValueByName("protobuf_unittest.FOREIGN_BAZ"); in ReflectionTester()
2333 pool->FindEnumValueByName("protobuf_unittest_import.IMPORT_FOO"); in ReflectionTester()
2335 pool->FindEnumValueByName("protobuf_unittest_import.IMPORT_BAR"); in ReflectionTester()
2337 pool->FindEnumValueByName("protobuf_unittest_import.IMPORT_BAZ"); in ReflectionTester()
Ddescriptor.cc1104 const EnumValueDescriptor* DescriptorPool::FindEnumValueByName( in FindEnumValueByName() function in google::protobuf::DescriptorPool
1288 Descriptor::FindEnumValueByName(const string& key) const { in FindEnumValueByName() function in google::protobuf::Descriptor
1346 FileDescriptor::FindEnumValueByName(const string& key) const { in FindEnumValueByName() function in google::protobuf::FileDescriptor