diff options
author | vjpai <vpai@google.com> | 2015-02-18 22:26:48 -0800 |
---|---|---|
committer | vjpai <vpai@google.com> | 2015-02-18 22:26:48 -0800 |
commit | d5577aac67b5bdf7603730b3238ece76003589f7 (patch) | |
tree | b9e01860170282fc43f19b1bbe7aad259801245f /test | |
parent | c1231eb543d0805cf91b9628a2dfd059990fd079 (diff) |
More typecasts to avoid sign-comparison problems on EXPECT_EQ
Diffstat (limited to 'test')
-rw-r--r-- | test/cpp/end2end/async_end2end_test.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/cpp/end2end/async_end2end_test.cc b/test/cpp/end2end/async_end2end_test.cc index fe31289661..58df947667 100644 --- a/test/cpp/end2end/async_end2end_test.cc +++ b/test/cpp/end2end/async_end2end_test.cc @@ -354,7 +354,7 @@ TEST_F(AsyncEnd2endTest, ClientInitialMetadataRpc) { auto client_initial_metadata = srv_ctx.client_metadata(); EXPECT_EQ(meta1.second, client_initial_metadata.find(meta1.first)->second); EXPECT_EQ(meta2.second, client_initial_metadata.find(meta2.first)->second); - EXPECT_EQ(2, client_initial_metadata.size()); + EXPECT_EQ(static_cast<size_t>(2), client_initial_metadata.size()); client_ok(1); send_response.set_message(recv_request.message()); @@ -404,7 +404,7 @@ TEST_F(AsyncEnd2endTest, ServerInitialMetadataRpc) { auto server_initial_metadata = cli_ctx.GetServerInitialMetadata(); EXPECT_EQ(meta1.second, server_initial_metadata.find(meta1.first)->second); EXPECT_EQ(meta2.second, server_initial_metadata.find(meta2.first)->second); - EXPECT_EQ(2, server_initial_metadata.size()); + EXPECT_EQ(static_cast<size_t>(2), server_initial_metadata.size()); send_response.set_message(recv_request.message()); response_writer.Finish(send_response, Status::OK, tag(5)); @@ -460,7 +460,7 @@ TEST_F(AsyncEnd2endTest, ServerTrailingMetadataRpc) { auto server_trailing_metadata = cli_ctx.GetServerTrailingMetadata(); EXPECT_EQ(meta1.second, server_trailing_metadata.find(meta1.first)->second); EXPECT_EQ(meta2.second, server_trailing_metadata.find(meta2.first)->second); - EXPECT_EQ(2, server_trailing_metadata.size()); + EXPECT_EQ(static_cast<size_t>(2), server_trailing_metadata.size()); } TEST_F(AsyncEnd2endTest, MetadataRpc) { @@ -500,7 +500,7 @@ TEST_F(AsyncEnd2endTest, MetadataRpc) { auto client_initial_metadata = srv_ctx.client_metadata(); EXPECT_EQ(meta1.second, client_initial_metadata.find(meta1.first)->second); EXPECT_EQ(meta2.second, client_initial_metadata.find(meta2.first)->second); - EXPECT_EQ(2, client_initial_metadata.size()); + EXPECT_EQ(static_cast<size_t>(2), client_initial_metadata.size()); client_ok(1); srv_ctx.AddInitialMetadata(meta3.first, meta3.second); @@ -512,7 +512,7 @@ TEST_F(AsyncEnd2endTest, MetadataRpc) { auto server_initial_metadata = cli_ctx.GetServerInitialMetadata(); EXPECT_EQ(meta3.second, server_initial_metadata.find(meta3.first)->second); EXPECT_EQ(meta4.second, server_initial_metadata.find(meta4.first)->second); - EXPECT_EQ(2, server_initial_metadata.size()); + EXPECT_EQ(static_cast<size_t>(2), server_initial_metadata.size()); send_response.set_message(recv_request.message()); srv_ctx.AddTrailingMetadata(meta5.first, meta5.second); @@ -529,7 +529,7 @@ TEST_F(AsyncEnd2endTest, MetadataRpc) { auto server_trailing_metadata = cli_ctx.GetServerTrailingMetadata(); EXPECT_EQ(meta5.second, server_trailing_metadata.find(meta5.first)->second); EXPECT_EQ(meta6.second, server_trailing_metadata.find(meta6.first)->second); - EXPECT_EQ(2, server_trailing_metadata.size()); + EXPECT_EQ(static_cast<size_t>(2), server_trailing_metadata.size()); } } // namespace } // namespace testing |