Commit e2cf13fa authored by Candice Sy's avatar Candice Sy Committed by Commit Bot

Add unit test for descriptive pending status feature flag

Bug: 824602
Change-Id: I1aa2c7c43ec1e6afc343a239c30846258a231644
Reviewed-on: https://chromium-review.googlesource.com/978545
Commit-Queue: Candice Sy <cmsy@google.com>
Reviewed-by: default avatarCathy Li <chili@chromium.org>
Cr-Commit-Position: refs/heads/master@{#545652}
parent 7a10b508
......@@ -124,4 +124,15 @@ TEST(OfflinePageFeatureTest, OfflinePagesInDownloadHomeOpenInCct) {
EXPECT_TRUE(offline_pages::ShouldOfflinePagesInDownloadHomeOpenInCct());
}
TEST(OfflinePageFeatureTest, OfflinePagesDescriptivePendingStatus) {
// Disabled by default.
EXPECT_FALSE(offline_pages::IsOfflinePagesDescriptivePendingStatusEnabled());
// Check if helper method works correctly when the features is enabled.
base::test::ScopedFeatureList scoped_feature_list;
scoped_feature_list.InitAndEnableFeature(
kOfflinePagesDescriptivePendingStatusFeature);
EXPECT_TRUE(offline_pages::IsOfflinePagesDescriptivePendingStatusEnabled());
}
} // namespace offline_pages
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment