aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/interop
diff options
context:
space:
mode:
authorGravatar Yang Gao <yangg@google.com>2015-03-11 14:51:50 -0700
committerGravatar Yang Gao <yangg@google.com>2015-03-11 14:51:50 -0700
commit7d6b184f57603fd047bb95776fc78e914c979d8c (patch)
treee3cfcfc8a77399d537749df42f36ca3400568f3a /test/cpp/interop
parent0535da306887779adb79f2adcf35910664532a99 (diff)
add a jwt test case for interop test
Diffstat (limited to 'test/cpp/interop')
-rw-r--r--test/cpp/interop/client.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/cpp/interop/client.cc b/test/cpp/interop/client.cc
index 132e6e9068..e5645e568e 100644
--- a/test/cpp/interop/client.cc
+++ b/test/cpp/interop/client.cc
@@ -86,6 +86,7 @@ using grpc::ClientContext;
using grpc::ComputeEngineCredentials;
using grpc::CreateTestChannel;
using grpc::Credentials;
+using grpc::JWTCredentials;
using grpc::ServiceAccountCredentials;
using grpc::testing::ResponseParameters;
using grpc::testing::SimpleRequest;
@@ -151,7 +152,7 @@ std::shared_ptr<ChannelInterface> CreateChannelForTestCase(
std::unique_ptr<Credentials> creds;
GPR_ASSERT(FLAGS_enable_ssl);
grpc::string json_key = GetServiceAccountJsonKey();
- creds = CredentialsFactory::JWTCredentials(json_key, std::chrono::hours(1));
+ creds = JWTCredentials(json_key, std::chrono::hours(1));
return CreateTestChannel(host_port, FLAGS_server_host_override,
FLAGS_enable_ssl, FLAGS_use_prod_roots, creds);
} else {