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

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

Issue 7026004: HostContentSettingsMap cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 9 years, 7 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 | « chrome/browser/content_settings/host_content_settings_map.cc ('k') | chrome/common/pref_names.h » ('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 71a5c0847edb0b59609b7850721eff8d6c36179d..8a3b0e7746d9b6b7f4585c886531de44a39182fd 100644
--- a/chrome/browser/content_settings/host_content_settings_map_unittest.cc
+++ b/chrome/browser/content_settings/host_content_settings_map_unittest.cc
@@ -232,18 +232,12 @@ TEST_F(HostContentSettingsMapTest, Observer) {
EXPECT_FALSE(observer.last_update_all_types);
EXPECT_EQ(2, observer.counter);
- host_content_settings_map->ResetToDefaults();
- EXPECT_EQ(host_content_settings_map, observer.last_notifier);
- EXPECT_TRUE(observer.last_update_all);
- EXPECT_TRUE(observer.last_update_all_types);
- EXPECT_EQ(3, observer.counter);
-
host_content_settings_map->SetDefaultContentSetting(
CONTENT_SETTINGS_TYPE_IMAGES, CONTENT_SETTING_BLOCK);
EXPECT_EQ(host_content_settings_map, observer.last_notifier);
EXPECT_TRUE(observer.last_update_all);
EXPECT_FALSE(observer.last_update_all_types);
- EXPECT_EQ(4, observer.counter);
+ EXPECT_EQ(3, observer.counter);
}
TEST_F(HostContentSettingsMapTest, ObserveDefaultPref) {
« no previous file with comments | « chrome/browser/content_settings/host_content_settings_map.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698