Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(728)

Unified Diff: net/test/url_request/url_request_mock_http_job.cc

Issue 1200393002: Add more string_util functions to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string
Patch Set: Android Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/ftp/ftp_util.cc ('k') | net/test/url_request/url_request_slow_download_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/url_request/url_request_mock_http_job.cc
diff --git a/net/test/url_request/url_request_mock_http_job.cc b/net/test/url_request/url_request_mock_http_job.cc
index 297d0ffb5a3405d6a36782e94ec9eaaa2809681c..c4efa6aa0255c1bb1466985287bbb909947c8fe7 100644
--- a/net/test/url_request/url_request_mock_http_job.cc
+++ b/net/test/url_request/url_request_mock_http_job.cc
@@ -189,9 +189,10 @@ void URLRequestMockHTTPJob::Start() {
void URLRequestMockHTTPJob::SetHeadersAndStart(const std::string& raw_headers) {
raw_headers_ = raw_headers;
// Handle CRLF line-endings.
- ReplaceSubstringsAfterOffset(&raw_headers_, 0, "\r\n", "\n");
+ base::ReplaceSubstringsAfterOffset(&raw_headers_, 0, "\r\n", "\n");
// ParseRawHeaders expects \0 to end each header line.
- ReplaceSubstringsAfterOffset(&raw_headers_, 0, "\n", std::string("\0", 1));
+ base::ReplaceSubstringsAfterOffset(
+ &raw_headers_, 0, "\n", base::StringPiece("\0", 1));
URLRequestFileJob::Start();
}
« no previous file with comments | « net/ftp/ftp_util.cc ('k') | net/test/url_request/url_request_slow_download_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698