| 41 | class EchoServerImpl : public test::EchoService { |
| 42 | public: |
| 43 | virtual void Echo(google::protobuf::RpcController* controller, |
| 44 | const ::test::EchoRequest* request, |
| 45 | test::EchoResponse* response, |
| 46 | google::protobuf::Closure* done) { |
| 47 | brpc::ClosureGuard done_guard(done); |
| 48 | response->set_message(request->message()); |
| 49 | |
| 50 | brpc::Controller* cntl = static_cast<brpc::Controller*>(controller); |
| 51 | LOG(NOTICE) << "protocol:" << cntl->request_protocol(); |
| 52 | } |
| 53 | }; |
| 54 | |
| 55 | class ALPNTest : public testing::Test { |
nothing calls this directly
no test coverage detected