| 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 <memory> | 10 #include <memory> |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 // RenderViewHostTester and RenderFrameHostTester respectively. | 172 // RenderViewHostTester and RenderFrameHostTester respectively. |
| 173 class RenderViewHostTestEnabler { | 173 class RenderViewHostTestEnabler { |
| 174 public: | 174 public: |
| 175 RenderViewHostTestEnabler(); | 175 RenderViewHostTestEnabler(); |
| 176 ~RenderViewHostTestEnabler(); | 176 ~RenderViewHostTestEnabler(); |
| 177 | 177 |
| 178 private: | 178 private: |
| 179 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestEnabler); | 179 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestEnabler); |
| 180 friend class RenderViewHostTestHarness; | 180 friend class RenderViewHostTestHarness; |
| 181 | 181 |
| 182 #if defined(OS_ANDROID) |
| 183 std::unique_ptr<MockGpuChannelEstablishFactory> gpu_channel_factory_; |
| 184 std::unique_ptr<display::Screen> screen_; |
| 185 #endif |
| 182 std::unique_ptr<MockRenderProcessHostFactory> rph_factory_; | 186 std::unique_ptr<MockRenderProcessHostFactory> rph_factory_; |
| 183 std::unique_ptr<TestRenderViewHostFactory> rvh_factory_; | 187 std::unique_ptr<TestRenderViewHostFactory> rvh_factory_; |
| 184 std::unique_ptr<TestRenderFrameHostFactory> rfh_factory_; | 188 std::unique_ptr<TestRenderFrameHostFactory> rfh_factory_; |
| 185 }; | 189 }; |
| 186 | 190 |
| 187 // RenderViewHostTestHarness --------------------------------------------------- | 191 // RenderViewHostTestHarness --------------------------------------------------- |
| 188 class RenderViewHostTestHarness : public testing::Test { | 192 class RenderViewHostTestHarness : public testing::Test { |
| 189 public: | 193 public: |
| 190 RenderViewHostTestHarness(); | 194 RenderViewHostTestHarness(); |
| 191 ~RenderViewHostTestHarness() override; | 195 ~RenderViewHostTestHarness() override; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 | 277 |
| 274 std::unique_ptr<BrowserContext> browser_context_; | 278 std::unique_ptr<BrowserContext> browser_context_; |
| 275 | 279 |
| 276 std::unique_ptr<WebContents> contents_; | 280 std::unique_ptr<WebContents> contents_; |
| 277 #if defined(OS_WIN) | 281 #if defined(OS_WIN) |
| 278 std::unique_ptr<ui::ScopedOleInitializer> ole_initializer_; | 282 std::unique_ptr<ui::ScopedOleInitializer> ole_initializer_; |
| 279 #endif | 283 #endif |
| 280 #if defined(USE_AURA) | 284 #if defined(USE_AURA) |
| 281 std::unique_ptr<aura::test::AuraTestHelper> aura_test_helper_; | 285 std::unique_ptr<aura::test::AuraTestHelper> aura_test_helper_; |
| 282 #endif | 286 #endif |
| 283 #if defined(OS_ANDROID) | 287 std::unique_ptr<RenderViewHostTestEnabler> rvh_test_enabler_; |
| 284 std::unique_ptr<MockGpuChannelEstablishFactory> gpu_channel_factory_; | 288 RenderProcessHostFactory* factory_ = nullptr; |
| 285 std::unique_ptr<display::Screen> screen_; | |
| 286 #endif | |
| 287 RenderViewHostTestEnabler rvh_test_enabler_; | |
| 288 | 289 |
| 289 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 290 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
| 290 }; | 291 }; |
| 291 | 292 |
| 292 } // namespace content | 293 } // namespace content |
| 293 | 294 |
| 294 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ | 295 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ |
| OLD | NEW |