diff options
author | dkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-10 22:53:29 +0000 |
---|---|---|
committer | dkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-10 22:53:29 +0000 |
commit | 06a11cab7c6c726ac97606dc70d6012e4455ecfd (patch) | |
tree | 5b7d32e238fc57f8e07f717d1e96c23100fae532 /net/base | |
parent | 07d212e60e60aa937f81cf0be686a4fb7997bfd4 (diff) | |
download | chromium_src-06a11cab7c6c726ac97606dc70d6012e4455ecfd.zip chromium_src-06a11cab7c6c726ac97606dc70d6012e4455ecfd.tar.gz chromium_src-06a11cab7c6c726ac97606dc70d6012e4455ecfd.tar.bz2 |
Rename tcp_client_socket.cc to _win.cc (should have been done long ago).
Move some truly win32-specific from the 'portable' to the 'platform-specific' category.
Enable some tests that already work.
Fix a couple signedness mismatch errors that showed up while testing the above.
Review URL: http://codereview.chromium.org/9465
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5134 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base')
-rw-r--r-- | net/base/filter_unittest.cc | 12 | ||||
-rw-r--r-- | net/base/tcp_client_socket_win.cc (renamed from net/base/tcp_client_socket.cc) | 0 |
2 files changed, 6 insertions, 6 deletions
diff --git a/net/base/filter_unittest.cc b/net/base/filter_unittest.cc index ce04574..950132e 100644 --- a/net/base/filter_unittest.cc +++ b/net/base/filter_unittest.cc @@ -69,14 +69,14 @@ TEST(FilterTest, ApacheGzip) { encoding_types.clear(); encoding_types.push_back(Filter::FILTER_TYPE_SDCH); Filter::FixupEncodingTypes(is_sdch_response, kGzipMime1, &encoding_types); - EXPECT_EQ(1, encoding_types.size()); + EXPECT_EQ(1U, encoding_types.size()); EXPECT_EQ(Filter::FILTER_TYPE_SDCH, encoding_types.front()); // Check to be sure that gzip can survive with other mime types. encoding_types.clear(); encoding_types.push_back(Filter::FILTER_TYPE_GZIP); Filter::FixupEncodingTypes(is_sdch_response, "other/mime", &encoding_types); - EXPECT_EQ(1, encoding_types.size()); + EXPECT_EQ(1U, encoding_types.size()); EXPECT_EQ(Filter::FILTER_TYPE_GZIP, encoding_types.front()); } @@ -91,7 +91,7 @@ TEST(FilterTest, SdchEncoding) { encoding_types.push_back(Filter::FILTER_TYPE_SDCH); encoding_types.push_back(Filter::FILTER_TYPE_GZIP); Filter::FixupEncodingTypes(is_sdch_response, kTextHtmlMime, &encoding_types); - EXPECT_EQ(2, encoding_types.size()); + EXPECT_EQ(2U, encoding_types.size()); EXPECT_EQ(Filter::FILTER_TYPE_SDCH, encoding_types[0]); EXPECT_EQ(Filter::FILTER_TYPE_GZIP, encoding_types[1]); @@ -100,7 +100,7 @@ TEST(FilterTest, SdchEncoding) { encoding_types.push_back(Filter::FILTER_TYPE_SDCH); encoding_types.push_back(Filter::FILTER_TYPE_GZIP); Filter::FixupEncodingTypes(is_sdch_response, "other/type", &encoding_types); - EXPECT_EQ(2, encoding_types.size()); + EXPECT_EQ(2U, encoding_types.size()); EXPECT_EQ(Filter::FILTER_TYPE_SDCH, encoding_types[0]); EXPECT_EQ(Filter::FILTER_TYPE_GZIP, encoding_types[1]); @@ -108,7 +108,7 @@ TEST(FilterTest, SdchEncoding) { encoding_types.clear(); encoding_types.push_back(Filter::FILTER_TYPE_SDCH); Filter::FixupEncodingTypes(is_sdch_response, "other/type", &encoding_types); - EXPECT_EQ(2, encoding_types.size()); + EXPECT_EQ(2U, encoding_types.size()); EXPECT_EQ(Filter::FILTER_TYPE_SDCH, encoding_types[0]); EXPECT_EQ(Filter::FILTER_TYPE_GZIP_HELPING_SDCH, encoding_types[1]); } @@ -122,7 +122,7 @@ TEST(FilterTest, MissingSdchEncoding) { // Loss of encoding, but it was an SDCH response with html type. encoding_types.clear(); Filter::FixupEncodingTypes(is_sdch_response, kTextHtmlMime, &encoding_types); - EXPECT_EQ(2, encoding_types.size()); + EXPECT_EQ(2U, encoding_types.size()); EXPECT_EQ(Filter::FILTER_TYPE_SDCH, encoding_types[0]); EXPECT_EQ(Filter::FILTER_TYPE_GZIP_HELPING_SDCH, encoding_types[1]); diff --git a/net/base/tcp_client_socket.cc b/net/base/tcp_client_socket_win.cc index bb25e34..bb25e34 100644 --- a/net/base/tcp_client_socket.cc +++ b/net/base/tcp_client_socket_win.cc |