Home
last modified time | relevance | path

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

/external/protobuf/src/google/protobuf/
Ddescriptor_unittest.cc378 TEST_F(FileDescriptorTest, FindEnumValueByName) { in TEST_F() argument
379 EXPECT_EQ(foo_enum_value_, foo_file_->FindEnumValueByName("FOO_ENUM_VALUE")); in TEST_F()
380 EXPECT_EQ(bar_enum_value_, bar_file_->FindEnumValueByName("BAR_ENUM_VALUE")); in TEST_F()
382 EXPECT_TRUE(foo_file_->FindEnumValueByName("BAR_ENUM_VALUE") == NULL); in TEST_F()
383 EXPECT_TRUE(bar_file_->FindEnumValueByName("FOO_ENUM_VALUE") == NULL); in TEST_F()
384 EXPECT_TRUE(baz_file_->FindEnumValueByName("FOO_ENUM_VALUE") == NULL); in TEST_F()
386 EXPECT_TRUE(foo_file_->FindEnumValueByName("NO_SUCH_VALUE") == NULL); in TEST_F()
387 EXPECT_TRUE(foo_file_->FindEnumValueByName("FooMessage") == NULL); in TEST_F()
1687 TEST_F(NestedDescriptorTest, FindEnumValueByName) { in TEST_F() argument
1688 EXPECT_EQ(a_ , message_ ->FindEnumValueByName("A")); in TEST_F()
[all …]
Ddescriptor.h281 const EnumValueDescriptor* FindEnumValueByName(const string& name) const;
1240 const EnumValueDescriptor* FindEnumValueByName(const string& name) const;
1416 const EnumValueDescriptor* FindEnumValueByName(const string& name) const;
Dtest_util.cc2322 pool->FindEnumValueByName("protobuf_unittest.TestAllTypes.FOO"); in ReflectionTester()
2324 pool->FindEnumValueByName("protobuf_unittest.TestAllTypes.BAR"); in ReflectionTester()
2326 pool->FindEnumValueByName("protobuf_unittest.TestAllTypes.BAZ"); in ReflectionTester()
2328 pool->FindEnumValueByName("protobuf_unittest.FOREIGN_FOO"); in ReflectionTester()
2330 pool->FindEnumValueByName("protobuf_unittest.FOREIGN_BAR"); in ReflectionTester()
2332 pool->FindEnumValueByName("protobuf_unittest.FOREIGN_BAZ"); in ReflectionTester()
2334 pool->FindEnumValueByName("protobuf_unittest_import.IMPORT_FOO"); in ReflectionTester()
2336 pool->FindEnumValueByName("protobuf_unittest_import.IMPORT_BAR"); in ReflectionTester()
2338 pool->FindEnumValueByName("protobuf_unittest_import.IMPORT_BAZ"); in ReflectionTester()
Dmap_test_util.cc217 map_enum_foo_ = pool->FindEnumValueByName("protobuf_unittest.MAP_ENUM_FOO"); in MapReflectionTester()
218 map_enum_bar_ = pool->FindEnumValueByName("protobuf_unittest.MAP_ENUM_BAR"); in MapReflectionTester()
219 map_enum_baz_ = pool->FindEnumValueByName("protobuf_unittest.MAP_ENUM_BAZ"); in MapReflectionTester()
Ddescriptor.cc1250 const EnumValueDescriptor* DescriptorPool::FindEnumValueByName( in FindEnumValueByName() function in google::protobuf::DescriptorPool
1434 Descriptor::FindEnumValueByName(const string& key) const { in FindEnumValueByName() function in google::protobuf::Descriptor
1497 FileDescriptor::FindEnumValueByName(const string& key) const { in FindEnumValueByName() function in google::protobuf::FileDescriptor
/external/protobuf/python/google/protobuf/pyext/
Ddescriptor_containers.cc1130 return GetDescriptor(self)->FindEnumValueByName(name); in GetByName()