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