| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ASH_MUS_TEST_WM_TEST_HELPER_H_ | 5 #ifndef ASH_MUS_TEST_WM_TEST_HELPER_H_ |
| 6 #define ASH_MUS_TEST_WM_TEST_HELPER_H_ | 6 #define ASH_MUS_TEST_WM_TEST_HELPER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/mus/window_manager_application.h" | 10 #include "ash/mus/window_manager_application.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 void Init(); | 38 void Init(); |
| 39 | 39 |
| 40 WindowManagerApplication* window_manager_app() { | 40 WindowManagerApplication* window_manager_app() { |
| 41 return &window_manager_app_; | 41 return &window_manager_app_; |
| 42 } | 42 } |
| 43 | 43 |
| 44 WmTestScreen* screen() { return screen_; } | 44 WmTestScreen* screen() { return screen_; } |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 std::unique_ptr<base::MessageLoop> message_loop_; | 47 std::unique_ptr<base::MessageLoop> message_loop_; |
| 48 ::ui::TestWindowTreeClientSetup window_tree_client_setup_; | 48 ui::TestWindowTreeClientSetup window_tree_client_setup_; |
| 49 WindowManagerApplication window_manager_app_; | 49 WindowManagerApplication window_manager_app_; |
| 50 WmTestScreen* screen_ = nullptr; // Owned by |window_manager_app_|. | 50 WmTestScreen* screen_ = nullptr; // Owned by |window_manager_app_|. |
| 51 | 51 |
| 52 DISALLOW_COPY_AND_ASSIGN(WmTestHelper); | 52 DISALLOW_COPY_AND_ASSIGN(WmTestHelper); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace mus | 55 } // namespace mus |
| 56 } // namespace ash | 56 } // namespace ash |
| 57 | 57 |
| 58 #endif // ASH_MUS_TEST_WM_TEST_HELPER_H_ | 58 #endif // ASH_MUS_TEST_WM_TEST_HELPER_H_ |
| OLD | NEW |