OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_ | 5 #ifndef UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_ |
6 #define UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_ | 6 #define UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 namespace base { | 25 namespace base { |
26 class MessageLoopForUI; | 26 class MessageLoopForUI; |
27 } | 27 } |
28 | 28 |
29 namespace views { | 29 namespace views { |
30 | 30 |
31 class ViewsTestHelperAura : public ViewsTestHelper { | 31 class ViewsTestHelperAura : public ViewsTestHelper { |
32 public: | 32 public: |
33 ViewsTestHelperAura(base::MessageLoopForUI* message_loop, | 33 ViewsTestHelperAura(base::MessageLoopForUI* message_loop, |
34 ui::ContextFactory* context_factory); | 34 ui::ContextFactory* context_factory, |
| 35 ui::ContextFactoryPrivate* context_factory_private); |
35 ~ViewsTestHelperAura() override; | 36 ~ViewsTestHelperAura() override; |
36 | 37 |
37 void EnableMusWithWindowTreeClient( | 38 void EnableMusWithWindowTreeClient( |
38 aura::WindowTreeClient* window_tree_client); | 39 aura::WindowTreeClient* window_tree_client); |
39 | 40 |
40 // Overridden from ViewsTestHelper: | 41 // Overridden from ViewsTestHelper: |
41 void SetUp() override; | 42 void SetUp() override; |
42 void TearDown() override; | 43 void TearDown() override; |
43 gfx::NativeWindow GetContext() override; | 44 gfx::NativeWindow GetContext() override; |
44 | 45 |
45 private: | 46 private: |
46 ui::ContextFactory* context_factory_; | 47 ui::ContextFactory* context_factory_; |
| 48 ui::ContextFactoryPrivate* context_factory_private_; |
47 std::unique_ptr<aura::test::AuraTestHelper> aura_test_helper_; | 49 std::unique_ptr<aura::test::AuraTestHelper> aura_test_helper_; |
48 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_; | 50 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_; |
49 | 51 |
50 DISALLOW_COPY_AND_ASSIGN(ViewsTestHelperAura); | 52 DISALLOW_COPY_AND_ASSIGN(ViewsTestHelperAura); |
51 }; | 53 }; |
52 | 54 |
53 } // namespace views | 55 } // namespace views |
54 | 56 |
55 #endif // UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_ | 57 #endif // UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_ |
OLD | NEW |