| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "content/browser/frame_host/render_frame_host_impl.h" | 5 #include "content/browser/frame_host/render_frame_host_impl.h" |
| 6 | 6 |
| 7 #include "base/macros.h" |
| 7 #include "content/browser/web_contents/web_contents_impl.h" | 8 #include "content/browser/web_contents/web_contents_impl.h" |
| 8 #include "content/public/browser/render_frame_host.h" | 9 #include "content/public/browser/render_frame_host.h" |
| 9 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
| 10 #include "content/public/common/content_client.h" | 11 #include "content/public/common/content_client.h" |
| 11 #include "content/public/test/content_browser_test.h" | 12 #include "content/public/test/content_browser_test.h" |
| 12 #include "content/public/test/content_browser_test_utils.h" | 13 #include "content/public/test/content_browser_test_utils.h" |
| 13 #include "content/public/test/test_utils.h" | 14 #include "content/public/test/test_utils.h" |
| 14 #include "content/shell/browser/shell.h" | 15 #include "content/shell/browser/shell.h" |
| 15 #include "content/test/test_content_browser_client.h" | 16 #include "content/test/test_content_browser_client.h" |
| 16 | 17 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 web_contents->GetMainFrame()->GetVisibilityState()); | 150 web_contents->GetMainFrame()->GetVisibilityState()); |
| 150 | 151 |
| 151 new_client.EnableVisibilityOverride(blink::WebPageVisibilityStatePrerender); | 152 new_client.EnableVisibilityOverride(blink::WebPageVisibilityStatePrerender); |
| 152 EXPECT_EQ(blink::WebPageVisibilityStatePrerender, | 153 EXPECT_EQ(blink::WebPageVisibilityStatePrerender, |
| 153 web_contents->GetMainFrame()->GetVisibilityState()); | 154 web_contents->GetMainFrame()->GetVisibilityState()); |
| 154 | 155 |
| 155 SetBrowserClientForTesting(old_client); | 156 SetBrowserClientForTesting(old_client); |
| 156 } | 157 } |
| 157 | 158 |
| 158 } // namespace content | 159 } // namespace content |
| OLD | NEW |