| 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 <string> | 5 #include <string> |
| 6 | 6 |
| 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_settings_state.h" | 8 #include "chrome/browser/geolocation/geolocation_settings_state.h" |
| 9 #include "chrome/test/base/testing_profile.h" | 9 #include "chrome/test/base/testing_profile.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 "content/test/test_browser_thread.h" | 12 #include "content/test/test_browser_thread.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 using content::BrowserThread; |
| 16 |
| 15 namespace { | 17 namespace { |
| 16 | 18 |
| 17 class GeolocationSettingsStateTests : public testing::Test { | 19 class GeolocationSettingsStateTests : public testing::Test { |
| 18 public: | 20 public: |
| 19 GeolocationSettingsStateTests() | 21 GeolocationSettingsStateTests() |
| 20 : ui_thread_(BrowserThread::UI, &message_loop_) { | 22 : ui_thread_(BrowserThread::UI, &message_loop_) { |
| 21 } | 23 } |
| 22 | 24 |
| 23 protected: | 25 protected: |
| 24 MessageLoop message_loop_; | 26 MessageLoop message_loop_; |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 formatted_host_per_state[CONTENT_SETTING_ALLOW].count( | 201 formatted_host_per_state[CONTENT_SETTING_ALLOW].count( |
| 200 url_2.host())); | 202 url_2.host())); |
| 201 EXPECT_EQ(1U, formatted_host_per_state[CONTENT_SETTING_BLOCK].size()); | 203 EXPECT_EQ(1U, formatted_host_per_state[CONTENT_SETTING_BLOCK].size()); |
| 202 EXPECT_EQ(1U, | 204 EXPECT_EQ(1U, |
| 203 formatted_host_per_state[CONTENT_SETTING_BLOCK].count( | 205 formatted_host_per_state[CONTENT_SETTING_BLOCK].count( |
| 204 url_1.spec())); | 206 url_1.spec())); |
| 205 } | 207 } |
| 206 | 208 |
| 207 | 209 |
| 208 } // namespace | 210 } // namespace |
| OLD | NEW |