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 "base/message_loop.h" |
7 #include "chrome/browser/content_settings/host_content_settings_map.h" | 8 #include "chrome/browser/content_settings/host_content_settings_map.h" |
8 #include "chrome/browser/geolocation/geolocation_settings_state.h" | 9 #include "chrome/browser/geolocation/geolocation_settings_state.h" |
9 #include "chrome/test/base/testing_profile.h" | 10 #include "chrome/test/base/testing_profile.h" |
10 #include "content/browser/tab_contents/navigation_details.h" | 11 #include "content/browser/tab_contents/navigation_details.h" |
11 #include "content/browser/tab_contents/navigation_entry.h" | 12 #include "content/browser/tab_contents/navigation_entry.h" |
12 #include "content/test/test_browser_thread.h" | 13 #include "content/test/test_browser_thread.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
14 | 15 |
15 using content::BrowserThread; | 16 using content::BrowserThread; |
16 | 17 |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 formatted_host_per_state[CONTENT_SETTING_ALLOW].count( | 202 formatted_host_per_state[CONTENT_SETTING_ALLOW].count( |
202 url_2.host())); | 203 url_2.host())); |
203 EXPECT_EQ(1U, formatted_host_per_state[CONTENT_SETTING_BLOCK].size()); | 204 EXPECT_EQ(1U, formatted_host_per_state[CONTENT_SETTING_BLOCK].size()); |
204 EXPECT_EQ(1U, | 205 EXPECT_EQ(1U, |
205 formatted_host_per_state[CONTENT_SETTING_BLOCK].count( | 206 formatted_host_per_state[CONTENT_SETTING_BLOCK].count( |
206 url_1.spec())); | 207 url_1.spec())); |
207 } | 208 } |
208 | 209 |
209 | 210 |
210 } // namespace | 211 } // namespace |
OLD | NEW |