OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/public/test/layouttest_support.h" | 5 #include "content/public/test/layouttest_support.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
9 #include "components/test_runner/test_common.h" | 9 #include "components/test_runner/test_common.h" |
10 #include "components/test_runner/web_frame_test_proxy.h" | 10 #include "components/test_runner/web_frame_test_proxy.h" |
11 #include "components/test_runner/web_test_proxy.h" | 11 #include "components/test_runner/web_test_proxy.h" |
12 #include "content/browser/bluetooth/bluetooth_dispatcher_host.h" | 12 #include "content/browser/bluetooth/bluetooth_dispatcher_host.h" |
13 #include "content/browser/renderer_host/render_process_host_impl.h" | 13 #include "content/browser/renderer_host/render_process_host_impl.h" |
14 #include "content/browser/renderer_host/render_widget_host_impl.h" | 14 #include "content/browser/renderer_host/render_widget_host_impl.h" |
15 #include "content/child/geofencing/web_geofencing_provider_impl.h" | 15 #include "content/child/geofencing/web_geofencing_provider_impl.h" |
16 #include "content/common/gpu/image_transport_surface.h" | 16 #include "content/common/gpu/image_transport_surface.h" |
| 17 #include "content/common/site_isolation_policy.h" |
17 #include "content/public/common/page_state.h" | 18 #include "content/public/common/page_state.h" |
18 #include "content/public/renderer/renderer_gamepad_provider.h" | 19 #include "content/public/renderer/renderer_gamepad_provider.h" |
19 #include "content/renderer/fetchers/manifest_fetcher.h" | 20 #include "content/renderer/fetchers/manifest_fetcher.h" |
20 #include "content/renderer/history_entry.h" | 21 #include "content/renderer/history_entry.h" |
21 #include "content/renderer/history_serialization.h" | 22 #include "content/renderer/history_serialization.h" |
22 #include "content/renderer/render_frame_impl.h" | 23 #include "content/renderer/render_frame_impl.h" |
23 #include "content/renderer/render_thread_impl.h" | 24 #include "content/renderer/render_thread_impl.h" |
24 #include "content/renderer/render_view_impl.h" | 25 #include "content/renderer/render_view_impl.h" |
25 #include "content/renderer/renderer_blink_platform_impl.h" | 26 #include "content/renderer/renderer_blink_platform_impl.h" |
26 #include "content/shell/common/shell_switches.h" | 27 #include "content/shell/common/shell_switches.h" |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 #endif | 182 #endif |
182 RenderWidgetHostImpl::DisableResizeAckCheckForTesting(); | 183 RenderWidgetHostImpl::DisableResizeAckCheckForTesting(); |
183 } | 184 } |
184 | 185 |
185 int GetLocalSessionHistoryLength(RenderView* render_view) { | 186 int GetLocalSessionHistoryLength(RenderView* render_view) { |
186 return static_cast<RenderViewImpl*>(render_view)-> | 187 return static_cast<RenderViewImpl*>(render_view)-> |
187 GetLocalSessionHistoryLengthForTesting(); | 188 GetLocalSessionHistoryLengthForTesting(); |
188 } | 189 } |
189 | 190 |
190 void SyncNavigationState(RenderView* render_view) { | 191 void SyncNavigationState(RenderView* render_view) { |
| 192 // TODO(creis): Add support for testing in OOPIF-enabled modes. |
| 193 // See https://crbug.com/477150. |
| 194 if (SiteIsolationPolicy::UseSubframeNavigationEntries()) |
| 195 return; |
191 static_cast<RenderViewImpl*>(render_view)->SendUpdateState(); | 196 static_cast<RenderViewImpl*>(render_view)->SendUpdateState(); |
192 } | 197 } |
193 | 198 |
194 void SetFocusAndActivate(RenderView* render_view, bool enable) { | 199 void SetFocusAndActivate(RenderView* render_view, bool enable) { |
195 static_cast<RenderViewImpl*>(render_view)-> | 200 static_cast<RenderViewImpl*>(render_view)-> |
196 SetFocusAndActivateForTesting(enable); | 201 SetFocusAndActivateForTesting(enable); |
197 } | 202 } |
198 | 203 |
199 void ForceResizeRenderView(RenderView* render_view, | 204 void ForceResizeRenderView(RenderView* render_view, |
200 const WebSize& new_size) { | 205 const WebSize& new_size) { |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 result.append( | 456 result.append( |
452 DumpHistoryItem(entry->root_history_node(), | 457 DumpHistoryItem(entry->root_history_node(), |
453 8, | 458 8, |
454 index == current_index)); | 459 index == current_index)); |
455 } | 460 } |
456 result.append("===============================================\n"); | 461 result.append("===============================================\n"); |
457 return result; | 462 return result; |
458 } | 463 } |
459 | 464 |
460 } // namespace content | 465 } // namespace content |
OLD | NEW |