Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc |
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc |
index 8e3a0d46236cfc3d2322ee37a4f9ab385344ed82..ed61de48cdc2d6f6cb7f3dd8d88acbe1f61f73c6 100644 |
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc |
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc |
@@ -1113,8 +1113,10 @@ TEST_F(DataReductionProxyNetworkDelegateTest, OnCompletedInternalLoFi) { |
response_headers += "Chrome-Proxy-Content-Transform: empty-image\r\n"; |
response_headers += "\r\n"; |
- FetchURLRequest(GURL(kTestURL), nullptr, response_headers, 140, 0); |
- |
+ auto request = |
+ FetchURLRequest(GURL(kTestURL), nullptr, response_headers, 140, 0); |
+ EXPECT_EQ(tests[i].lofi_response, |
+ DataReductionProxyData::GetData(*request)->lofi_received()); |
VerifyDidNotifyLoFiResponse(tests[i].lofi_response); |
} |
} |
@@ -1142,7 +1144,9 @@ TEST_F(DataReductionProxyNetworkDelegateTest, |
"x-original-content-length: 200\r\n"; |
response_headers += "\r\n"; |
- FetchURLRequest(GURL(kTestURL), nullptr, response_headers, 140, 0); |
+ auto request = |
+ FetchURLRequest(GURL(kTestURL), nullptr, response_headers, 140, 0); |
+ EXPECT_TRUE(DataReductionProxyData::GetData(*request)->lite_page_received()); |
histogram_tester.ExpectBucketCount(kLoFiTransformationTypeHistogram, |
LITE_PAGE, 1); |