| 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_settings_state.h" |
| 6 |
| 7 #include "chrome/browser/browser_thread.h" |
| 5 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" | 8 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" |
| 6 #include "chrome/browser/geolocation/geolocation_settings_state.h" | 9 #include "chrome/browser/tab_contents/navigation_entry.h" |
| 7 #include "chrome/test/testing_profile.h" | 10 #include "chrome/test/testing_profile.h" |
| 8 #include "content/browser/browser_thread.h" | |
| 9 #include "content/browser/tab_contents/navigation_entry.h" | |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 12 |
| 12 namespace { | 13 namespace { |
| 13 | 14 |
| 14 class GeolocationSettingsStateTests : public testing::Test { | 15 class GeolocationSettingsStateTests : public testing::Test { |
| 15 public: | 16 public: |
| 16 GeolocationSettingsStateTests() | 17 GeolocationSettingsStateTests() |
| 17 : ui_thread_(BrowserThread::UI, &message_loop_) { | 18 : ui_thread_(BrowserThread::UI, &message_loop_) { |
| 18 } | 19 } |
| 19 | 20 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 formatted_host_per_state[CONTENT_SETTING_ALLOW].count( | 177 formatted_host_per_state[CONTENT_SETTING_ALLOW].count( |
| 177 url_2.host())); | 178 url_2.host())); |
| 178 EXPECT_EQ(1U, formatted_host_per_state[CONTENT_SETTING_BLOCK].size()); | 179 EXPECT_EQ(1U, formatted_host_per_state[CONTENT_SETTING_BLOCK].size()); |
| 179 EXPECT_EQ(1U, | 180 EXPECT_EQ(1U, |
| 180 formatted_host_per_state[CONTENT_SETTING_BLOCK].count( | 181 formatted_host_per_state[CONTENT_SETTING_BLOCK].count( |
| 181 url_1.spec())); | 182 url_1.spec())); |
| 182 } | 183 } |
| 183 | 184 |
| 184 | 185 |
| 185 } // namespace | 186 } // namespace |
| OLD | NEW |