aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/cpp/util/grpc_tool.cc5
-rw-r--r--test/cpp/util/grpc_tool_test.cc2
2 files changed, 4 insertions, 3 deletions
diff --git a/test/cpp/util/grpc_tool.cc b/test/cpp/util/grpc_tool.cc
index 159c01c896..3458a423d8 100644
--- a/test/cpp/util/grpc_tool.cc
+++ b/test/cpp/util/grpc_tool.cc
@@ -75,7 +75,7 @@ class GrpcTool {
GrpcToolOutputCallback callback);
bool CallMethod(int argc, const char** argv, const CliCredentials& cred,
GrpcToolOutputCallback callback);
- bool PrintType(int argc, const char** argv, CliCredentials cred,
+ bool PrintType(int argc, const char** argv, const CliCredentials& cred,
GrpcToolOutputCallback callback);
// TODO(zyc): implement the following methods
// bool ListServices(int argc, const char** argv, GrpcToolOutputCallback
@@ -257,7 +257,8 @@ bool GrpcTool::Help(int argc, const char** argv, const CliCredentials& cred,
return true;
}
-bool GrpcTool::PrintType(int argc, const char** argv, CliCredentials cred,
+bool GrpcTool::PrintType(int argc, const char** argv,
+ const CliCredentials& cred,
GrpcToolOutputCallback callback) {
CommandUsage(
"Print type\n"
diff --git a/test/cpp/util/grpc_tool_test.cc b/test/cpp/util/grpc_tool_test.cc
index 1d790c6e0b..edb66b72d8 100644
--- a/test/cpp/util/grpc_tool_test.cc
+++ b/test/cpp/util/grpc_tool_test.cc
@@ -109,7 +109,7 @@ class GrpcToolTest : public ::testing::Test {
void ShutdownServer() { server_->Shutdown(); }
- void ExitWhenError(int argc, const char** argv, const CliCredentials cred,
+ void ExitWhenError(int argc, const char** argv, const CliCredentials& cred,
GrpcToolOutputCallback callback) {
int result = GrpcToolMainLib(argc, argv, cred, callback);
if (result) {