diff options
author | Craig Tiller <ctiller@google.com> | 2015-02-06 17:18:10 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-02-06 17:18:10 -0800 |
commit | d78a657980df9dbb902a5effb99d37f7a4ad1ab1 (patch) | |
tree | 2162dcb13b6f8232af1a5af7d4a23a4f77ba3dd4 /test | |
parent | 41efbf3a96d1caa8066ab46cad5934ad30da2e8f (diff) | |
parent | a99bfe5e8ebd4b4b4e509cbd73e37c0a024d1308 (diff) |
Merge github.com:grpc/grpc into async-api-new
Diffstat (limited to 'test')
-rw-r--r-- | test/cpp/interop/client.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/cpp/interop/client.cc b/test/cpp/interop/client.cc index a0662fd05f..0fa76f0e02 100644 --- a/test/cpp/interop/client.cc +++ b/test/cpp/interop/client.cc @@ -191,10 +191,10 @@ void DoComputeEngineCreds() { gpr_log(GPR_INFO, "Got username %s", response.username().c_str()); gpr_log(GPR_INFO, "Got oauth_scope %s", response.oauth_scope().c_str()); GPR_ASSERT(!response.username().empty()); - GPR_ASSERT(response.username() == FLAGS_default_service_account); + GPR_ASSERT(response.username().c_str() == FLAGS_default_service_account); GPR_ASSERT(!response.oauth_scope().empty()); - GPR_ASSERT( - FLAGS_oauth_scope.find(response.oauth_scope()) != grpc::string::npos); + const char *oauth_scope_str = response.oauth_scope().c_str(); + GPR_ASSERT(FLAGS_oauth_scope.find(oauth_scope_str) != grpc::string::npos); gpr_log(GPR_INFO, "Large unary with compute engine creds done."); } @@ -212,8 +212,8 @@ void DoServiceAccountCreds() { GPR_ASSERT(!response.oauth_scope().empty()); grpc::string json_key = GetServiceAccountJsonKey(); GPR_ASSERT(json_key.find(response.username()) != grpc::string::npos); - GPR_ASSERT(FLAGS_oauth_scope.find(response.oauth_scope()) != - grpc::string::npos); + const char *oauth_scope_str = response.oauth_scope().c_str(); + GPR_ASSERT(FLAGS_oauth_scope.find(oauth_scope_str) != grpc::string::npos); gpr_log(GPR_INFO, "Large unary with service account creds done."); } |