Home
last modified time | relevance | path

Searched refs:FindFileByName (Results 1 – 21 of 21) sorted by relevance

/external/protobuf/src/google/protobuf/
Ddescriptor_database_unittest.cc182 TEST_P(DescriptorDatabaseTest, FindFileByName) { in TEST_P() argument
192 EXPECT_TRUE(database_->FindFileByName("foo.proto", &file)); in TEST_P()
199 EXPECT_TRUE(database_->FindFileByName("bar.proto", &file)); in TEST_P()
207 EXPECT_FALSE(database_->FindFileByName("baz.proto", &file)); in TEST_P()
561 TEST_F(MergedDescriptorDatabaseTest, FindFileByName) { in TEST_F() argument
565 EXPECT_TRUE(forward_merged_.FindFileByName("foo.proto", &file)); in TEST_F()
573 EXPECT_TRUE(forward_merged_.FindFileByName("bar.proto", &file)); in TEST_F()
581 EXPECT_TRUE(forward_merged_.FindFileByName("baz.proto", &file)); in TEST_F()
589 EXPECT_TRUE(reverse_merged_.FindFileByName("baz.proto", &file)); in TEST_F()
597 EXPECT_FALSE(forward_merged_.FindFileByName("no_such.proto", &file)); in TEST_F()
Ddescriptor_database.h72 virtual bool FindFileByName(const string& filename,
145 bool FindFileByName(const string& filename,
290 bool FindFileByName(const string& filename,
319 bool FindFileByName(const string& filename,
348 bool FindFileByName(const string& filename,
Ddescriptor_database.cc267 bool SimpleDescriptorDatabase::FindFileByName( in FindFileByName() function in google::protobuf::SimpleDescriptorDatabase
329 bool EncodedDescriptorDatabase::FindFileByName( in FindFileByName() function in google::protobuf::EncodedDescriptorDatabase
397 bool DescriptorPoolDatabase::FindFileByName( in FindFileByName() function in google::protobuf::DescriptorPoolDatabase
400 const FileDescriptor* file = pool_.FindFileByName(filename); in FindFileByName()
462 bool MergedDescriptorDatabase::FindFileByName( in FindFileByName() function in google::protobuf::MergedDescriptorDatabase
466 if (sources_[i]->FindFileByName(filename, output)) { in FindFileByName()
484 if (sources_[j]->FindFileByName(output->name(), &temp)) { in FindFileContainingSymbol()
508 if (sources_[j]->FindFileByName(output->name(), &temp)) { in FindFileContainingExtension()
Ddescriptor_unittest.cc2128 return pool_->FindFileByName(proto.name()); in BuildFile()
2158 EXPECT_EQ(bar_file_, pool_->FindFileByName(bar_file_->name())); in TEST_P()
2159 EXPECT_TRUE(pool_->FindFileByName(baz_file->name()) == NULL); in TEST_P()
4785 bool FindFileByName(const string& filename, in FindFileByName() function in google::protobuf::descriptor_unittest::DatabaseBackedPoolTest::ErrorDescriptorDatabase
4832 bool FindFileByName(const string& filename, in FindFileByName() function in google::protobuf::descriptor_unittest::DatabaseBackedPoolTest::CallCountingDatabase
4835 return wrapped_db_->FindFileByName(filename, output); in FindFileByName()
4863 bool FindFileByName(const string& filename, in FindFileByName() function in google::protobuf::descriptor_unittest::DatabaseBackedPoolTest::FalsePositiveDatabase
4865 return wrapped_db_->FindFileByName(filename, output); in FindFileByName()
4869 return FindFileByName("foo.proto", output); in FindFileContainingSymbol()
4874 return FindFileByName("foo.proto", output); in FindFileContainingExtension()
[all …]
Ddescriptor.cc1028 const FileDescriptor* DescriptorPool::FindFileByName(const string& name) const { in FindFileByName() function in google::protobuf::DescriptorPool
1035 result = underlay_->FindFileByName(name); in FindFileByName()
1417 if (!fallback_database_->FindFileByName(name, &file_proto) || in TryFindFileInFallbackDatabase()
3335 pool_->underlay_->FindFileByName(proto.dependency(i)) == NULL)) { in BuildFile()
3408 dependency = pool_->underlay_->FindFileByName(proto.dependency(i)); in BuildFile()
Ddescriptor.h1208 const FileDescriptor* FindFileByName(const string& name) const;
Ddescriptor.pb.cc98 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto()
/external/nanopb-c/generator/google/protobuf/
Ddescriptor_pool.py92 def FindFileByName(self, file_name): member in DescriptorPool
106 file_proto = self._internal_db.FindFileByName(file_name)
109 file_proto = self._descriptor_db.FindFileByName(file_name)
193 dep_desc = self.FindFileByName(dependency.name)
522 dep_desc = self.FindFileByName(dependency)
Ddescriptor_database.py59 def FindFileByName(self, name): member in DescriptorDatabase
/external/protobuf/python/google/protobuf/internal/
Ddescriptor_pool_test.py66 file_desc1 = self.pool.FindFileByName(name1)
73 file_desc2 = self.pool.FindFileByName(name2)
81 self.pool.FindFileByName('Does not exist')
250 file_desc = pool.FindFileByName(self.name)
426 pool.FindFileByName(
460 pool.FindFileByName(
477 pool.FindFileByName(
Ddescriptor_database_test.py51 self.assertEquals(file_desc_proto, db.FindFileByName(
Dsymbol_database_test.py115 self._Database().pool.FindFileByName(
Dgenerator_test.py339 symbol_database.Default().pool.FindFileByName(
/external/protobuf/python/google/protobuf/
Ddescriptor_pool.py158 def FindFileByName(self, file_name): member in DescriptorPool
177 file_proto = self._internal_db.FindFileByName(file_name)
181 file_proto = self._descriptor_db.FindFileByName(file_name)
269 direct_deps = [self.FindFileByName(n) for n in file_proto.dependency]
614 dep_desc = self.FindFileByName(dependency)
Ddescriptor_database.py76 def FindFileByName(self, name): member in DescriptorDatabase
Dmessage_factory.py113 file_desc = self.pool.FindFileByName(file_name)
/external/protobuf/src/google/protobuf/compiler/
Dimporter.cc123 bool SourceTreeDescriptorDatabase::FindFileByName( in FindFileByName() function in google::protobuf::compiler::SourceTreeDescriptorDatabase
198 return pool_.FindFileByName(filename); in Import()
Dplugin.cc124 parsed_files.push_back(pool.FindFileByName(request.file_to_generate(i))); in PluginMain()
Dimporter.h99 bool FindFileByName(const string& filename, FileDescriptorProto* output);
Dplugin.pb.cc41 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( in protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto()
/external/protobuf/python/google/protobuf/pyext/
Ddescriptor.cc324 if (google::protobuf::DescriptorPool::generated_pool()->FindFileByName( in Python_BuildFile()