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

Unified Diff: chrome/browser/geolocation/geolocation_content_settings_map_unittest.cc

Issue 1525018: Simplify the geolocation content settings map: it's only ever used from the U... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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/geolocation/geolocation_content_settings_map.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/geolocation/geolocation_content_settings_map_unittest.cc
===================================================================
--- chrome/browser/geolocation/geolocation_content_settings_map_unittest.cc (revision 43945)
+++ chrome/browser/geolocation/geolocation_content_settings_map_unittest.cc (working copy)
@@ -123,30 +123,6 @@
EXPECT_EQ(CONTENT_SETTING_ASK, map->GetContentSetting(top_level, top_level));
}
-TEST_F(GeolocationContentSettingsMapTests, ClearOneOrigin) {
- TestingProfile profile;
- GeolocationContentSettingsMap* map =
- profile.GetGeolocationContentSettingsMap();
- GURL requester_0("http://www.iframe0.com/foo/bar");
- GURL requester_1("http://www.iframe1.com/foo/bar");
- GURL embedder_0("http://www.toplevel0.com/foo/bar");
- map->SetContentSetting(requester_0, embedder_0, CONTENT_SETTING_ALLOW);
- map->SetContentSetting(requester_1, embedder_0, CONTENT_SETTING_ALLOW);
- EXPECT_EQ(CONTENT_SETTING_ALLOW,
- map->GetContentSetting(requester_0, embedder_0));
- EXPECT_EQ(CONTENT_SETTING_ALLOW,
- map->GetContentSetting(requester_1, embedder_0));
-
- map->ClearOneRequestingOrigin(requester_0.GetOrigin());
- EXPECT_EQ(CONTENT_SETTING_ASK,
- map->GetContentSetting(requester_0, embedder_0));
-
- // Passing a non-origin shouldn't do anything.
- map->ClearOneRequestingOrigin(requester_1);
- EXPECT_EQ(CONTENT_SETTING_ALLOW,
- map->GetContentSetting(requester_1, embedder_0));
-}
-
TEST_F(GeolocationContentSettingsMapTests, Reset) {
TestingProfile profile;
GeolocationContentSettingsMap* map =
« no previous file with comments | « chrome/browser/geolocation/geolocation_content_settings_map.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698