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_PUBLIC_TEST_TEST_RENDERER_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ |
6 #define CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ | 6 #define CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "content/public/browser/render_frame_host.h" | 10 #include "content/public/browser/render_frame_host.h" |
(...skipping 18 matching lines...) Expand all Loading... | |
29 | 29 |
30 namespace content { | 30 namespace content { |
31 | 31 |
32 class BrowserContext; | 32 class BrowserContext; |
33 class ContentBrowserSanityChecker; | 33 class ContentBrowserSanityChecker; |
34 class MockRenderProcessHost; | 34 class MockRenderProcessHost; |
35 class MockRenderProcessHostFactory; | 35 class MockRenderProcessHostFactory; |
36 class NavigationController; | 36 class NavigationController; |
37 class RenderProcessHostFactory; | 37 class RenderProcessHostFactory; |
38 class RenderViewHostDelegate; | 38 class RenderViewHostDelegate; |
39 class TestNavigationHandleFactory; | |
39 class TestRenderFrameHostFactory; | 40 class TestRenderFrameHostFactory; |
40 class TestRenderViewHostFactory; | 41 class TestRenderViewHostFactory; |
41 class WebContents; | 42 class WebContents; |
42 struct WebPreferences; | 43 struct WebPreferences; |
43 | 44 |
44 // An interface and utility for driving tests of RenderFrameHost. | 45 // An interface and utility for driving tests of RenderFrameHost. |
45 class RenderFrameHostTester { | 46 class RenderFrameHostTester { |
46 public: | 47 public: |
47 // Retrieves the RenderFrameHostTester that drives the specified | 48 // Retrieves the RenderFrameHostTester that drives the specified |
48 // RenderFrameHost. The RenderFrameHost must have been created while | 49 // RenderFrameHost. The RenderFrameHost must have been created while |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
175 RenderViewHostTestEnabler(); | 176 RenderViewHostTestEnabler(); |
176 ~RenderViewHostTestEnabler(); | 177 ~RenderViewHostTestEnabler(); |
177 | 178 |
178 private: | 179 private: |
179 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestEnabler); | 180 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestEnabler); |
180 friend class RenderViewHostTestHarness; | 181 friend class RenderViewHostTestHarness; |
181 | 182 |
182 scoped_ptr<MockRenderProcessHostFactory> rph_factory_; | 183 scoped_ptr<MockRenderProcessHostFactory> rph_factory_; |
183 scoped_ptr<TestRenderViewHostFactory> rvh_factory_; | 184 scoped_ptr<TestRenderViewHostFactory> rvh_factory_; |
184 scoped_ptr<TestRenderFrameHostFactory> rfh_factory_; | 185 scoped_ptr<TestRenderFrameHostFactory> rfh_factory_; |
186 scoped_ptr<TestNavigationHandleFactory> handle_factory_; | |
nasko
2015/09/04 23:36:49
handle_factory is too generic. Let's prepend navig
clamy
2015/09/08 16:27:19
Done.
| |
185 }; | 187 }; |
186 | 188 |
187 // RenderViewHostTestHarness --------------------------------------------------- | 189 // RenderViewHostTestHarness --------------------------------------------------- |
188 class RenderViewHostTestHarness : public testing::Test { | 190 class RenderViewHostTestHarness : public testing::Test { |
189 public: | 191 public: |
190 RenderViewHostTestHarness(); | 192 RenderViewHostTestHarness(); |
191 ~RenderViewHostTestHarness() override; | 193 ~RenderViewHostTestHarness() override; |
192 | 194 |
193 NavigationController& controller(); | 195 NavigationController& controller(); |
194 | 196 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
281 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_; | 283 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_; |
282 #endif | 284 #endif |
283 RenderViewHostTestEnabler rvh_test_enabler_; | 285 RenderViewHostTestEnabler rvh_test_enabler_; |
284 | 286 |
285 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 287 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
286 }; | 288 }; |
287 | 289 |
288 } // namespace content | 290 } // namespace content |
289 | 291 |
290 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ | 292 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ |
OLD | NEW |