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