MCPcopy Create free account
hub / github.com/apache/impala / SendSimpleCall

Method SendSimpleCall

be/src/kudu/rpc/rpc_stub-test.cc:88–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 }
87 protected:
88 void SendSimpleCall() {
89 CalculatorServiceProxy p(client_messenger_, server_addr_, server_addr_.host());
90
91 RpcController controller;
92 AddRequestPB req;
93 req.set_x(10);
94 req.set_y(20);
95 AddResponsePB resp;
96 ASSERT_OK(p.Add(req, &resp, &controller));
97 ASSERT_EQ(30, resp.result());
98 }
99
100 Sockaddr server_addr_;
101 shared_ptr<Messenger> client_messenger_;

Callers

nothing calls this directly

Calls 3

hostMethod · 0.80
AddMethod · 0.45
resultMethod · 0.45

Tested by

no test coverage detected