diff options
author | michaelbai@google.com <michaelbai@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-07 18:18:45 +0000 |
---|---|---|
committer | michaelbai@google.com <michaelbai@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-07 18:18:45 +0000 |
commit | 0592261f09341e187a94c5c14052c198ff683b00 (patch) | |
tree | 7c9617063ce4102bc7fb93b8cb7f0a6921b53a4c /net/http/http_response_headers_unittest.cc | |
parent | 8527643cf39257d388fa9bbd04b081c8d8fa0bf1 (diff) | |
download | chromium_src-0592261f09341e187a94c5c14052c198ff683b00.zip chromium_src-0592261f09341e187a94c5c14052c198ff683b00.tar.gz chromium_src-0592261f09341e187a94c5c14052c198ff683b00.tar.bz2 |
Upstream android net related code (part 2)
Add std:: to find() and replace() calls
BUG=
TEST=
Review URL: http://codereview.chromium.org/7273081
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91728 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_response_headers_unittest.cc')
-rw-r--r-- | net/http/http_response_headers_unittest.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/http/http_response_headers_unittest.cc b/net/http/http_response_headers_unittest.cc index b089cac..483667c 100644 --- a/net/http/http_response_headers_unittest.cc +++ b/net/http/http_response_headers_unittest.cc @@ -35,7 +35,7 @@ class HttpResponseHeadersTest : public testing::Test { // Transform "normal"-looking headers (\n-separated) to the appropriate // input format for ParseRawHeaders (\0-separated). void HeadersToRaw(std::string* headers) { - replace(headers->begin(), headers->end(), '\n', '\0'); + std::replace(headers->begin(), headers->end(), '\n', '\0'); if (!headers->empty()) *headers += '\0'; } @@ -51,10 +51,10 @@ void TestCommon(const TestData& test) { parsed->GetNormalizedHeaders(&headers); // Transform to readable output format (so it's easier to see diffs). - replace(headers.begin(), headers.end(), ' ', '_'); - replace(headers.begin(), headers.end(), '\n', '\\'); - replace(expected_headers.begin(), expected_headers.end(), ' ', '_'); - replace(expected_headers.begin(), expected_headers.end(), '\n', '\\'); + std::replace(headers.begin(), headers.end(), ' ', '_'); + std::replace(headers.begin(), headers.end(), '\n', '\\'); + std::replace(expected_headers.begin(), expected_headers.end(), ' ', '_'); + std::replace(expected_headers.begin(), expected_headers.end(), '\n', '\\'); EXPECT_EQ(expected_headers, headers); |