aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/common/channel_arguments_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/cpp/common/channel_arguments_test.cc')
-rw-r--r--test/cpp/common/channel_arguments_test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/cpp/common/channel_arguments_test.cc b/test/cpp/common/channel_arguments_test.cc
index 1443eb2f68..342f6a5339 100644
--- a/test/cpp/common/channel_arguments_test.cc
+++ b/test/cpp/common/channel_arguments_test.cc
@@ -33,6 +33,7 @@
#include <grpc++/support/channel_arguments.h>
+#include <grpc++/grpc++.h>
#include <grpc/grpc.h>
#include <gtest/gtest.h>
@@ -53,7 +54,7 @@ class ChannelArgumentsTest : public ::testing::Test {
grpc::string GetDefaultUserAgentPrefix() {
std::ostringstream user_agent_prefix;
- user_agent_prefix << "grpc-c++/" << grpc_version_string();
+ user_agent_prefix << "grpc-c++/" << Version();
return user_agent_prefix.str();
}