diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2018-01-31 23:21:41 +0100 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2018-01-31 23:21:41 +0100 |
commit | 889bb7fde4c3f8f36c3821e16b0b66870e68526d (patch) | |
tree | 93e408ff395458ccad6af857b7481ef725aafdb6 /test/cpp/performance/writes_per_rpc_test.cc | |
parent | 18f27376c531e857d8fb946d758c81880023ed42 (diff) |
calling create in default param is against code style
Diffstat (limited to 'test/cpp/performance/writes_per_rpc_test.cc')
-rw-r--r-- | test/cpp/performance/writes_per_rpc_test.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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<InProcessCHTTP2> fixture(new InProcessCHTTP2(&service)); + std::unique_ptr<InProcessCHTTP2> fixture( + new InProcessCHTTP2(&service, grpc_passthru_endpoint_stats_create())); EchoRequest send_request; EchoResponse send_response; EchoResponse recv_response; |