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

Unified Diff: net/http/http_cache_unittest.cc

Issue 2670013002: net: remove GetNormalizedHeaders() function (Closed)
Patch Set: Created 3 years, 11 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/http/http_cache_unittest.cc
diff --git a/net/http/http_cache_unittest.cc b/net/http/http_cache_unittest.cc
index 60c7ed7c8d75d286465b15c12b4806d86acc6b87..bbf9b10f23df7c761400697724be49d977d48b6a 100644
--- a/net/http/http_cache_unittest.cc
+++ b/net/http/http_cache_unittest.cc
@@ -262,7 +262,8 @@ void RunTransactionTestWithResponse(HttpCache* cache,
std::string* response_headers) {
HttpResponseInfo response;
RunTransactionTestWithResponseInfo(cache, trans_info, &response);
- response.headers->GetNormalizedHeaders(response_headers);
+ *response_headers = HttpUtil::ConvertHeadersBackToHTTPResponse(
+ response.headers->raw_headers());
}
void RunTransactionTestWithResponseAndGetTiming(
@@ -275,7 +276,8 @@ void RunTransactionTestWithResponseAndGetTiming(
RunTransactionTestBase(cache, trans_info, MockHttpRequest(trans_info),
&response, log, load_timing_info, nullptr, nullptr,
nullptr);
- response.headers->GetNormalizedHeaders(response_headers);
+ *response_headers = HttpUtil::ConvertHeadersBackToHTTPResponse(
+ response.headers->raw_headers());
}
// This class provides a handler for kFastNoStoreGET_Transaction so that the
@@ -6706,8 +6708,8 @@ TEST(HttpCache, UpdatesRequestResponseTimeOn304) {
EXPECT_EQ(response_time.ToInternalValue(),
response.response_time.ToInternalValue());
- std::string headers;
- response.headers->GetNormalizedHeaders(&headers);
+ std::string headers = HttpUtil::ConvertHeadersBackToHTTPResponse(
+ response.headers->raw_headers());
EXPECT_EQ("HTTP/1.1 200 OK\n"
"Date: Wed, 22 Jul 2009 03:15:26 GMT\n"

Powered by Google App Engine
This is Rietveld 408576698