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/test/test_render_view_host.h" | 5 #include "content/test/test_render_view_host.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" | 8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
9 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 9 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
10 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 10 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 } | 246 } |
247 | 247 |
248 bool TestRenderViewHost::IsRenderViewLive() const { | 248 bool TestRenderViewHost::IsRenderViewLive() const { |
249 return render_view_created_; | 249 return render_view_created_; |
250 } | 250 } |
251 | 251 |
252 bool TestRenderViewHost::IsFullscreenGranted() const { | 252 bool TestRenderViewHost::IsFullscreenGranted() const { |
253 return RenderViewHostImpl::IsFullscreenGranted(); | 253 return RenderViewHostImpl::IsFullscreenGranted(); |
254 } | 254 } |
255 | 255 |
| 256 MockRenderProcessHost* TestRenderViewHost::GetProcess() const { |
| 257 return static_cast<MockRenderProcessHost*>(RenderViewHostImpl::GetProcess()); |
| 258 } |
| 259 |
256 void TestRenderViewHost::SimulateWasHidden() { | 260 void TestRenderViewHost::SimulateWasHidden() { |
257 WasHidden(); | 261 WasHidden(); |
258 } | 262 } |
259 | 263 |
260 void TestRenderViewHost::SimulateWasShown() { | 264 void TestRenderViewHost::SimulateWasShown() { |
261 WasShown(ui::LatencyInfo()); | 265 WasShown(ui::LatencyInfo()); |
262 } | 266 } |
263 | 267 |
264 WebPreferences TestRenderViewHost::TestComputeWebkitPrefs() { | 268 WebPreferences TestRenderViewHost::TestComputeWebkitPrefs() { |
265 return ComputeWebkitPrefs(); | 269 return ComputeWebkitPrefs(); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 | 313 |
310 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 314 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
311 return contents()->GetMainFrame(); | 315 return contents()->GetMainFrame(); |
312 } | 316 } |
313 | 317 |
314 TestWebContents* RenderViewHostImplTestHarness::contents() { | 318 TestWebContents* RenderViewHostImplTestHarness::contents() { |
315 return static_cast<TestWebContents*>(web_contents()); | 319 return static_cast<TestWebContents*>(web_contents()); |
316 } | 320 } |
317 | 321 |
318 } // namespace content | 322 } // namespace content |
OLD | NEW |