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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc

Issue 2255603002: Adding a DataSaverStatus interface to DataReductionProxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding depending CL Created 4 years, 4 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: 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 8b832fa00b646adae7ec47f8a9f550d060ed437c..c9d36f3f5153a87be14418014dd8cbac7d9ac92d 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
@@ -57,28 +57,31 @@ class DataReductionProxySettingsTest
settings_->InitPrefMembers();
}
};
TEST_F(DataReductionProxySettingsTest, TestIsProxyEnabledOrManaged) {
InitPrefMembers();
// The proxy is disabled initially.
test_context_->config()->SetStateForTest(false, true);
EXPECT_FALSE(settings_->IsDataReductionProxyEnabled());
+ EXPECT_FALSE(settings_->IsDataSaverEnabled());
EXPECT_FALSE(settings_->IsDataReductionProxyManaged());
CheckOnPrefChange(true, true, false);
EXPECT_TRUE(settings_->IsDataReductionProxyEnabled());
+ EXPECT_TRUE(settings_->IsDataSaverEnabled());
EXPECT_FALSE(settings_->IsDataReductionProxyManaged());
CheckOnPrefChange(true, true, true);
EXPECT_TRUE(settings_->IsDataReductionProxyEnabled());
+ EXPECT_TRUE(settings_->IsDataSaverEnabled());
EXPECT_TRUE(settings_->IsDataReductionProxyManaged());
test_context_->RunUntilIdle();
}
TEST_F(DataReductionProxySettingsTest, TestCanUseDataReductionProxy) {
InitPrefMembers();
// The proxy is disabled initially.
test_context_->config()->SetStateForTest(false, true);

Powered by Google App Engine
This is Rietveld 408576698