diff options
author | Craig Tiller <ctiller@google.com> | 2015-07-10 10:07:53 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-07-18 20:39:34 -0700 |
commit | 0dc5e6cf163f1451dfb1677ce61966be3ab1f062 (patch) | |
tree | 725b142452f0235ad20d51ae5bebc8b90abcdc49 /test/cpp/end2end | |
parent | 8bf2dcab4e73a3cfb0138f1c6e2a9db7e1f7edef (diff) |
User agent string support
Diffstat (limited to 'test/cpp/end2end')
-rw-r--r-- | test/cpp/end2end/end2end_test.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/cpp/end2end/end2end_test.cc b/test/cpp/end2end/end2end_test.cc index 89d9d635af..00088cfb15 100644 --- a/test/cpp/end2end/end2end_test.cc +++ b/test/cpp/end2end/end2end_test.cc @@ -249,9 +249,10 @@ class End2endTest : public ::testing::Test { void TearDown() GRPC_OVERRIDE { server_->Shutdown(); } void ResetStub() { - std::shared_ptr<ChannelInterface> channel = - CreateChannel(server_address_.str(), FakeTransportSecurityCredentials(), - ChannelArguments()); + ChannelArguments args; + args.SetString(GRPC_ARG_SECONDARY_USER_AGENT_STRING, "end2end_test"); + std::shared_ptr<ChannelInterface> channel = CreateChannel( + server_address_.str(), FakeTransportSecurityCredentials(), args); stub_ = std::move(grpc::cpp::test::util::TestService::NewStub(channel)); } |