Home
last modified time | relevance | path

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

12

/third_party/protobuf/src/google/protobuf/
Ddescriptor_database_unittest.cc178 TEST_P(DescriptorDatabaseTest, FindFileByName) { in TEST_P() argument
188 EXPECT_TRUE(database_->FindFileByName("foo.proto", &file)); in TEST_P()
195 EXPECT_TRUE(database_->FindFileByName("bar.proto", &file)); in TEST_P()
203 EXPECT_FALSE(database_->FindFileByName("baz.proto", &file)); in TEST_P()
623 TEST_F(MergedDescriptorDatabaseTest, FindFileByName) { in TEST_F() argument
627 EXPECT_TRUE(forward_merged_.FindFileByName("foo.proto", &file)); in TEST_F()
635 EXPECT_TRUE(forward_merged_.FindFileByName("bar.proto", &file)); in TEST_F()
643 EXPECT_TRUE(forward_merged_.FindFileByName("baz.proto", &file)); in TEST_F()
651 EXPECT_TRUE(reverse_merged_.FindFileByName("baz.proto", &file)); in TEST_F()
659 EXPECT_FALSE(forward_merged_.FindFileByName("no_such.proto", &file)); in TEST_F()
Ddescriptor_database.h78 virtual bool FindFileByName(const std::string& filename,
177 bool FindFileByName(const std::string& filename,
308 bool FindFileByName(const std::string& filename,
341 bool FindFileByName(const std::string& filename,
371 bool FindFileByName(const std::string& filename,
Ddescriptor_database.cc81 if (!db->FindFileByName(f, &file_proto)) { in ForAllFileProtos()
355 bool SimpleDescriptorDatabase::FindFileByName(const std::string& filename, in FindFileByName() function in google::protobuf::SimpleDescriptorDatabase
576 bool EncodedDescriptorDatabase::FindFileByName(const std::string& filename, in FindFileByName() function in google::protobuf::EncodedDescriptorDatabase
896 bool DescriptorPoolDatabase::FindFileByName(const std::string& filename, in FindFileByName() function in google::protobuf::DescriptorPoolDatabase
898 const FileDescriptor* file = pool_.FindFileByName(filename); in FindFileByName()
956 bool MergedDescriptorDatabase::FindFileByName(const std::string& filename, in FindFileByName() function in google::protobuf::MergedDescriptorDatabase
959 if (sources_[i]->FindFileByName(filename, output)) { in FindFileByName()
976 if (sources_[j]->FindFileByName(output->name(), &temp)) { in FindFileContainingSymbol()
999 if (sources_[j]->FindFileByName(output->name(), &temp)) { in FindFileContainingExtension()
Ddescriptor_unittest.cc2747 return pool_->FindFileByName(proto.name()); in BuildFile()
2777 EXPECT_EQ(bar_file_, pool_->FindFileByName(bar_file_->name())); in TEST_P()
2778 EXPECT_TRUE(pool_->FindFileByName(baz_file->name()) == nullptr); in TEST_P()
6660 bool FindFileByName(const std::string& filename, in FindFileByName() function in google::protobuf::descriptor_unittest::DatabaseBackedPoolTest::ErrorDescriptorDatabase
6705 bool FindFileByName(const std::string& filename, in FindFileByName() function in google::protobuf::descriptor_unittest::DatabaseBackedPoolTest::CallCountingDatabase
6708 return wrapped_db_->FindFileByName(filename, output); in FindFileByName()
6736 bool FindFileByName(const std::string& filename, in FindFileByName() function in google::protobuf::descriptor_unittest::DatabaseBackedPoolTest::FalsePositiveDatabase
6738 return wrapped_db_->FindFileByName(filename, output); in FindFileByName()
6742 return FindFileByName("foo.proto", output); in FindFileContainingSymbol()
6747 return FindFileByName("foo.proto", output); in FindFileContainingExtension()
[all …]
Ddescriptor.cc1381 const FileDescriptor* DescriptorPool::FindFileByName( in FindFileByName() function in google::protobuf::DescriptorPool
1391 result = underlay_->FindFileByName(name); in FindFileByName()
1878 if (!fallback_database_->FindFileByName(name_string, &file_proto) || in TryFindFileInFallbackDatabase()
4318 pool_->underlay_->FindFileByName(proto.dependency(i)) == in BuildFile()
4439 dependency = pool_->underlay_->FindFileByName(proto.dependency(i)); in BuildFileImpl()
7386 dependencies_[i] = pool_->FindFileByName(*dependencies_names_[i]); in InternalDependenciesOnceInit()
/third_party/protobuf/benchmarks/util/
Dprotoc-gen-gogoproto.cc46 (new_pool_.FindFileByName(file->name()) == nullptr); in GenerateAll()
48 can_generate &= (new_pool_.FindFileByName( in GenerateAll()
52 can_generate &= (new_pool_.FindFileByName( in GenerateAll()
56 can_generate &= (new_pool_.FindFileByName( in GenerateAll()
Dprotoc-gen-proto2_to_proto3.cc84 if (GetPool()->FindFileByName(file->name()) != nullptr) { in CanGenerate()
88 if (GetPool()->FindFileByName(file->dependency(j)->name()) == nullptr) { in CanGenerate()
93 if (GetPool()->FindFileByName( in CanGenerate()
99 if (GetPool()->FindFileByName( in CanGenerate()
/third_party/protobuf/python/google/protobuf/internal/
Ddescriptor_pool_test.py74 file_desc1 = self.pool.FindFileByName(name1)
81 file_desc2 = self.pool.FindFileByName(name2)
89 self.pool.FindFileByName('Does not exist')
266 self.assertRaises(error_type, self.pool.FindFileByName, 0)
344 factory_test2 = self.pool.FindFileByName(
362 self.pool.FindFileByName(
427 file_descriptor = symbol_database.Default().pool.FindFileByName(
443 file_descriptor = self.pool.FindFileByName(
541 pool.FindFileByName(unittest_fd.name)
543 pool.FindFileByName(conflict_fd.name)
[all …]
Ddescriptor_database_test.py63 self.assertEqual(file_desc_proto, db.FindFileByName(
Dsymbol_database_test.py133 self._Database().pool.FindFileByName(
Dgenerator_test.py355 symbol_database.Default().pool.FindFileByName(
/third_party/protobuf/python/google/protobuf/pyext/
Ddescriptor_pool.cc258 static PyObject* FindFileByName(PyObject* self, PyObject* arg) { in FindFileByName() function
267 py_pool->pool->FindFileByName(StringParam(name, name_size)); in FindFileByName()
493 reinterpret_cast<PyDescriptorPool*>(self)->pool->FindFileByName( in AddFileDescriptor()
599 generated_file = self->underlay->FindFileByName(file_proto.name()); in AddSerializedFile()
649 { "FindFileByName", FindFileByName, METH_O,
Ddescriptor_database.h51 bool FindFileByName(const std::string& filename, FileDescriptorProto* output);
Ddescriptor_database.cc111 bool PyDescriptorDatabase::FindFileByName(const std::string& filename, in FindFileByName() function in google::protobuf::python::PyDescriptorDatabase
/third_party/protobuf/src/google/protobuf/compiler/
Dimporter.cc134 bool SourceTreeDescriptorDatabase::FindFileByName(const std::string& filename, in FindFileByName() function in google::protobuf::compiler::SourceTreeDescriptorDatabase
139 fallback_database_->FindFileByName(filename, output)) { in FindFileByName()
231 return pool_.FindFileByName(filename); in Import()
Dplugin.cc117 parsed_files.push_back(pool.FindFileByName(request.file_to_generate(i))); in GenerateCode()
Dimporter.h108 bool FindFileByName(const std::string& filename,
Dcommand_line_interface.cc1091 if (database->FindFileByName(file_descriptor_set.file(j).name(), in PopulateSingleSimpleDescriptorDatabase()
1128 if (!database->FindFileByName(input_file, &file_descriptor)) { in VerifyInputFilesInDescriptors()
1175 descriptor_pool->FindFileByName(input_file); in ParseInputFiles()
1247 fallback_database->FindFileByName(*proto, &fallback_file); in MakeProtoProtoPathRelative()
/third_party/protobuf/python/google/protobuf/
Dsymbol_database.py178 file_desc = self.pool.FindFileByName(file_name)
Ddescriptor_pool.py391 def FindFileByName(self, file_name): member in DescriptorPool
410 file_proto = self._internal_db.FindFileByName(file_name)
413 file_proto = self._descriptor_db.FindFileByName(file_name)
742 direct_deps = [self.FindFileByName(n) for n in file_proto.dependency]
1229 dep_desc = self.FindFileByName(dependency)
Ddescriptor_database.py87 def FindFileByName(self, name): member in DescriptorDatabase
Dmessage_factory.py116 file_desc = self.pool.FindFileByName(file_name)
Ddescriptor.py937 return _message.default_pool.FindFileByName(name)
1078 result = _message.default_pool.FindFileByName(file_descriptor_proto.name)
/third_party/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_bootstrap_unittest.cc189 pool.FindFileByName("google/protobuf/descriptor.proto"), parameter, in TEST()
/third_party/protobuf/
Dlibprotobuf.map25 …"google::protobuf::DescriptorPool::FindFileByName(std::__cxx11::basic_string<char, std::char_trait…
143 …"google::protobuf::DescriptorPool::FindFileByName(std::__1::basic_string<char, std::__1::char_trai…

12