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/frame_host/test_render_frame_host.h" | |
14 #include "content/browser/renderer_host/render_view_host_impl.h" | 15 #include "content/browser/renderer_host/render_view_host_impl.h" |
15 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 16 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
16 #include "content/public/common/page_transition_types.h" | 17 #include "content/public/common/page_transition_types.h" |
17 #include "content/public/test/test_renderer_host.h" | 18 #include "content/public/test/test_renderer_host.h" |
18 #include "ui/base/layout.h" | 19 #include "ui/base/layout.h" |
19 #include "ui/gfx/vector2d_f.h" | 20 #include "ui/gfx/vector2d_f.h" |
20 | 21 |
21 // This file provides a testing framework for mocking out the RenderProcessHost | 22 // This file provides a testing framework for mocking out the RenderProcessHost |
22 // layer. It allows you to test RenderViewHost, WebContentsImpl, | 23 // layer. It allows you to test RenderViewHost, WebContentsImpl, |
23 // NavigationController, and other layers above that without running an actual | 24 // NavigationController, and other layers above that without running an actual |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
363 | 364 |
364 // Adds methods to get straight at the impl classes. | 365 // Adds methods to get straight at the impl classes. |
365 class RenderViewHostImplTestHarness : public RenderViewHostTestHarness { | 366 class RenderViewHostImplTestHarness : public RenderViewHostTestHarness { |
366 public: | 367 public: |
367 RenderViewHostImplTestHarness(); | 368 RenderViewHostImplTestHarness(); |
368 virtual ~RenderViewHostImplTestHarness(); | 369 virtual ~RenderViewHostImplTestHarness(); |
369 | 370 |
370 TestRenderViewHost* test_rvh(); | 371 TestRenderViewHost* test_rvh(); |
371 TestRenderViewHost* pending_test_rvh(); | 372 TestRenderViewHost* pending_test_rvh(); |
372 TestRenderViewHost* active_test_rvh(); | 373 TestRenderViewHost* active_test_rvh(); |
374 TestRenderFrameHost* test_main_rfh(); | |
Charlie Reis
2013/11/21 21:59:32
nit: main_test_rfh()
(More consistent with pending
nasko
2013/11/22 01:02:34
Done.
| |
373 TestWebContents* contents(); | 375 TestWebContents* contents(); |
374 | 376 |
375 private: | 377 private: |
376 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> | 378 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> |
377 ScopedSetSupportedScaleFactors; | 379 ScopedSetSupportedScaleFactors; |
378 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; | 380 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; |
379 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 381 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
380 }; | 382 }; |
381 | 383 |
382 } // namespace content | 384 } // namespace content |
383 | 385 |
384 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 386 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |