| 300 | {} |
| 301 | virtual ~EchoServiceV1() {} |
| 302 | virtual void Echo(google::protobuf::RpcController* cntl_base, |
| 303 | const v1::EchoRequest* request, |
| 304 | v1::EchoResponse* response, |
| 305 | google::protobuf::Closure* done) { |
| 306 | brpc::Controller* cntl = static_cast<brpc::Controller*>(cntl_base); |
| 307 | brpc::ClosureGuard done_guard(done); |
| 308 | if (request->has_message()) { |
| 309 | response->set_message(request->message() + "_v1"); |
| 310 | } else { |
| 311 | CHECK_EQ(brpc::PROTOCOL_HTTP, cntl->request_protocol()); |
| 312 | cntl->response_attachment() = cntl->request_attachment(); |
| 313 | } |
| 314 | ncalled.fetch_add(1); |
| 315 | } |
| 316 | virtual void Echo2(google::protobuf::RpcController*, |
| 317 | const v1::EchoRequest* request, |
| 318 | v1::EchoResponse* response, |
no test coverage detected