| 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/browser/renderer_host/test_backing_store.h" | 5 #include "content/browser/renderer_host/test_backing_store.h" |
| 6 #include "content/browser/renderer_host/test_render_view_host.h" | 6 #include "content/browser/renderer_host/test_render_view_host.h" |
| 7 #include "content/browser/site_instance_impl.h" | 7 #include "content/browser/site_instance_impl.h" |
| 8 #include "content/browser/web_contents/navigation_controller_impl.h" | 8 #include "content/browser/web_contents/navigation_controller_impl.h" |
| 9 #include "content/browser/web_contents/test_web_contents.h" | 9 #include "content/browser/web_contents/test_web_contents.h" |
| 10 #include "content/common/view_messages.h" | 10 #include "content/common/view_messages.h" |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 | 282 |
| 283 void TestRenderViewHost::SendShouldCloseACK(bool proceed) { | 283 void TestRenderViewHost::SendShouldCloseACK(bool proceed) { |
| 284 OnMsgShouldCloseACK(proceed, base::TimeTicks(), base::TimeTicks()); | 284 OnMsgShouldCloseACK(proceed, base::TimeTicks(), base::TimeTicks()); |
| 285 } | 285 } |
| 286 | 286 |
| 287 void TestRenderViewHost::SetContentsMimeType(const std::string& mime_type) { | 287 void TestRenderViewHost::SetContentsMimeType(const std::string& mime_type) { |
| 288 contents_mime_type_ = mime_type; | 288 contents_mime_type_ = mime_type; |
| 289 } | 289 } |
| 290 | 290 |
| 291 void TestRenderViewHost::SimulateSwapOutACK() { | 291 void TestRenderViewHost::SimulateSwapOutACK() { |
| 292 OnSwapOutACK(false); | 292 OnSwapOutACK(); |
| 293 } | 293 } |
| 294 | 294 |
| 295 void TestRenderViewHost::SimulateWasHidden() { | 295 void TestRenderViewHost::SimulateWasHidden() { |
| 296 WasHidden(); | 296 WasHidden(); |
| 297 } | 297 } |
| 298 | 298 |
| 299 void TestRenderViewHost::SimulateWasRestored() { | 299 void TestRenderViewHost::SimulateWasRestored() { |
| 300 WasRestored(); | 300 WasRestored(); |
| 301 } | 301 } |
| 302 | 302 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 326 | 326 |
| 327 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { | 327 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { |
| 328 return static_cast<TestRenderViewHost*>(active_rvh()); | 328 return static_cast<TestRenderViewHost*>(active_rvh()); |
| 329 } | 329 } |
| 330 | 330 |
| 331 TestWebContents* RenderViewHostImplTestHarness::contents() { | 331 TestWebContents* RenderViewHostImplTestHarness::contents() { |
| 332 return static_cast<TestWebContents*>(web_contents()); | 332 return static_cast<TestWebContents*>(web_contents()); |
| 333 } | 333 } |
| 334 | 334 |
| 335 } // namespace content | 335 } // namespace content |
| OLD | NEW |