diff --git a/test/cpp/end2end/streaming_throughput_test.cc b/test/cpp/end2end/streaming_throughput_test.cc index d5312a90c18..63d49c0425e 100644 --- a/test/cpp/end2end/streaming_throughput_test.cc +++ b/test/cpp/end2end/streaming_throughput_test.cc @@ -35,17 +35,17 @@ #include #include -#include -#include -#include #include #include #include -#include +#include +#include #include #include #include -#include +#include +#include +#include #include #include "test/core/util/port.h" @@ -92,8 +92,7 @@ const char* kLargeString = "(" "With this regard their currents turn awry" "And lose the name of action.- Soft you now!" "The fair Ophelia!- Nymph, in thy orisons" - "Be all my sins rememb'red." -); + "Be all my sins rememb'red."; namespace grpc { namespace testing { @@ -115,7 +114,7 @@ class TestServiceImpl : public ::grpc::cpp::test::util::TestService::Service { GRPC_OVERRIDE { EchoRequest request; std::atomic should_exit(false); - std::thread sender(std::bind(&TestServiceImpl::BidiStream_Sender, stream, should_exit)); + std::thread sender(std::bind(&TestServiceImpl::BidiStream_Sender, stream, &should_exit)); while (stream->Read(&request)) { std::this_thread::sleep_for(std::chrono::milliseconds(3)); @@ -143,7 +142,7 @@ class End2endTest : public ::testing::Test { void ResetStub() { std::shared_ptr channel = CreateChannel( - server_address_.str(), InsecureCredentials(), ChannelArguments()); + server_address_.str(), InsecureCredentials()); stub_ = std::move(grpc::cpp::test::util::TestService::NewStub(channel)); } @@ -153,7 +152,7 @@ class End2endTest : public ::testing::Test { TestServiceImpl service_; }; -static void Drainer(ClientReaderWriter* reader) { +static void Drainer(ClientReaderWriter* reader) { EchoResponse response; while (reader->Read(&response)) { // Just drain out the responses as fast as possible.