| Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc
|
| diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc
|
| index 93fec5885b26f87954f5f6a2a3afa3fa7ce94206..0f6fbd8af291417ad70d869b191c828670121944 100644
|
| --- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc
|
| +++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc
|
| @@ -71,6 +71,24 @@ TEST_F(DataReductionProxySettingsTest, TestIsProxyEnabledOrManaged) {
|
| test_context_->RunUntilIdle();
|
| }
|
|
|
| +TEST_F(DataReductionProxySettingsTest, TestCanUseDataReductionProxy) {
|
| + settings_->InitPrefMembers();
|
| + base::MessageLoopForUI loop;
|
| + // The proxy is disabled initially.
|
| + settings_->enabled_by_user_ = false;
|
| + settings_->SetProxyConfigs(false, false, false, false);
|
| + GURL http_gurl("http://url.com/");
|
| + EXPECT_FALSE(settings_->CanUseDataReductionProxy(http_gurl));
|
| +
|
| + CheckOnPrefChange(true, true, false);
|
| + EXPECT_TRUE(settings_->CanUseDataReductionProxy(http_gurl));
|
| +
|
| + GURL https_gurl("https://url.com/");
|
| + EXPECT_FALSE(settings_->CanUseDataReductionProxy(https_gurl));
|
| +
|
| + base::MessageLoop::current()->RunUntilIdle();
|
| +}
|
| +
|
| TEST_F(DataReductionProxySettingsTest, TestResetDataReductionStatistics) {
|
| int64 original_content_length;
|
| int64 received_content_length;
|
|
|