OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/message_loop.h" | 5 #include "base/message_loop.h" |
6 #include "chrome/browser/content_settings/content_settings_details.h" | 6 #include "chrome/browser/content_settings/content_settings_details.h" |
7 #include "chrome/browser/content_settings/host_content_settings_map.h" | 7 #include "chrome/browser/content_settings/host_content_settings_map.h" |
8 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" | 8 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" |
9 #include "chrome/browser/prefs/pref_service.h" | 9 #include "chrome/browser/prefs/pref_service.h" |
10 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 10 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
11 #include "chrome/common/chrome_notification_types.h" | 11 #include "chrome/common/chrome_notification_types.h" |
12 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
| 13 #include "chrome/test/base/testing_browser_process_test.h" |
13 #include "chrome/test/base/testing_profile.h" | 14 #include "chrome/test/base/testing_profile.h" |
14 #include "chrome/test/testing_browser_process_test.h" | |
15 #include "content/browser/browser_thread.h" | 15 #include "content/browser/browser_thread.h" |
16 #include "content/common/notification_registrar.h" | 16 #include "content/common/notification_registrar.h" |
17 #include "content/common/notification_service.h" | 17 #include "content/common/notification_service.h" |
18 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 | 20 |
21 using ::testing::_; | 21 using ::testing::_; |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 OnContentSettingsChanged(map, CONTENT_SETTINGS_TYPE_DEFAULT)); | 309 OnContentSettingsChanged(map, CONTENT_SETTINGS_TYPE_DEFAULT)); |
310 prefs->SetInteger(prefs::kGeolocationDefaultContentSetting, | 310 prefs->SetInteger(prefs::kGeolocationDefaultContentSetting, |
311 CONTENT_SETTING_ALLOW); | 311 CONTENT_SETTING_ALLOW); |
312 | 312 |
313 EXPECT_EQ(CONTENT_SETTING_ALLOW, | 313 EXPECT_EQ(CONTENT_SETTING_ALLOW, |
314 profile.GetHostContentSettingsMap()->GetDefaultContentSetting( | 314 profile.GetHostContentSettingsMap()->GetDefaultContentSetting( |
315 CONTENT_SETTINGS_TYPE_GEOLOCATION)); | 315 CONTENT_SETTINGS_TYPE_GEOLOCATION)); |
316 } | 316 } |
317 | 317 |
318 } // namespace | 318 } // namespace |
OLD | NEW |