| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 // Simulates initialization of the RenderFrame object in the renderer process | 73 // Simulates initialization of the RenderFrame object in the renderer process |
| 74 // and ensures internal state of RenderFrameHost is ready for simulating | 74 // and ensures internal state of RenderFrameHost is ready for simulating |
| 75 // RenderFrame originated IPCs. | 75 // RenderFrame originated IPCs. |
| 76 virtual void InitializeRenderFrameIfNeeded() = 0; | 76 virtual void InitializeRenderFrameIfNeeded() = 0; |
| 77 | 77 |
| 78 // Gives tests access to RenderFrameHostImpl::OnCreateChild. The returned | 78 // Gives tests access to RenderFrameHostImpl::OnCreateChild. The returned |
| 79 // RenderFrameHost is owned by the parent RenderFrameHost. | 79 // RenderFrameHost is owned by the parent RenderFrameHost. |
| 80 virtual RenderFrameHost* AppendChild(const std::string& frame_name) = 0; | 80 virtual RenderFrameHost* AppendChild(const std::string& frame_name) = 0; |
| 81 | 81 |
| 82 // Gives tests access to RenderFrameHostImpl::OnDetach. Destroys |this|. |
| 83 virtual void Detach() = 0; |
| 84 |
| 82 // Simulates a renderer-initiated navigation to |url| starting in the | 85 // Simulates a renderer-initiated navigation to |url| starting in the |
| 83 // RenderFrameHost. | 86 // RenderFrameHost. |
| 84 virtual void SimulateNavigationStart(const GURL& url) = 0; | 87 virtual void SimulateNavigationStart(const GURL& url) = 0; |
| 85 | 88 |
| 86 // Simulates a redirect to |new_url| for the navigation in the | 89 // Simulates a redirect to |new_url| for the navigation in the |
| 87 // RenderFrameHost. | 90 // RenderFrameHost. |
| 88 virtual void SimulateRedirect(const GURL& new_url) = 0; | 91 virtual void SimulateRedirect(const GURL& new_url) = 0; |
| 89 | 92 |
| 90 // Simulates a navigation to |url| committing in the RenderFrameHost. | 93 // Simulates a navigation to |url| committing in the RenderFrameHost. |
| 91 virtual void SimulateNavigationCommit(const GURL& url) = 0; | 94 virtual void SimulateNavigationCommit(const GURL& url) = 0; |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_; | 288 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_; |
| 286 #endif | 289 #endif |
| 287 RenderViewHostTestEnabler rvh_test_enabler_; | 290 RenderViewHostTestEnabler rvh_test_enabler_; |
| 288 | 291 |
| 289 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 292 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
| 290 }; | 293 }; |
| 291 | 294 |
| 292 } // namespace content | 295 } // namespace content |
| 293 | 296 |
| 294 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ | 297 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ |
| OLD | NEW |