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_TEST_TEST_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_TEST_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/test/test_renderer_host.h" | 16 #include "content/public/test/test_renderer_host.h" |
17 #include "ui/base/ime/dummy_text_input_client.h" | 17 #include "ui/base/ime/dummy_text_input_client.h" |
18 #include "ui/base/layout.h" | 18 #include "ui/base/layout.h" |
19 #include "ui/base/page_transition_types.h" | 19 #include "ui/base/page_transition_types.h" |
20 #include "ui/gfx/geometry/vector2d_f.h" | 20 #include "ui/gfx/vector2d_f.h" |
21 | 21 |
22 // This file provides a testing framework for mocking out the RenderProcessHost | 22 // This file provides a testing framework for mocking out the RenderProcessHost |
23 // layer. It allows you to test RenderViewHost, WebContentsImpl, | 23 // layer. It allows you to test RenderViewHost, WebContentsImpl, |
24 // NavigationController, and other layers above that without running an actual | 24 // NavigationController, and other layers above that without running an actual |
25 // renderer process. | 25 // renderer process. |
26 // | 26 // |
27 // To use, derive your test base class from RenderViewHostImplTestHarness. | 27 // To use, derive your test base class from RenderViewHostImplTestHarness. |
28 | 28 |
29 struct FrameHostMsg_DidCommitProvisionalLoad_Params; | 29 struct FrameHostMsg_DidCommitProvisionalLoad_Params; |
30 | 30 |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 private: | 319 private: |
320 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> | 320 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> |
321 ScopedSetSupportedScaleFactors; | 321 ScopedSetSupportedScaleFactors; |
322 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; | 322 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; |
323 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 323 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
324 }; | 324 }; |
325 | 325 |
326 } // namespace content | 326 } // namespace content |
327 | 327 |
328 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ | 328 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |