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 "base/utf_string_conversions.h" | 5 #include "base/utf_string_conversions.h" |
6 #include "base/values.h" | 6 #include "base/values.h" |
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/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/browser/renderer_host/render_view_host.h" | 9 #include "chrome/browser/renderer_host/render_view_host.h" |
10 #include "chrome/browser/tab_contents/tab_contents.h" | 10 #include "chrome/browser/tab_contents/tab_contents.h" |
11 #include "chrome/browser/tab_contents/tab_specific_content_settings.h" | 11 #include "chrome/browser/tab_contents/tab_specific_content_settings.h" |
12 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" |
13 #include "chrome/test/in_process_browser_test.h" | 13 #include "chrome/test/in_process_browser_test.h" |
14 #include "chrome/test/ui_test_utils.h" | 14 #include "chrome/test/ui_test_utils.h" |
15 #include "net/test/test_server.h" | 15 #include "net/test/test_server.h" |
16 | 16 |
17 typedef InProcessBrowserTest RenderViewHostTest; | 17 typedef InProcessBrowserTest RenderViewHostTest; |
18 | 18 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 106 |
107 ui_test_utils::NavigateToURL(browser(), test_url); | 107 ui_test_utils::NavigateToURL(browser(), test_url); |
108 | 108 |
109 TabContents* tab_contents = browser()->GetSelectedTabContents(); | 109 TabContents* tab_contents = browser()->GetSelectedTabContents(); |
110 ASSERT_EQ(UTF8ToUTF16(test_url.spec() + " failed to load"), | 110 ASSERT_EQ(UTF8ToUTF16(test_url.spec() + " failed to load"), |
111 tab_contents->GetTitle()); | 111 tab_contents->GetTitle()); |
112 | 112 |
113 EXPECT_TRUE(tab_contents->GetTabSpecificContentSettings()->IsContentBlocked( | 113 EXPECT_TRUE(tab_contents->GetTabSpecificContentSettings()->IsContentBlocked( |
114 CONTENT_SETTINGS_TYPE_COOKIES)); | 114 CONTENT_SETTINGS_TYPE_COOKIES)); |
115 } | 115 } |
OLD | NEW |