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

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

Issue 1841863002: Update monet. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 9 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
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 b7b4cdbf619c016c90e4349f24e5db2d7881b731..7a6b0d81033a1134bc6fda3768fec884143414ff 100644
--- a/net/test/url_request/url_request_mock_http_job.cc
+++ b/net/test/url_request/url_request_mock_http_job.cc
@@ -180,9 +180,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",
+ std::string("\0", 1));
URLRequestFileJob::Start();
}
« no previous file with comments | « net/test/url_request/url_request_failed_job.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