| Index: components/mus/ws/test_utils.h
|
| diff --git a/components/mus/ws/test_utils.h b/components/mus/ws/test_utils.h
|
| index 21cce2bfe80f51921f122437bb142ba0fe1bc4ba..ede927722ecff2659c8b5f49fd4c190b134d7d17 100644
|
| --- a/components/mus/ws/test_utils.h
|
| +++ b/components/mus/ws/test_utils.h
|
| @@ -17,6 +17,7 @@
|
| #include "components/mus/ws/platform_display.h"
|
| #include "components/mus/ws/platform_display_factory.h"
|
| #include "components/mus/ws/test_change_tracker.h"
|
| +#include "components/mus/ws/user_activity_monitor.h"
|
| #include "components/mus/ws/user_display_manager.h"
|
| #include "components/mus/ws/user_id.h"
|
| #include "components/mus/ws/window_manager_state.h"
|
| @@ -67,6 +68,23 @@ class UserDisplayManagerTestApi {
|
|
|
| // -----------------------------------------------------------------------------
|
|
|
| +class UserActivityMonitorTestApi {
|
| + public:
|
| + explicit UserActivityMonitorTestApi(UserActivityMonitor* monitor)
|
| + : monitor_(monitor) {}
|
| +
|
| + void SetTimerTaskRunner(
|
| + scoped_refptr<base::SingleThreadTaskRunner> task_runner) {
|
| + monitor_->idle_timer_.SetTaskRunner(task_runner);
|
| + }
|
| +
|
| + private:
|
| + UserActivityMonitor* monitor_;
|
| + DISALLOW_COPY_AND_ASSIGN(UserActivityMonitorTestApi);
|
| +};
|
| +
|
| +// -----------------------------------------------------------------------------
|
| +
|
| class WindowTreeTestApi {
|
| public:
|
| explicit WindowTreeTestApi(WindowTree* tree);
|
|
|