summaryrefslogtreecommitdiff
path: root/chromium/components/offline_pages/core/offline_page_feature_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/offline_pages/core/offline_page_feature_unittest.cc')
-rw-r--r--chromium/components/offline_pages/core/offline_page_feature_unittest.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/chromium/components/offline_pages/core/offline_page_feature_unittest.cc b/chromium/components/offline_pages/core/offline_page_feature_unittest.cc
index e68635d84c9..41913b07b01 100644
--- a/chromium/components/offline_pages/core/offline_page_feature_unittest.cc
+++ b/chromium/components/offline_pages/core/offline_page_feature_unittest.cc
@@ -31,8 +31,8 @@ TEST(OfflinePageFeatureTest, OffliningRecentPages) {
}
TEST(OfflinePageFeatureTest, OfflinePagesSharing) {
- // Disabled by default.
- EXPECT_FALSE(offline_pages::IsOfflinePagesSharingEnabled());
+ // Enabled by default.
+ EXPECT_TRUE(offline_pages::IsOfflinePagesSharingEnabled());
// Check if helper method works correctly when the features is disabled.
base::test::ScopedFeatureList scoped_feature_list;
@@ -114,14 +114,14 @@ TEST(OfflinePageFeatureTest, OfflinePagesLimitlessPrefetching) {
}
TEST(OfflinePageFeatureTest, OfflinePagesInDownloadHomeOpenInCct) {
- // Disabled by default.
- EXPECT_FALSE(offline_pages::ShouldOfflinePagesInDownloadHomeOpenInCct());
+ // Enabled by default.
+ EXPECT_TRUE(offline_pages::ShouldOfflinePagesInDownloadHomeOpenInCct());
- // Check if helper method works correctly when the features is enabled.
+ // Check if helper method works correctly when the features is disabled.
base::test::ScopedFeatureList scoped_feature_list;
- scoped_feature_list.InitAndEnableFeature(
+ scoped_feature_list.InitAndDisableFeature(
kOfflinePagesInDownloadHomeOpenInCctFeature);
- EXPECT_TRUE(offline_pages::ShouldOfflinePagesInDownloadHomeOpenInCct());
+ EXPECT_FALSE(offline_pages::ShouldOfflinePagesInDownloadHomeOpenInCct());
}
TEST(OfflinePageFeatureTest, OfflinePagesDescriptiveFailStatus) {