| 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"
|
|
|