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

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

Issue 893543003: Expose the "Fullscreen" content setting to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase over 889893002, added a test. Created 5 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/content_settings/content_settings_apitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3a8eafef614ade0db104381ee6d447b275333d43..cf0f2410cafaf11f7fc818c0a5b78f96d3f5d1e4 100644
--- a/chrome/browser/content_settings/host_content_settings_map_unittest.cc
+++ b/chrome/browser/content_settings/host_content_settings_map_unittest.cc
@@ -958,6 +958,18 @@ TEST_F(HostContentSettingsMapTest, ShouldAllowAllContent) {
extension, http_host, CONTENT_SETTINGS_TYPE_COOKIES));
}
+TEST_F(HostContentSettingsMapTest, IsSettingAllowedForType) {
+ TestingProfile profile;
+ PrefService* prefs = profile.GetPrefs();
+
+ EXPECT_TRUE(HostContentSettingsMap::IsSettingAllowedForType(
+ prefs, CONTENT_SETTING_ASK,
+ CONTENT_SETTINGS_TYPE_FULLSCREEN));
+
+ // TODO(msramek): Add more checks for setting type - setting pairs where
+ // it is not obvious whether or not they are allowed.
+}
+
TEST_F(HostContentSettingsMapTest, AddContentSettingsObserver) {
TestingProfile profile;
HostContentSettingsMap* host_content_settings_map =
« no previous file with comments | « no previous file | chrome/browser/extensions/api/content_settings/content_settings_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698