Index: chrome/browser/content_settings/host_content_settings_map_unittest.cc |
diff --git a/chrome/browser/content_settings/host_content_settings_map_unittest.cc b/chrome/browser/content_settings/host_content_settings_map_unittest.cc |
index ac4e2d2b9cf910125f14677fb7c19063ba047f9a..3ab2970b974facfd8fd29b248d8af7f0a3ad6c96 100644 |
--- a/chrome/browser/content_settings/host_content_settings_map_unittest.cc |
+++ b/chrome/browser/content_settings/host_content_settings_map_unittest.cc |
@@ -398,7 +398,6 @@ TEST_F(HostContentSettingsMapTest, NestedSettings) { |
ContentSettingsPattern pattern1("[*.]example.com"); |
ContentSettingsPattern pattern2("[*.]b.example.com"); |
ContentSettingsPattern pattern3("a.b.example.com"); |
- |
jochen (gone - plz use gerrit)
2011/02/04 08:38:43
please don't remove this lines
markusheintz_
2011/02/04 10:08:03
Done.
|
host_content_settings_map->SetContentSetting(pattern1, |
CONTENT_SETTINGS_TYPE_IMAGES, "", CONTENT_SETTING_BLOCK); |
host_content_settings_map->SetContentSetting(pattern2, |
@@ -407,7 +406,6 @@ TEST_F(HostContentSettingsMapTest, NestedSettings) { |
CONTENT_SETTINGS_TYPE_PLUGINS, "", CONTENT_SETTING_BLOCK); |
host_content_settings_map->SetDefaultContentSetting( |
CONTENT_SETTINGS_TYPE_JAVASCRIPT, CONTENT_SETTING_BLOCK); |
- |
ContentSettings desired_settings; |
desired_settings.settings[CONTENT_SETTINGS_TYPE_COOKIES] = |
CONTENT_SETTING_BLOCK; |
@@ -615,6 +613,14 @@ TEST_F(HostContentSettingsMapTest, ResourceIdentifier) { |
EXPECT_EQ(CONTENT_SETTING_ALLOW, |
host_content_settings_map->GetContentSetting( |
host, CONTENT_SETTINGS_TYPE_PLUGINS, resource2)); |
+ |
+ // If resource content settings are enable GetContentSettings should return |
+ // CONTENT_SETTING_DEFAULT for content types that require resource |
+ // identifiers. |
+ ContentSettings settings = |
+ host_content_settings_map->GetContentSettings(host); |
+ EXPECT_EQ(CONTENT_SETTING_DEFAULT, |
+ settings.settings[CONTENT_SETTINGS_TYPE_PLUGINS]); |
} |
TEST_F(HostContentSettingsMapTest, ResourceIdentifierPrefs) { |