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

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

Issue 8539004: Replace SetContentSetting method of the content_settings::Provider interface with GetWebsiteSetting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase onto origin/trunk Created 9 years, 1 month 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/content_settings_policy_provider_unittest.cc
diff --git a/chrome/browser/content_settings/content_settings_policy_provider_unittest.cc b/chrome/browser/content_settings/content_settings_policy_provider_unittest.cc
index af38ccb8367a7f53ce0f1a841d3fb6bfc4f81b96..e0122e2c7baec715ddba91f3f8ef507a4c3772d1 100644
--- a/chrome/browser/content_settings/content_settings_policy_provider_unittest.cc
+++ b/chrome/browser/content_settings/content_settings_policy_provider_unittest.cc
@@ -190,13 +190,16 @@ TEST_F(PolicyProviderTest, GettingManagedContentSettings) {
// The PolicyProvider does not allow setting content settings as they are
// enforced via policies and not set by the user or extension. So a call to
- // SetContentSetting does nothing.
- provider.SetContentSetting(
+ // SetWebsiteSetting does nothing.
+ scoped_ptr<base::Value> value_block(
+ Value::CreateIntegerValue(CONTENT_SETTING_BLOCK));
+ bool owned = provider.SetWebsiteSetting(
yt_url_pattern,
yt_url_pattern,
CONTENT_SETTINGS_TYPE_COOKIES,
"",
- CONTENT_SETTING_BLOCK);
+ value_block.get());
+ EXPECT_FALSE(owned);
EXPECT_EQ(CONTENT_SETTING_DEFAULT,
GetContentSetting(
&provider, youtube_url, youtube_url,

Powered by Google App Engine
This is Rietveld 408576698