| 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 bac9de2b676fa455b7ad785eacf88d27b0a1ec10..d2ebdf4f751c4940a1a405463a000c31fb16b6c5 100644
|
| --- a/chrome/browser/content_settings/host_content_settings_map_unittest.cc
|
| +++ b/chrome/browser/content_settings/host_content_settings_map_unittest.cc
|
| @@ -958,42 +958,11 @@ TEST_F(HostContentSettingsMapTest, GetContentSetting) {
|
| embedder, host, CONTENT_SETTINGS_TYPE_IMAGES, std::string()));
|
| }
|
|
|
| -TEST_F(HostContentSettingsMapTest, IsSettingAllowedForType) {
|
| - TestingProfile profile;
|
| - PrefService* prefs = profile.GetPrefs();
|
| -
|
| - EXPECT_TRUE(HostContentSettingsMap::IsSettingAllowedForType(
|
| - prefs, CONTENT_SETTING_ASK,
|
| - CONTENT_SETTINGS_TYPE_FULLSCREEN));
|
| -
|
| - // The mediastream setting is deprecated.
|
| - EXPECT_FALSE(HostContentSettingsMap::IsSettingAllowedForType(
|
| - prefs, CONTENT_SETTING_ALLOW,
|
| - CONTENT_SETTINGS_TYPE_MEDIASTREAM));
|
| - EXPECT_FALSE(HostContentSettingsMap::IsSettingAllowedForType(
|
| - prefs, CONTENT_SETTING_ASK,
|
| - CONTENT_SETTINGS_TYPE_MEDIASTREAM));
|
| - EXPECT_FALSE(HostContentSettingsMap::IsSettingAllowedForType(
|
| - prefs, CONTENT_SETTING_BLOCK,
|
| - CONTENT_SETTINGS_TYPE_MEDIASTREAM));
|
| -
|
| - // We support the ALLOW value for media permission exceptions,
|
| - // but not as the default setting.
|
| - EXPECT_TRUE(HostContentSettingsMap::IsSettingAllowedForType(
|
| - prefs, CONTENT_SETTING_ALLOW,
|
| - CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC));
|
| - EXPECT_TRUE(HostContentSettingsMap::IsSettingAllowedForType(
|
| - prefs, CONTENT_SETTING_ALLOW,
|
| - CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA));
|
| +TEST_F(HostContentSettingsMapTest, IsDefaultSettingAllowedForType) {
|
| EXPECT_FALSE(HostContentSettingsMap::IsDefaultSettingAllowedForType(
|
| - prefs, CONTENT_SETTING_ALLOW,
|
| - CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC));
|
| + CONTENT_SETTING_ALLOW, CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC));
|
| EXPECT_FALSE(HostContentSettingsMap::IsDefaultSettingAllowedForType(
|
| - prefs, CONTENT_SETTING_ALLOW,
|
| - CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA));
|
| -
|
| - // TODO(msramek): Add more checks for setting type - setting pairs where
|
| - // it is not obvious whether or not they are allowed.
|
| + CONTENT_SETTING_ALLOW, CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA));
|
| }
|
|
|
| TEST_F(HostContentSettingsMapTest, AddContentSettingsObserver) {
|
|
|