Index: net/http/http_util_unittest.cc |
diff --git a/net/http/http_util_unittest.cc b/net/http/http_util_unittest.cc |
index 6ea1ca479e7edbad150bcb1cbd6255508bc286aa..a5c984db66b1f5e46798036e8c1ac3758fab9f81 100644 |
--- a/net/http/http_util_unittest.cc |
+++ b/net/http/http_util_unittest.cc |
@@ -50,8 +50,7 @@ TEST(HttpUtilTest, IsSafeHeader) { |
for (size_t i = 0; i < arraysize(unsafe_headers); ++i) { |
EXPECT_FALSE(HttpUtil::IsSafeHeader(unsafe_headers[i])) |
<< unsafe_headers[i]; |
- EXPECT_FALSE(HttpUtil::IsSafeHeader( |
- base::StringToUpperASCII(std::string(unsafe_headers[i])))) |
+ EXPECT_FALSE(HttpUtil::IsSafeHeader(base::ToUpperASCII(unsafe_headers[i]))) |
<< unsafe_headers[i]; |
} |
static const char* const safe_headers[] = { |
@@ -96,8 +95,7 @@ TEST(HttpUtilTest, IsSafeHeader) { |
}; |
for (size_t i = 0; i < arraysize(safe_headers); ++i) { |
EXPECT_TRUE(HttpUtil::IsSafeHeader(safe_headers[i])) << safe_headers[i]; |
- EXPECT_TRUE(HttpUtil::IsSafeHeader( |
- base::StringToUpperASCII(std::string(safe_headers[i])))) |
+ EXPECT_TRUE(HttpUtil::IsSafeHeader(base::ToUpperASCII(safe_headers[i]))) |
<< safe_headers[i]; |
} |
} |