OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/geolocation/geolocation_content_settings_map.h" | 5 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" |
6 #include "chrome/browser/geolocation/geolocation_settings_state.h" | 6 #include "chrome/browser/geolocation/geolocation_settings_state.h" |
| 7 #include "chrome/test/base/testing_browser_process_test.h" |
7 #include "chrome/test/base/testing_profile.h" | 8 #include "chrome/test/base/testing_profile.h" |
8 #include "chrome/test/testing_browser_process_test.h" | |
9 #include "content/browser/browser_thread.h" | 9 #include "content/browser/browser_thread.h" |
10 #include "content/browser/tab_contents/navigation_details.h" | 10 #include "content/browser/tab_contents/navigation_details.h" |
11 #include "content/browser/tab_contents/navigation_entry.h" | 11 #include "content/browser/tab_contents/navigation_entry.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 class GeolocationSettingsStateTests : public TestingBrowserProcessTest { | 16 class GeolocationSettingsStateTests : public TestingBrowserProcessTest { |
17 public: | 17 public: |
18 GeolocationSettingsStateTests() | 18 GeolocationSettingsStateTests() |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 formatted_host_per_state[CONTENT_SETTING_ALLOW].count( | 178 formatted_host_per_state[CONTENT_SETTING_ALLOW].count( |
179 url_2.host())); | 179 url_2.host())); |
180 EXPECT_EQ(1U, formatted_host_per_state[CONTENT_SETTING_BLOCK].size()); | 180 EXPECT_EQ(1U, formatted_host_per_state[CONTENT_SETTING_BLOCK].size()); |
181 EXPECT_EQ(1U, | 181 EXPECT_EQ(1U, |
182 formatted_host_per_state[CONTENT_SETTING_BLOCK].count( | 182 formatted_host_per_state[CONTENT_SETTING_BLOCK].count( |
183 url_1.spec())); | 183 url_1.spec())); |
184 } | 184 } |
185 | 185 |
186 | 186 |
187 } // namespace | 187 } // namespace |
OLD | NEW |