aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Yang Gao <yangg@google.com>2015-02-06 12:57:47 -0800
committerGravatar Yang Gao <yangg@google.com>2015-02-06 12:57:47 -0800
commit4e6dc3c6c0c8518baa93ff7011a2c318507733a1 (patch)
tree6687c1ece5c792a1966257aae7c87fa1c571df37 /test
parent4acf81e90246dffa806de6ad1a830d0e62cf727f (diff)
parent3f36f5e316bd8686e8f6050baf1168078a34bb86 (diff)
Merge pull request #420 from nicolasnoble/upstream-fix
Few minor fixes.
Diffstat (limited to 'test')
-rw-r--r--test/cpp/interop/client.cc10
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.");
}