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 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "content/browser/renderer_host/render_view_host_impl.h" | 14 #include "content/browser/renderer_host/render_view_host_impl.h" |
15 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 15 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
16 #include "content/public/common/page_transition_types.h" | 16 #include "content/public/common/page_transition_types.h" |
17 #include "content/public/test/test_renderer_host.h" | 17 #include "content/public/test/test_renderer_host.h" |
| 18 #include "ui/base/layout.h" |
18 #include "ui/gfx/vector2d_f.h" | 19 #include "ui/gfx/vector2d_f.h" |
19 | 20 |
20 // This file provides a testing framework for mocking out the RenderProcessHost | 21 // This file provides a testing framework for mocking out the RenderProcessHost |
21 // layer. It allows you to test RenderViewHost, WebContentsImpl, | 22 // layer. It allows you to test RenderViewHost, WebContentsImpl, |
22 // NavigationController, and other layers above that without running an actual | 23 // NavigationController, and other layers above that without running an actual |
23 // renderer process. | 24 // renderer process. |
24 // | 25 // |
25 // To use, derive your test base class from RenderViewHostImplTestHarness. | 26 // To use, derive your test base class from RenderViewHostImplTestHarness. |
26 | 27 |
27 struct ViewHostMsg_FrameNavigate_Params; | 28 struct ViewHostMsg_FrameNavigate_Params; |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 public: | 364 public: |
364 RenderViewHostImplTestHarness(); | 365 RenderViewHostImplTestHarness(); |
365 virtual ~RenderViewHostImplTestHarness(); | 366 virtual ~RenderViewHostImplTestHarness(); |
366 | 367 |
367 TestRenderViewHost* test_rvh(); | 368 TestRenderViewHost* test_rvh(); |
368 TestRenderViewHost* pending_test_rvh(); | 369 TestRenderViewHost* pending_test_rvh(); |
369 TestRenderViewHost* active_test_rvh(); | 370 TestRenderViewHost* active_test_rvh(); |
370 TestWebContents* contents(); | 371 TestWebContents* contents(); |
371 | 372 |
372 private: | 373 private: |
| 374 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> |
| 375 ScopedSetSupportedScaleFactors; |
| 376 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; |
373 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 377 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
374 }; | 378 }; |
375 | 379 |
376 } // namespace content | 380 } // namespace content |
377 | 381 |
378 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 382 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |