Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_TEST_ASH_TEST_HELPER_H_ | 5 #ifndef ASH_TEST_ASH_TEST_HELPER_H_ |
| 6 #define ASH_TEST_ASH_TEST_HELPER_H_ | 6 #define ASH_TEST_ASH_TEST_HELPER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 85 | 85 |
| 86 static TestSessionStateDelegate* GetTestSessionStateDelegate(); | 86 static TestSessionStateDelegate* GetTestSessionStateDelegate(); |
| 87 | 87 |
| 88 TestShellDelegate* test_shell_delegate() { return test_shell_delegate_; } | 88 TestShellDelegate* test_shell_delegate() { return test_shell_delegate_; } |
| 89 void set_test_shell_delegate(TestShellDelegate* test_shell_delegate) { | 89 void set_test_shell_delegate(TestShellDelegate* test_shell_delegate) { |
| 90 test_shell_delegate_ = test_shell_delegate; | 90 test_shell_delegate_ = test_shell_delegate; |
| 91 } | 91 } |
| 92 TestScreenshotDelegate* test_screenshot_delegate() { | 92 TestScreenshotDelegate* test_screenshot_delegate() { |
| 93 return test_screenshot_delegate_; | 93 return test_screenshot_delegate_; |
| 94 } | 94 } |
| 95 AshTestViewsDelegate* views_delegate() { return views_delegate_.get(); } | 95 AshTestViewsDelegate* test_views_delegate() { |
| 96 return test_views_delegate_.get(); | |
| 97 } | |
| 96 | 98 |
| 97 AshTestEnvironment* ash_test_environment() { return ash_test_environment_; } | 99 AshTestEnvironment* ash_test_environment() { return ash_test_environment_; } |
| 98 | 100 |
| 99 // Version of DisplayManagerTestApi::UpdateDisplay() for mash. | 101 // Version of DisplayManagerTestApi::UpdateDisplay() for mash. |
| 100 void UpdateDisplayForMash(const std::string& display_spec); | 102 void UpdateDisplayForMash(const std::string& display_spec); |
| 101 | 103 |
| 102 display::Display GetSecondaryDisplay(); | 104 display::Display GetSecondaryDisplay(); |
| 103 | 105 |
| 104 // Null in classic ash. | 106 // Null in classic ash. |
| 105 mus::WindowManagerApplication* window_manager_app() { | 107 mus::WindowManagerApplication* window_manager_app() { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 141 static Config config_; | 143 static Config config_; |
| 142 | 144 |
| 143 AshTestEnvironment* ash_test_environment_; // Not owned. | 145 AshTestEnvironment* ash_test_environment_; // Not owned. |
| 144 TestShellDelegate* test_shell_delegate_; // Owned by ash::Shell. | 146 TestShellDelegate* test_shell_delegate_; // Owned by ash::Shell. |
| 145 std::unique_ptr<ui::ScopedAnimationDurationScaleMode> zero_duration_mode_; | 147 std::unique_ptr<ui::ScopedAnimationDurationScaleMode> zero_duration_mode_; |
| 146 | 148 |
| 147 // Owned by ash::AcceleratorController. | 149 // Owned by ash::AcceleratorController. |
| 148 TestScreenshotDelegate* test_screenshot_delegate_; | 150 TestScreenshotDelegate* test_screenshot_delegate_; |
| 149 | 151 |
| 150 std::unique_ptr<::wm::WMState> wm_state_; | 152 std::unique_ptr<::wm::WMState> wm_state_; |
| 151 std::unique_ptr<AshTestViewsDelegate> views_delegate_; | 153 std::unique_ptr<AshTestViewsDelegate> test_views_delegate_; |
|
sky
2017/04/12 22:43:57
optional: Personally I wouldn't bother with changi
Peter Kasting
2017/04/12 22:48:00
I asked for these changes, because the callers acc
| |
| 152 | 154 |
| 153 // Check if DBus Thread Manager was initialized here. | 155 // Check if DBus Thread Manager was initialized here. |
| 154 bool dbus_thread_manager_initialized_; | 156 bool dbus_thread_manager_initialized_; |
| 155 // Check if Bluez DBus Manager was initialized here. | 157 // Check if Bluez DBus Manager was initialized here. |
| 156 bool bluez_dbus_manager_initialized_; | 158 bool bluez_dbus_manager_initialized_; |
| 157 | 159 |
| 158 aura::TestWindowTreeClientSetup window_tree_client_setup_; | 160 aura::TestWindowTreeClientSetup window_tree_client_setup_; |
| 159 std::unique_ptr<mus::WindowManagerApplication> window_manager_app_; | 161 std::unique_ptr<mus::WindowManagerApplication> window_manager_app_; |
| 160 std::unique_ptr<aura::WindowTreeClientPrivate> window_tree_client_private_; | 162 std::unique_ptr<aura::WindowTreeClientPrivate> window_tree_client_private_; |
| 161 // Id for the next Display created by CreateRootWindowController(). | 163 // Id for the next Display created by CreateRootWindowController(). |
| 162 int64_t next_display_id_ = 1; | 164 int64_t next_display_id_ = 1; |
| 163 | 165 |
| 164 std::unique_ptr<TestSessionControllerClient> session_controller_client_; | 166 std::unique_ptr<TestSessionControllerClient> session_controller_client_; |
| 165 | 167 |
| 166 DISALLOW_COPY_AND_ASSIGN(AshTestHelper); | 168 DISALLOW_COPY_AND_ASSIGN(AshTestHelper); |
| 167 }; | 169 }; |
| 168 | 170 |
| 169 } // namespace test | 171 } // namespace test |
| 170 } // namespace ash | 172 } // namespace ash |
| 171 | 173 |
| 172 #endif // ASH_TEST_ASH_TEST_HELPER_H_ | 174 #endif // ASH_TEST_ASH_TEST_HELPER_H_ |
| OLD | NEW |