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

Unified Diff: content/public/test/test_download_request_handler.cc

Issue 2670013002: net: remove GetNormalizedHeaders() function (Closed)
Patch Set: n Created 3 years, 10 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 | « no previous file | google_apis/drive/base_requests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_download_request_handler.cc
diff --git a/content/public/test/test_download_request_handler.cc b/content/public/test/test_download_request_handler.cc
index c0f9525704855764b509283be42160281791ce74..180f37f22ca89108f2ee2ad4076b183e35a7c511 100644
--- a/content/public/test/test_download_request_handler.cc
+++ b/content/public/test/test_download_request_handler.cc
@@ -24,6 +24,7 @@
#include "net/base/io_buffer.h"
#include "net/http/http_request_headers.h"
#include "net/http/http_response_headers.h"
+#include "net/http/http_util.h"
#include "net/url_request/url_request_filter.h"
#include "net/url_request/url_request_interceptor.h"
@@ -477,8 +478,9 @@ void TestDownloadRequestHandler::PartialResponseJob::AddCommonEntityHeaders() {
void TestDownloadRequestHandler::PartialResponseJob::
NotifyHeadersCompleteAndPrepareToRead() {
- std::string normalized_headers;
- response_info_.headers->GetNormalizedHeaders(&normalized_headers);
+ std::string normalized_headers =
+ net::HttpUtil::ConvertHeadersBackToHTTPResponse(
+ response_info_.headers->raw_headers());
DVLOG(1) << "Notify ready with headers:\n" << normalized_headers;
offset_of_next_read_ = requested_range_begin_;
« no previous file with comments | « no previous file | google_apis/drive/base_requests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698