summaryrefslogtreecommitdiffstats
path: root/net/base/tcp_client_socket_unittest.cc
diff options
context:
space:
mode:
authordkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-18 17:44:54 +0000
committerdkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-18 17:44:54 +0000
commit74379a8991c46090c03ffe5accca7ee09f7d64dd (patch)
tree18c4bd74b2641e346e1c5ac9dc3f0919c2ec18f2 /net/base/tcp_client_socket_unittest.cc
parent33ac67b106610faf6c60de4fe508d103ee2534aa (diff)
downloadchromium_src-74379a8991c46090c03ffe5accca7ee09f7d64dd.zip
chromium_src-74379a8991c46090c03ffe5accca7ee09f7d64dd.tar.gz
chromium_src-74379a8991c46090c03ffe5accca7ee09f7d64dd.tar.bz2
Avoid signedness mismatch errors from gcc
Review URL: http://codereview.chromium.org/3126 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2365 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/tcp_client_socket_unittest.cc')
-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!