From 93ddc61c1084e2c312edf00ac7c7cf6d5f8d8aa3 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Wed, 2 Sep 2015 07:57:48 -0700 Subject: Fix compilation --- test/cpp/end2end/streaming_throughput_test.cc | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'test/cpp') diff --git a/test/cpp/end2end/streaming_throughput_test.cc b/test/cpp/end2end/streaming_throughput_test.cc index d5312a90c1..63d49c0425 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. -- cgit v1.2.3