| 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_TEST_LOCK_STATE_CONTROLLER_TEST_API_H_ | 5 #ifndef ASH_TEST_LOCK_STATE_CONTROLLER_TEST_API_H_ |
| 6 #define ASH_TEST_LOCK_STATE_CONTROLLER_TEST_API_H_ | 6 #define ASH_TEST_LOCK_STATE_CONTROLLER_TEST_API_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/wm/lock_state_controller.h" | 10 #include "ash/wm/lock_state_controller.h" |
| 11 #include "base/timer/elapsed_timer.h" | 11 #include "base/timer/elapsed_timer.h" |
| 12 #include "base/timer/timer.h" | 12 #include "base/timer/timer.h" |
| 13 | 13 |
| 14 namespace ash { | 14 namespace ash { |
| 15 | 15 |
| 16 namespace mojom { | |
| 17 class ShutdownClient; | |
| 18 } | |
| 19 | |
| 20 namespace test { | 16 namespace test { |
| 21 | 17 |
| 22 // Helper class used by tests to access internal state. | 18 // Helper class used by tests to access internal state. |
| 23 class LockStateControllerTestApi { | 19 class LockStateControllerTestApi { |
| 24 public: | 20 public: |
| 25 explicit LockStateControllerTestApi(LockStateController* controller); | 21 explicit LockStateControllerTestApi(LockStateController* controller); |
| 26 ~LockStateControllerTestApi(); | 22 ~LockStateControllerTestApi(); |
| 27 | 23 |
| 28 void set_shutdown_controller(ShutdownController* shutdown_controller) { | 24 void set_shutdown_controller(ShutdownController* shutdown_controller) { |
| 29 controller_->shutdown_controller_ = shutdown_controller; | 25 controller_->shutdown_controller_ = shutdown_controller; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 private: | 62 private: |
| 67 LockStateController* controller_; // not owned | 63 LockStateController* controller_; // not owned |
| 68 | 64 |
| 69 DISALLOW_COPY_AND_ASSIGN(LockStateControllerTestApi); | 65 DISALLOW_COPY_AND_ASSIGN(LockStateControllerTestApi); |
| 70 }; | 66 }; |
| 71 | 67 |
| 72 } // namespace test | 68 } // namespace test |
| 73 } // namespace ash | 69 } // namespace ash |
| 74 | 70 |
| 75 #endif // ASH_TEST_LOCK_STATE_CONTROLLER_TEST_API_H_ | 71 #endif // ASH_TEST_LOCK_STATE_CONTROLLER_TEST_API_H_ |
| OLD | NEW |