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

Method GrpcTest

test/brpc_grpc_protocol_unittest.cpp:93–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91class GrpcTest : public ::testing::Test {
92protected:
93 GrpcTest() {
94 EXPECT_EQ(0, _server.AddService(&_svc, brpc::SERVER_DOESNT_OWN_SERVICE));
95 EXPECT_EQ(0, _server.Start(g_server_addr.c_str(), NULL));
96 brpc::ChannelOptions options;
97 options.protocol = g_protocol;
98 options.timeout_ms = g_timeout_ms;
99 EXPECT_EQ(0, _channel.Init(g_server_addr.c_str(), "", &options));
100 }
101
102 virtual ~GrpcTest() {};
103 virtual void SetUp() {};

Callers

nothing calls this directly

Calls 4

AddServiceMethod · 0.80
StartMethod · 0.45
c_strMethod · 0.45
InitMethod · 0.45

Tested by

no test coverage detected