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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 TestBrowserThreadBundle* thread_bundle() { return thread_bundle_.get(); } | 224 TestBrowserThreadBundle* thread_bundle() { return thread_bundle_.get(); } |
225 | 225 |
226 #if defined(USE_AURA) | 226 #if defined(USE_AURA) |
227 aura::Window* root_window() { return aura_test_helper_->root_window(); } | 227 aura::Window* root_window() { return aura_test_helper_->root_window(); } |
228 #endif | 228 #endif |
229 | 229 |
230 // Replaces the RPH being used. | 230 // Replaces the RPH being used. |
231 void SetRenderProcessHostFactory(RenderProcessHostFactory* factory); | 231 void SetRenderProcessHostFactory(RenderProcessHostFactory* factory); |
232 | 232 |
233 private: | 233 private: |
| 234 int thread_bundle_options_; |
| 235 scoped_ptr<TestBrowserThreadBundle> thread_bundle_; |
| 236 |
234 scoped_ptr<ContentBrowserSanityChecker> sanity_checker_; | 237 scoped_ptr<ContentBrowserSanityChecker> sanity_checker_; |
235 | 238 |
236 scoped_ptr<BrowserContext> browser_context_; | 239 scoped_ptr<BrowserContext> browser_context_; |
237 | 240 |
238 scoped_ptr<WebContents> contents_; | 241 scoped_ptr<WebContents> contents_; |
239 #if defined(OS_WIN) | 242 #if defined(OS_WIN) |
240 scoped_ptr<ui::ScopedOleInitializer> ole_initializer_; | 243 scoped_ptr<ui::ScopedOleInitializer> ole_initializer_; |
241 #endif | 244 #endif |
242 #if defined(USE_AURA) | 245 #if defined(USE_AURA) |
243 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_; | 246 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_; |
244 #endif | 247 #endif |
245 RenderViewHostTestEnabler rvh_test_enabler_; | 248 RenderViewHostTestEnabler rvh_test_enabler_; |
246 | 249 |
247 int thread_bundle_options_; | |
248 scoped_ptr<TestBrowserThreadBundle> thread_bundle_; | |
249 | |
250 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 250 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
251 }; | 251 }; |
252 | 252 |
253 } // namespace content | 253 } // namespace content |
254 | 254 |
255 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ | 255 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ |
OLD | NEW |