Skip to content
Snippets Groups Projects
Commit 3f36f5e3 authored by Nicolas "Pixel" Noble's avatar Nicolas "Pixel" Noble
Browse files

Few minor fixes.

Fixing a few issues in case you *cough* have a different local implementation of
protobuf, gtest and gflags for some weird reason.
parent 15867f19
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,8 @@
*
*/
#include <google/protobuf/stubs/common.h>
#include <grpc++/channel_arguments.h>
#include <grpc++/channel_interface.h>
#include <grpc++/client_context.h>
......
......@@ -31,6 +31,8 @@
*
*/
#include <google/protobuf/stubs/common.h>
#include <grpc++/channel_arguments.h>
#include <grpc++/channel_interface.h>
#include <grpc++/client_context.h>
......
......@@ -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.");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment