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_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 #include "content/browser/renderer_host/mock_render_process_host.h" | 13 #include "content/browser/renderer_host/mock_render_process_host.h" |
14 #include "content/browser/renderer_host/render_view_host.h" | 14 #include "content/browser/renderer_host/render_view_host.h" |
15 #include "content/browser/renderer_host/render_view_host_factory.h" | 15 #include "content/browser/renderer_host/render_view_host_factory.h" |
16 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 16 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
17 #include "content/public/common/page_transition_types.h" | 17 #include "content/public/common/page_transition_types.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
20 #if defined(USE_AURA) | 20 #if defined(USE_AURA) |
21 namespace aura { | 21 namespace aura { |
| 22 class RootWindow; |
22 namespace test { | 23 namespace test { |
23 class TestStackingClient; | 24 class TestStackingClient; |
24 } | 25 } |
25 } | 26 } |
26 #endif | 27 #endif |
27 | 28 |
28 namespace content { | 29 namespace content { |
29 class BrowserContext; | 30 class BrowserContext; |
30 class NavigationController; | 31 class NavigationController; |
31 class RenderProcessHostFactory; | 32 class RenderProcessHostFactory; |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 scoped_ptr<content::BrowserContext> browser_context_; | 368 scoped_ptr<content::BrowserContext> browser_context_; |
368 | 369 |
369 MessageLoopForUI message_loop_; | 370 MessageLoopForUI message_loop_; |
370 | 371 |
371 MockRenderProcessHostFactory rph_factory_; | 372 MockRenderProcessHostFactory rph_factory_; |
372 TestRenderViewHostFactory rvh_factory_; | 373 TestRenderViewHostFactory rvh_factory_; |
373 | 374 |
374 private: | 375 private: |
375 scoped_ptr<TestTabContents> contents_; | 376 scoped_ptr<TestTabContents> contents_; |
376 #if defined(USE_AURA) | 377 #if defined(USE_AURA) |
| 378 scoped_ptr<aura::RootWindow> root_window_; |
377 scoped_ptr<aura::test::TestStackingClient> test_stacking_client_; | 379 scoped_ptr<aura::test::TestStackingClient> test_stacking_client_; |
378 #endif | 380 #endif |
379 | 381 |
380 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 382 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
381 }; | 383 }; |
382 | 384 |
383 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 385 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |