summaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
Diffstat (limited to 'net/http')
-rw-r--r--net/http/http_auth_handler_basic_unittest.cc2
-rw-r--r--net/http/http_auth_handler_digest_unittest.cc4
-rw-r--r--net/http/http_auth_unittest.cc2
3 files changed, 4 insertions, 4 deletions
diff --git a/net/http/http_auth_handler_basic_unittest.cc b/net/http/http_auth_handler_basic_unittest.cc
index bf860e3..ea4de4a 100644
--- a/net/http/http_auth_handler_basic_unittest.cc
+++ b/net/http/http_auth_handler_basic_unittest.cc
@@ -19,7 +19,7 @@ TEST(HttpAuthHandlerBasicTest, GenerateCredentials) {
// Empty password
{ L"anon", L"", "Basic YW5vbjo=" },
};
- for (int i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) {
+ for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) {
std::string challenge = "Basic realm=\"Atlantis\"";
HttpAuthHandlerBasic basic;
basic.InitFromChallenge(challenge.begin(), challenge.end(),
diff --git a/net/http/http_auth_handler_digest_unittest.cc b/net/http/http_auth_handler_digest_unittest.cc
index 41df781..cb08a4e 100644
--- a/net/http/http_auth_handler_digest_unittest.cc
+++ b/net/http/http_auth_handler_digest_unittest.cc
@@ -87,7 +87,7 @@ TEST(HttpAuthHandlerDigestTest, ParseChallenge) {
}
};
- for (int i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) {
+ for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) {
std::string challenge(tests[i].challenge);
HttpAuthHandlerDigest auth;
@@ -193,7 +193,7 @@ TEST(HttpAuthHandlerDigestTest, AssembleCredentials) {
"qop=auth, nc=00000001, cnonce=\"15c07961ed8575c4\""
}
};
- for (int i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) {
+ for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) {
HttpAuthHandlerDigest digest;
std::string challenge = tests[i].challenge;
EXPECT_TRUE(digest.InitFromChallenge(
diff --git a/net/http/http_auth_unittest.cc b/net/http/http_auth_unittest.cc
index a82ffa1..d0a2ace 100644
--- a/net/http/http_auth_unittest.cc
+++ b/net/http/http_auth_unittest.cc
@@ -42,7 +42,7 @@ TEST(HttpAuthTest, ChooseBestChallenge) {
}
};
- for (int i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) {
+ for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) {
// Make a HttpResponseHeaders object.
std::string headers_with_status_line("HTTP/1.1 401 OK\n");
headers_with_status_line += tests[i].headers;