summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/base/tcp_client_socket_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/base/tcp_client_socket_unittest.cc b/net/base/tcp_client_socket_unittest.cc
index 4853b8e..4d1d83f 100644
--- a/net/base/tcp_client_socket_unittest.cc
+++ b/net/base/tcp_client_socket_unittest.cc
@@ -73,7 +73,7 @@ TEST_F(TCPClientSocketTest, Read) {
if (rv == net::ERR_IO_PENDING) {
rv = callback.WaitForResult();
- EXPECT_EQ(rv, arraysize(request_text) - 1);
+ EXPECT_EQ(rv, static_cast<int>(arraysize(request_text) - 1));
}
char buf[4096];
@@ -114,7 +114,7 @@ TEST_F(TCPClientSocketTest, Read_SmallChunks) {
if (rv == net::ERR_IO_PENDING) {
rv = callback.WaitForResult();
- EXPECT_EQ(rv, arraysize(request_text) - 1);
+ EXPECT_EQ(rv, static_cast<int>(arraysize(request_text) - 1));
}
char buf[1];
@@ -155,7 +155,7 @@ TEST_F(TCPClientSocketTest, Read_Interrupted) {
if (rv == net::ERR_IO_PENDING) {
rv = callback.WaitForResult();
- EXPECT_EQ(rv, arraysize(request_text) - 1);
+ EXPECT_EQ(rv, static_cast<int>(arraysize(request_text) - 1));
}
// Do a partial read and then exit. This test should not crash!