From d0955f36dc7fc6ad65fe26483b0db0274aa5173f Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Fri, 10 Jul 2015 07:52:37 -0700 Subject: [PATCH] Compile fix for Mac --- test/cpp/common/secure_auth_context_test.cc | 4 ++-- test/cpp/end2end/end2end_test.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/cpp/common/secure_auth_context_test.cc b/test/cpp/common/secure_auth_context_test.cc index 6f8fb8f2cba..a1819dc4d62 100644 --- a/test/cpp/common/secure_auth_context_test.cc +++ b/test/cpp/common/secure_auth_context_test.cc @@ -59,12 +59,12 @@ TEST_F(SecureAuthContextTest, Properties) { SecureAuthContext context(ctx); std::vector 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 bar = context.FindPropertyValues("foo"); - EXPECT_EQ(1, bar.size()); + EXPECT_EQ(1u, bar.size()); EXPECT_EQ("bar", bar[0]); } diff --git a/test/cpp/end2end/end2end_test.cc b/test/cpp/end2end/end2end_test.cc index 0912b19243b..3791d152204 100644 --- a/test/cpp/end2end/end2end_test.cc +++ b/test/cpp/end2end/end2end_test.cc @@ -88,7 +88,7 @@ void CheckAuthContext(T* context) { std::shared_ptr auth_ctx = context->auth_context(); std::vector 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());