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

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

Issue 2655443003: Unify the "get" and "set" cookie access settings. (Closed)
Patch Set: rebase Created 3 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
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 5aa17cd0a20b833ad3c55cfecd9cc02a81ab0790..dfd52d01fdafe32a01cdd162661a87eef744e4e7 100644
--- a/chrome/browser/content_settings/host_content_settings_map_unittest.cc
+++ b/chrome/browser/content_settings/host_content_settings_map_unittest.cc
@@ -476,18 +476,18 @@ TEST_F(HostContentSettingsMapTest, HostTrimEndingDotCheck) {
GURL host_ending_with_dot("http://example.com./");
- EXPECT_TRUE(cookie_settings->IsSettingCookieAllowed(
- host_ending_with_dot, host_ending_with_dot));
+ EXPECT_TRUE(cookie_settings->IsCookieAccessAllowed(host_ending_with_dot,
+ host_ending_with_dot));
host_content_settings_map->SetContentSettingDefaultScope(
host_ending_with_dot, GURL(), CONTENT_SETTINGS_TYPE_COOKIES,
std::string(), CONTENT_SETTING_DEFAULT);
- EXPECT_TRUE(cookie_settings->IsSettingCookieAllowed(
- host_ending_with_dot, host_ending_with_dot));
+ EXPECT_TRUE(cookie_settings->IsCookieAccessAllowed(host_ending_with_dot,
+ host_ending_with_dot));
host_content_settings_map->SetContentSettingDefaultScope(
host_ending_with_dot, GURL(), CONTENT_SETTINGS_TYPE_COOKIES,
std::string(), CONTENT_SETTING_BLOCK);
- EXPECT_FALSE(cookie_settings->IsSettingCookieAllowed(
- host_ending_with_dot, host_ending_with_dot));
+ EXPECT_FALSE(cookie_settings->IsCookieAccessAllowed(host_ending_with_dot,
+ host_ending_with_dot));
EXPECT_EQ(CONTENT_SETTING_ALLOW,
host_content_settings_map->GetContentSetting(

Powered by Google App Engine
This is Rietveld 408576698