| 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" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "ui/views/test/views_test_helper.h" | 12 #include "ui/views/test/views_test_helper.h" |
| 13 | 13 |
| 14 namespace aura { | 14 namespace aura { |
| 15 namespace client { | 15 namespace client { |
| 16 class ScreenPositionClient; | 16 class ScreenPositionClient; |
| 17 } | 17 } |
| 18 namespace test { | 18 namespace test { |
| 19 class AuraTestHelper; | 19 class AuraTestHelper; |
| 20 } | 20 } |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace base { | 23 namespace base { |
| 24 class MessageLoopForUI; | 24 class MessageLoopForUI; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace wm { | |
| 28 class WMState; | |
| 29 } | |
| 30 | |
| 31 namespace views { | 27 namespace views { |
| 32 | 28 |
| 33 class ViewsTestHelperAura : public ViewsTestHelper { | 29 class ViewsTestHelperAura : public ViewsTestHelper { |
| 34 public: | 30 public: |
| 35 ViewsTestHelperAura(base::MessageLoopForUI* message_loop, | 31 ViewsTestHelperAura(base::MessageLoopForUI* message_loop, |
| 36 ui::ContextFactory* context_factory); | 32 ui::ContextFactory* context_factory); |
| 37 ~ViewsTestHelperAura() override; | 33 ~ViewsTestHelperAura() override; |
| 38 | 34 |
| 39 // Overridden from ViewsTestHelper: | 35 // Overridden from ViewsTestHelper: |
| 40 void SetUp() override; | 36 void SetUp() override; |
| 41 void TearDown() override; | 37 void TearDown() override; |
| 42 gfx::NativeWindow GetContext() override; | 38 gfx::NativeWindow GetContext() override; |
| 43 | 39 |
| 44 private: | 40 private: |
| 45 ui::ContextFactory* context_factory_; | 41 ui::ContextFactory* context_factory_; |
| 46 std::unique_ptr<aura::test::AuraTestHelper> aura_test_helper_; | 42 std::unique_ptr<aura::test::AuraTestHelper> aura_test_helper_; |
| 47 std::unique_ptr<wm::WMState> wm_state_; | |
| 48 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_; | 43 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_; |
| 49 | 44 |
| 50 DISALLOW_COPY_AND_ASSIGN(ViewsTestHelperAura); | 45 DISALLOW_COPY_AND_ASSIGN(ViewsTestHelperAura); |
| 51 }; | 46 }; |
| 52 | 47 |
| 53 } // namespace views | 48 } // namespace views |
| 54 | 49 |
| 55 #endif // UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_ | 50 #endif // UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_ |
| OLD | NEW |