MCPcopy Create free account
hub / github.com/apache/brpc / BuildDependency

Function BuildDependency

test/brpc_proto_unittest.cpp:32–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30using namespace brpc;
31
32void BuildDependency(const FileDescriptor *file_desc, DescriptorPool *pool) {
33 for (int i = 0; i < file_desc->dependency_count(); ++i) {
34 const FileDescriptor *fd = file_desc->dependency(i);
35 BuildDependency(fd, pool);
36 FileDescriptorProto proto;
37 fd->CopyTo(&proto);
38 ASSERT_TRUE(pool->BuildFile(proto) != NULL);
39 }
40 FileDescriptorProto proto;
41 file_desc->CopyTo(&proto);
42 ASSERT_TRUE(pool->BuildFile(proto) != NULL);
43}
44
45TEST(ProtoTest, proto) {
46 policy::RpcMeta meta;

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected