| Index: chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc
|
| diff --git a/chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc b/chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc
|
| index 85830949f9e4028c6fb640a26b0b209cf7508837..7f57540a02ec02af023de41578b9b28363c2f65a 100644
|
| --- a/chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc
|
| +++ b/chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc
|
| @@ -919,3 +919,22 @@ TEST_F(ContentSettingBubbleModelTest, RPHAllow) {
|
|
|
| registry.Shutdown();
|
| }
|
| +
|
| +TEST_F(ContentSettingBubbleModelTest, SubresourceFilter) {
|
| + std::unique_ptr<ContentSettingBubbleModel> content_setting_bubble_model(
|
| + new ContentSettingSubresourceFilterBubbleModel(nullptr, web_contents(),
|
| + profile()));
|
| + const ContentSettingBubbleModel::BubbleContent& bubble_content =
|
| + content_setting_bubble_model->bubble_content();
|
| + EXPECT_EQ(bubble_content.title,
|
| + l10n_util::GetStringUTF8(
|
| + IDS_FILTERED_DECEPTIVE_CONTENT_PROMPT_EXPLANATION));
|
| + EXPECT_EQ(0U, bubble_content.radio_group.radio_items.size());
|
| + EXPECT_EQ(0, bubble_content.radio_group.default_item);
|
| + EXPECT_TRUE(bubble_content.custom_link.empty());
|
| + EXPECT_FALSE(bubble_content.custom_link_enabled);
|
| + EXPECT_EQ(
|
| + bubble_content.manage_link,
|
| + l10n_util::GetStringUTF8(IDS_FILTERED_DECEPTIVE_CONTENT_PROMPT_RELOAD));
|
| + EXPECT_EQ(0U, bubble_content.media_menus.size());
|
| +}
|
|
|