From 889bb7fde4c3f8f36c3821e16b0b66870e68526d Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Wed, 31 Jan 2018 23:21:41 +0100 Subject: calling create in default param is against code style --- test/cpp/performance/writes_per_rpc_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/cpp/performance') diff --git a/test/cpp/performance/writes_per_rpc_test.cc b/test/cpp/performance/writes_per_rpc_test.cc index 86e3bbcd4e..b7d951a86e 100644 --- a/test/cpp/performance/writes_per_rpc_test.cc +++ b/test/cpp/performance/writes_per_rpc_test.cc @@ -142,8 +142,7 @@ class EndpointPairFixture { class InProcessCHTTP2 : public EndpointPairFixture { public: - InProcessCHTTP2(Service* service, grpc_passthru_endpoint_stats* stats = - grpc_passthru_endpoint_stats_create()) + InProcessCHTTP2(Service* service, grpc_passthru_endpoint_stats* stats) : EndpointPairFixture(service, MakeEndpoints(stats)), stats_(stats) {} virtual ~InProcessCHTTP2() { @@ -169,7 +168,8 @@ static double UnaryPingPong(int request_size, int response_size) { const int kIterations = 10000; EchoTestService::AsyncService service; - std::unique_ptr fixture(new InProcessCHTTP2(&service)); + std::unique_ptr fixture( + new InProcessCHTTP2(&service, grpc_passthru_endpoint_stats_create())); EchoRequest send_request; EchoResponse send_response; EchoResponse recv_response; -- cgit v1.2.3