Home
last modified time | relevance | path

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

12

/external/protobuf/src/google/protobuf/
Ddescriptor_database_unittest.cc188 TEST_P(DescriptorDatabaseTest, FindFileByName) { in TEST_P() argument
198 EXPECT_TRUE(database_->FindFileByName("foo.proto", &file)); in TEST_P()
205 EXPECT_TRUE(database_->FindFileByName("bar.proto", &file)); in TEST_P()
213 EXPECT_FALSE(database_->FindFileByName("baz.proto", &file)); in TEST_P()
567 TEST_F(MergedDescriptorDatabaseTest, FindFileByName) { in TEST_F() argument
571 EXPECT_TRUE(forward_merged_.FindFileByName("foo.proto", &file)); in TEST_F()
579 EXPECT_TRUE(forward_merged_.FindFileByName("bar.proto", &file)); in TEST_F()
587 EXPECT_TRUE(forward_merged_.FindFileByName("baz.proto", &file)); in TEST_F()
595 EXPECT_TRUE(reverse_merged_.FindFileByName("baz.proto", &file)); in TEST_F()
603 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.cc266 bool SimpleDescriptorDatabase::FindFileByName( in FindFileByName() function in google::protobuf::SimpleDescriptorDatabase
328 bool EncodedDescriptorDatabase::FindFileByName( in FindFileByName() function in google::protobuf::EncodedDescriptorDatabase
396 bool DescriptorPoolDatabase::FindFileByName( in FindFileByName() function in google::protobuf::DescriptorPoolDatabase
399 const FileDescriptor* file = pool_.FindFileByName(filename); in FindFileByName()
461 bool MergedDescriptorDatabase::FindFileByName( in FindFileByName() function in google::protobuf::MergedDescriptorDatabase
465 if (sources_[i]->FindFileByName(filename, output)) { in FindFileByName()
483 if (sources_[j]->FindFileByName(output->name(), &temp)) { in FindFileContainingSymbol()
507 if (sources_[j]->FindFileByName(output->name(), &temp)) { in FindFileContainingExtension()
Ddescriptor_unittest.cc2453 return pool_->FindFileByName(proto.name()); in BuildFile()
2483 EXPECT_EQ(bar_file_, pool_->FindFileByName(bar_file_->name())); in TEST_P()
2484 EXPECT_TRUE(pool_->FindFileByName(baz_file->name()) == NULL); in TEST_P()
5897 bool FindFileByName(const string& filename, in FindFileByName() function in google::protobuf::descriptor_unittest::DatabaseBackedPoolTest::ErrorDescriptorDatabase
5944 bool FindFileByName(const string& filename, in FindFileByName() function in google::protobuf::descriptor_unittest::DatabaseBackedPoolTest::CallCountingDatabase
5947 return wrapped_db_->FindFileByName(filename, output); in FindFileByName()
5975 bool FindFileByName(const string& filename, in FindFileByName() function in google::protobuf::descriptor_unittest::DatabaseBackedPoolTest::FalsePositiveDatabase
5977 return wrapped_db_->FindFileByName(filename, output); in FindFileByName()
5981 return FindFileByName("foo.proto", output); in FindFileContainingSymbol()
5986 return FindFileByName("foo.proto", output); in FindFileContainingExtension()
[all …]
Dempty.pb.cc35 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( in protobuf_AssignDesc_google_2fprotobuf_2fempty_2eproto()
Dfield_mask.pb.cc35 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( in protobuf_AssignDesc_google_2fprotobuf_2ffield_5fmask_2eproto()
Dduration.pb.cc35 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( in protobuf_AssignDesc_google_2fprotobuf_2fduration_2eproto()
Dsource_context.pb.cc35 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( in protobuf_AssignDesc_google_2fprotobuf_2fsource_5fcontext_2eproto()
Dtimestamp.pb.cc35 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( in protobuf_AssignDesc_google_2fprotobuf_2ftimestamp_2eproto()
/external/protobuf/python/google/protobuf/internal/
Ddescriptor_pool_test.py75 file_desc1 = self.pool.FindFileByName(name1)
82 file_desc2 = self.pool.FindFileByName(name2)
90 self.pool.FindFileByName('Does not exist')
301 file_descriptor = symbol_database.Default().pool.FindFileByName(
311 file_descriptor = self.pool.FindFileByName(
365 file_desc = pool.FindFileByName(self.name)
543 pool.FindFileByName(
579 pool.FindFileByName(
600 pool.FindFileByName(
613 self.assertRaises(KeyError, pool.FindFileByName, proto_file_name)
[all …]
Ddescriptor_database_test.py55 self.assertEqual(file_desc_proto, db.FindFileByName(
Dsymbol_database_test.py124 self._Database().pool.FindFileByName(
/external/protobuf/python/google/protobuf/pyext/
Ddescriptor_pool.cc221 PyObject* FindFileByName(PyDescriptorPool* self, PyObject* arg) { in FindFileByName() function
229 self->pool->FindFileByName(string(name, name_size)); in FindFileByName()
341 self->pool->FindFileByName(file_descriptor->name())) { in AddFileDescriptor()
436 generated_file = self->underlay->FindFileByName(file_proto.name()); in AddSerializedFile()
482 { "FindFileByName", (PyCFunction)FindFileByName, METH_O,
Ddescriptor_database.h51 bool FindFileByName(const string& filename,
Ddescriptor_database.cc111 bool PyDescriptorDatabase::FindFileByName(const string& filename, in FindFileByName() function in google::protobuf::python::PyDescriptorDatabase
/external/grpc-grpc/test/cpp/util/
Dproto_reflection_descriptor_database.cc59 bool ProtoReflectionDescriptorDatabase::FindFileByName( in FindFileByName() function in grpc::ProtoReflectionDescriptorDatabase
61 if (cached_db_.FindFileByName(filename, output)) { in FindFileByName()
103 return cached_db_.FindFileByName(filename, output); in FindFileByName()
Dproto_reflection_descriptor_database.h49 bool FindFileByName(const string& filename,
/external/protobuf/python/google/protobuf/
Ddescriptor_pool.py179 def FindFileByName(self, file_name): member in DescriptorPool
198 file_proto = self._internal_db.FindFileByName(file_name)
201 file_proto = self._descriptor_db.FindFileByName(file_name)
321 direct_deps = [self.FindFileByName(n) for n in file_proto.dependency]
709 dep_desc = self.FindFileByName(dependency)
Ddescriptor_database.py80 def FindFileByName(self, name): member in DescriptorDatabase
Dmessage_factory.py105 file_desc = self.pool.FindFileByName(file_name)
/external/protobuf/src/google/protobuf/compiler/
Dimporter.cc126 bool SourceTreeDescriptorDatabase::FindFileByName( in FindFileByName() function in google::protobuf::compiler::SourceTreeDescriptorDatabase
214 return pool_.FindFileByName(filename); in Import()
Dplugin.cc110 parsed_files.push_back(pool.FindFileByName(request.file_to_generate(i))); in GenerateCode()
Dimporter.h99 bool FindFileByName(const string& filename, FileDescriptorProto* output);
/external/grpc-grpc/src/python/grpcio_reflection/grpc_reflection/v1alpha/
Dreflection.py59 descriptor = self._pool.FindFileByName(filename)
/external/grpc-grpc/src/cpp/ext/
Dproto_server_reflection.cc120 descriptor_pool_->FindFileByName(filename); in GetFileByName()

12