aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/end2end/client_crash_test.cc
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-12-17 16:35:00 -0800
committerGravatar Craig Tiller <ctiller@google.com>2015-12-17 16:35:00 -0800
commit1b4e33029efc2dd57036270bd3a73b6841aadbf5 (patch)
tree1c08b443d17af452ad9cf78320154142a77df757 /test/cpp/end2end/client_crash_test.cc
parent2dd2e895d9c783f7247bbe70be692118f964532b (diff)
Consolidate C++ proto files under src/proto
- make the directory structure match the package structure - sanitize the package structure (test --> testing) - add auto-detection of proto file dependencies
Diffstat (limited to 'test/cpp/end2end/client_crash_test.cc')
-rw-r--r--test/cpp/end2end/client_crash_test.cc13
1 files changed, 6 insertions, 7 deletions
diff --git a/test/cpp/end2end/client_crash_test.cc b/test/cpp/end2end/client_crash_test.cc
index 116785bbf2..68c63b2f93 100644
--- a/test/cpp/end2end/client_crash_test.cc
+++ b/test/cpp/end2end/client_crash_test.cc
@@ -44,12 +44,12 @@
#include "test/core/util/port.h"
#include "test/core/util/test_config.h"
-#include "test/cpp/util/echo_duplicate.grpc.pb.h"
-#include "test/cpp/util/echo.grpc.pb.h"
+#include "src/proto/grpc/testing/duplicate/echo_duplicate.grpc.pb.h"
+#include "src/proto/grpc/testing/echo.grpc.pb.h"
#include "test/cpp/util/subprocess.h"
-using grpc::cpp::test::util::EchoRequest;
-using grpc::cpp::test::util::EchoResponse;
+using grpc::testing::EchoRequest;
+using grpc::testing::EchoResponse;
using std::chrono::system_clock;
static std::string g_root;
@@ -63,8 +63,7 @@ class CrashTest : public ::testing::Test {
protected:
CrashTest() {}
- std::unique_ptr<grpc::cpp::test::util::TestService::Stub>
- CreateServerAndStub() {
+ std::unique_ptr<grpc::testing::TestService::Stub> CreateServerAndStub() {
auto port = grpc_pick_unused_port_or_die();
std::ostringstream addr_stream;
addr_stream << "localhost:" << port;
@@ -73,7 +72,7 @@ class CrashTest : public ::testing::Test {
g_root + "/client_crash_test_server", "--address=" + addr,
}));
GPR_ASSERT(server_);
- return grpc::cpp::test::util::TestService::NewStub(
+ return grpc::testing::TestService::NewStub(
CreateChannel(addr, InsecureChannelCredentials()));
}