Chromium Code Reviews| Index: content/public/test/test_renderer_host.h |
| diff --git a/content/public/test/test_renderer_host.h b/content/public/test/test_renderer_host.h |
| index 44b5ff86e41d9c6dff44b9843273fbdfa45b62c3..0009d328cc962d8e226ba53bc5623e440c29f1bb 100644 |
| --- a/content/public/test/test_renderer_host.h |
| +++ b/content/public/test/test_renderer_host.h |
| @@ -9,6 +9,7 @@ |
| #include "base/message_loop.h" |
| #include "content/public/browser/render_view_host.h" |
| #include "content/public/common/page_transition_types.h" |
| +#include "content/public/test/test_browser_thread_bundle.h" |
| #include "testing/gtest/include/gtest/gtest.h" |
| #if defined(USE_AURA) |
| @@ -155,6 +156,15 @@ class RenderViewHostTestHarness : public testing::Test { |
| virtual void SetUp() OVERRIDE; |
| virtual void TearDown() OVERRIDE; |
| + // Configures when TestBrowserThreads inside |thread_bundle| are backed by |
|
Jeffrey Yasskin
2013/05/27 03:12:13
s/when/which/?
awong
2013/05/30 21:46:09
Done.
|
| + // real threads. Must be called before SetUp(). |
| + void SetRealThreadMask(int real_threads_mask) { |
| + DCHECK(thread_bundle_.get() == NULL); |
| + real_threads_mask_ = real_threads_mask; |
| + } |
| + |
| + TestBrowserThreadBundle* thread_bundle() { return thread_bundle_.get(); } |
| + |
| #if defined(USE_AURA) |
| aura::RootWindow* root_window() { return aura_test_helper_->root_window(); } |
| #endif |
| @@ -168,8 +178,6 @@ class RenderViewHostTestHarness : public testing::Test { |
| // SetUp(). |
| scoped_ptr<BrowserContext> browser_context_; |
| - base::MessageLoopForUI message_loop_; |
| - |
| private: |
| // It is important not to use this directly in the implementation as |
| // web_contents() and SetContents() are virtual and may be |
| @@ -183,6 +191,9 @@ class RenderViewHostTestHarness : public testing::Test { |
| #endif |
| RenderViewHostTestEnabler rvh_test_enabler_; |
| + int real_threads_mask_; |
| + scoped_ptr<TestBrowserThreadBundle> thread_bundle_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
| }; |