| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 public: | 153 public: |
| 154 RenderViewHostTestHarness(); | 154 RenderViewHostTestHarness(); |
| 155 virtual ~RenderViewHostTestHarness(); | 155 virtual ~RenderViewHostTestHarness(); |
| 156 | 156 |
| 157 NavigationController& controller(); | 157 NavigationController& controller(); |
| 158 WebContents* web_contents(); | 158 WebContents* web_contents(); |
| 159 RenderViewHost* rvh(); | 159 RenderViewHost* rvh(); |
| 160 RenderViewHost* pending_rvh(); | 160 RenderViewHost* pending_rvh(); |
| 161 RenderViewHost* active_rvh(); | 161 RenderViewHost* active_rvh(); |
| 162 RenderFrameHost* main_rfh(); | 162 RenderFrameHost* main_rfh(); |
| 163 RenderFrameHost* pending_main_rfh(); |
| 163 BrowserContext* browser_context(); | 164 BrowserContext* browser_context(); |
| 164 MockRenderProcessHost* process(); | 165 MockRenderProcessHost* process(); |
| 165 | 166 |
| 166 // Frees the current WebContents for tests that want to test destruction. | 167 // Frees the current WebContents for tests that want to test destruction. |
| 167 void DeleteContents(); | 168 void DeleteContents(); |
| 168 | 169 |
| 169 // Sets the current WebContents for tests that want to alter it. Takes | 170 // Sets the current WebContents for tests that want to alter it. Takes |
| 170 // ownership of the WebContents passed. | 171 // ownership of the WebContents passed. |
| 171 void SetContents(WebContents* contents); | 172 void SetContents(WebContents* contents); |
| 172 | 173 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 227 |
| 227 int thread_bundle_options_; | 228 int thread_bundle_options_; |
| 228 scoped_ptr<TestBrowserThreadBundle> thread_bundle_; | 229 scoped_ptr<TestBrowserThreadBundle> thread_bundle_; |
| 229 | 230 |
| 230 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 231 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
| 231 }; | 232 }; |
| 232 | 233 |
| 233 } // namespace content | 234 } // namespace content |
| 234 | 235 |
| 235 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ | 236 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ |
| OLD | NEW |