Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3058)

Unified Diff: chrome/browser/content_settings/host_content_settings_map_unittest.cc

Issue 965103004: Stop using the MEDIASTREAM content setting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase over 1004733003. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 6ec5c367483b703c903479779ed5c67ed9f3ebfd..001ca3b2219b4f72803a21af03d090ceda02278f 100644
--- a/chrome/browser/content_settings/host_content_settings_map_unittest.cc
+++ b/chrome/browser/content_settings/host_content_settings_map_unittest.cc
@@ -961,6 +961,16 @@ TEST_F(HostContentSettingsMapTest, IsSettingAllowedForType) {
prefs, CONTENT_SETTING_ASK,
CONTENT_SETTINGS_TYPE_FULLSCREEN));
+ 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));
+
// TODO(msramek): Add more checks for setting type - setting pairs where
// it is not obvious whether or not they are allowed.
}

Powered by Google App Engine
This is Rietveld 408576698