diff options
author | Yang Gao <yangg@google.com> | 2015-03-12 16:40:19 -0700 |
---|---|---|
committer | Yang Gao <yangg@google.com> | 2015-03-12 16:40:19 -0700 |
commit | 4999649653b9262d661eb833724ee28cefedb2bd (patch) | |
tree | 81fde27cf3ed59fa2400b892c31fb49873942d46 /test | |
parent | 179f8684dc87bfccf9b74968afe96fc371eb170e (diff) |
Rename to AsyncGeneric*
Diffstat (limited to 'test')
-rw-r--r-- | test/cpp/end2end/generic_end2end_test.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/cpp/end2end/generic_end2end_test.cc b/test/cpp/end2end/generic_end2end_test.cc index 0dd64007fd..b165eaeb8c 100644 --- a/test/cpp/end2end/generic_end2end_test.cc +++ b/test/cpp/end2end/generic_end2end_test.cc @@ -37,7 +37,7 @@ #include "test/core/util/test_config.h" #include "test/cpp/util/echo.pb.h" #include "src/cpp/util/time.h" -#include <grpc++/generic_service.h> +#include <grpc++/async_generic_service.h> #include <grpc++/async_unary_call.h> #include <grpc++/byte_buffer.h> #include <grpc++/channel_arguments.h> @@ -87,7 +87,7 @@ class GenericEnd2endTest : public ::testing::Test { // Setup server ServerBuilder builder; builder.AddPort(server_address_.str(), InsecureServerCredentials()); - builder.RegisterGenericService(&generic_service_); + builder.RegisterAsyncGenericService(&generic_service_); server_ = builder.BuildAndStart(); } @@ -124,7 +124,7 @@ class GenericEnd2endTest : public ::testing::Test { ClientContext cli_ctx; GenericServerContext srv_ctx; - GenericServerReaderWriter stream(&srv_ctx); + GenericServerAsyncReaderWriter stream(&srv_ctx); send_request.set_message("Hello"); std::unique_ptr<ClientAsyncResponseReader<EchoResponse> > response_reader( @@ -171,7 +171,7 @@ class GenericEnd2endTest : public ::testing::Test { CompletionQueue srv_cq_; std::unique_ptr<grpc::cpp::test::util::TestService::Stub> stub_; std::unique_ptr<Server> server_; - GenericService generic_service_; + AsyncGenericService generic_service_; std::ostringstream server_address_; }; |