| 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| 11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 #include "content/browser/renderer_host/render_view_host_impl.h" | 12 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 13 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 13 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| 14 #include "content/public/common/page_transition_types.h" | 14 #include "content/public/common/page_transition_types.h" |
| 15 #include "content/test/test_renderer_host.h" | 15 #include "content/public/test/test_renderer_host.h" |
| 16 | 16 |
| 17 // This file provides a testing framework for mocking out the RenderProcessHost | 17 // This file provides a testing framework for mocking out the RenderProcessHost |
| 18 // layer. It allows you to test RenderViewHost, WebContentsImpl, | 18 // layer. It allows you to test RenderViewHost, WebContentsImpl, |
| 19 // NavigationController, and other layers above that without running an actual | 19 // NavigationController, and other layers above that without running an actual |
| 20 // renderer process. | 20 // renderer process. |
| 21 // | 21 // |
| 22 // To use, derive your test base class from RenderViewHostImplTestHarness. | 22 // To use, derive your test base class from RenderViewHostImplTestHarness. |
| 23 | 23 |
| 24 struct ViewHostMsg_FrameNavigate_Params; | 24 struct ViewHostMsg_FrameNavigate_Params; |
| 25 | 25 |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 TestRenderViewHost* active_test_rvh(); | 317 TestRenderViewHost* active_test_rvh(); |
| 318 TestWebContents* contents(); | 318 TestWebContents* contents(); |
| 319 | 319 |
| 320 private: | 320 private: |
| 321 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 321 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
| 322 }; | 322 }; |
| 323 | 323 |
| 324 } // namespace content | 324 } // namespace content |
| 325 | 325 |
| 326 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 326 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |