Compile fix for Mac

pull/2369/head
Craig Tiller 10 years ago
parent b652fc0d17
commit d0955f36dc
  1. 4
      test/cpp/common/secure_auth_context_test.cc
  2. 2
      test/cpp/end2end/end2end_test.cc

@ -59,12 +59,12 @@ TEST_F(SecureAuthContextTest, Properties) {
SecureAuthContext context(ctx);
std::vector<grpc::string> peer_identity = context.GetPeerIdentity();
EXPECT_EQ(2, peer_identity.size());
EXPECT_EQ(2u, peer_identity.size());
EXPECT_EQ("chapi", peer_identity[0]);
EXPECT_EQ("chapo", peer_identity[1]);
EXPECT_EQ("name", context.GetPeerIdentityPropertyName());
std::vector<grpc::string> bar = context.FindPropertyValues("foo");
EXPECT_EQ(1, bar.size());
EXPECT_EQ(1u, bar.size());
EXPECT_EQ("bar", bar[0]);
}

@ -88,7 +88,7 @@ void CheckAuthContext(T* context) {
std::shared_ptr<const AuthContext> auth_ctx = context->auth_context();
std::vector<grpc::string> fake =
auth_ctx->FindPropertyValues("transport_security_type");
EXPECT_EQ(1, fake.size());
EXPECT_EQ(1u, fake.size());
EXPECT_EQ("fake", fake[0]);
EXPECT_TRUE(auth_ctx->GetPeerIdentityPropertyName().empty());
EXPECT_TRUE(auth_ctx->GetPeerIdentity().empty());

Loading…
Cancel
Save