| 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 756102e5bbc498535070b98b71211139955014c6..5c3886d257a905f96f769c4c976823f828f91c30 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
|
| @@ -870,8 +870,8 @@ TEST_F(DataReductionProxyNetworkDelegateTest, RequestDataConfigurations) {
|
| : net::EFFECTIVE_CONNECTION_TYPE_UNKNOWN,
|
| data->effective_connection_type());
|
| EXPECT_TRUE(data->used_data_reduction_proxy());
|
| - EXPECT_EQ(GURL(kTestURL), data->request_url());
|
| - EXPECT_EQ("fake-session", data->session_key());
|
| + EXPECT_EQ(test.main_frame ? GURL(kTestURL) : GURL(), data->request_url());
|
| + EXPECT_EQ(test.main_frame ? "fake-session" : "", data->session_key());
|
| EXPECT_EQ(test.lofi_on, data->lofi_requested());
|
| }
|
| }
|
| @@ -1189,8 +1189,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);
|
| }
|
| }
|
| @@ -1218,7 +1220,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);
|
|
|