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.h" | 9 #include "base/message_loop.h" |
10 #include "content/public/browser/render_view_host.h" | 10 #include "content/public/browser/render_view_host.h" |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 161 |
162 // Replaces the RPH being used. | 162 // Replaces the RPH being used. |
163 void SetRenderProcessHostFactory(RenderProcessHostFactory* factory); | 163 void SetRenderProcessHostFactory(RenderProcessHostFactory* factory); |
164 | 164 |
165 // This browser context will be created in SetUp if it has not already been | 165 // This browser context will be created in SetUp if it has not already been |
166 // created. This allows tests to override the browser context if they so | 166 // created. This allows tests to override the browser context if they so |
167 // choose in their own SetUp function before calling the base class's (us) | 167 // choose in their own SetUp function before calling the base class's (us) |
168 // SetUp(). | 168 // SetUp(). |
169 scoped_ptr<BrowserContext> browser_context_; | 169 scoped_ptr<BrowserContext> browser_context_; |
170 | 170 |
171 MessageLoopForUI message_loop_; | 171 base::MessageLoopForUI message_loop_; |
172 | 172 |
173 private: | 173 private: |
174 // It is important not to use this directly in the implementation as | 174 // It is important not to use this directly in the implementation as |
175 // web_contents() and SetContents() are virtual and may be | 175 // web_contents() and SetContents() are virtual and may be |
176 // overridden by subclasses. | 176 // overridden by subclasses. |
177 scoped_ptr<WebContents> contents_; | 177 scoped_ptr<WebContents> contents_; |
178 #if defined(OS_WIN) | 178 #if defined(OS_WIN) |
179 scoped_ptr<ui::ScopedOleInitializer> ole_initializer_; | 179 scoped_ptr<ui::ScopedOleInitializer> ole_initializer_; |
180 #endif | 180 #endif |
181 #if defined(USE_AURA) | 181 #if defined(USE_AURA) |
182 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_; | 182 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_; |
183 #endif | 183 #endif |
184 RenderViewHostTestEnabler rvh_test_enabler_; | 184 RenderViewHostTestEnabler rvh_test_enabler_; |
185 | 185 |
186 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 186 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
187 }; | 187 }; |
188 | 188 |
189 } // namespace content | 189 } // namespace content |
190 | 190 |
191 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ | 191 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ |
OLD | NEW |