diff options
author | mmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-20 00:33:03 +0000 |
---|---|---|
committer | mmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-20 00:33:03 +0000 |
commit | 023a54f549d447c0845271440e9918ce243445f8 (patch) | |
tree | 428742e7810e18290a8cf2b113857a2fdce1e1b6 /net/base | |
parent | 1a2bfdd793e88a64f78b38d23303550cfd0703eb (diff) | |
download | chromium_src-023a54f549d447c0845271440e9918ce243445f8.zip chromium_src-023a54f549d447c0845271440e9918ce243445f8.tar.gz chromium_src-023a54f549d447c0845271440e9918ce243445f8.tar.bz2 |
Run a couple more tests in net, and get rid of a couple more warnings
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1076 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base')
-rw-r--r-- | net/base/escape_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/base/escape_unittest.cc b/net/base/escape_unittest.cc index 6a201d4..1d48874 100644 --- a/net/base/escape_unittest.cc +++ b/net/base/escape_unittest.cc @@ -76,7 +76,7 @@ TEST(Escape, EscapeTextForFormSubmission) { {L"foo bar", L"foo+bar"}, {L"foo++", L"foo%2B%2B"} }; - for (int i = 0; i < arraysize(escape_cases); ++i) { + for (size_t i = 0; i < arraysize(escape_cases); ++i) { EscapeCase value = escape_cases[i]; EXPECT_EQ(value.output, EscapeQueryParamValueUTF8(value.input)); } @@ -156,7 +156,7 @@ TEST(Escape, UnescapeURLComponent) { {"Hello%20%13%10%02", UnescapeRule::CONTROL_CHARS, "Hello%20\x13\x10\x02"}, }; - for (int i = 0; i < arraysize(unescape_cases); i++) { + for (size_t i = 0; i < arraysize(unescape_cases); i++) { std::string str(unescape_cases[i].input); EXPECT_EQ(std::string(unescape_cases[i].output), UnescapeURLComponent(str, unescape_cases[i].rules)); @@ -217,7 +217,7 @@ TEST(Escape, UnescapeAndDecodeURLComponent) { L"%ED%ED"}, // Invalid UTF-8 -> kept unescaped. }; - for (int i = 0; i < arraysize(unescape_cases); i++) { + for (size_t i = 0; i < arraysize(unescape_cases); i++) { std::string unescaped = UnescapeURLComponent(unescape_cases[i].input, UnescapeRule::NORMAL); EXPECT_EQ(std::string(unescape_cases[i].url_unescaped), unescaped); |