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 #include "components/mus/ws/user_activity_monitor.h" | 5 #include "services/ui/ws/user_activity_monitor.h" |
6 | 6 |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "base/test/simple_test_tick_clock.h" | 9 #include "base/test/simple_test_tick_clock.h" |
10 #include "base/test/test_mock_time_task_runner.h" | 10 #include "base/test/test_mock_time_task_runner.h" |
11 #include "components/mus/ws/test_utils.h" | |
12 #include "mojo/public/cpp/bindings/interface_request.h" | 11 #include "mojo/public/cpp/bindings/interface_request.h" |
| 12 #include "services/ui/ws/test_utils.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 using mus::mojom::UserIdleObserver; | 15 using mus::mojom::UserIdleObserver; |
16 | 16 |
17 namespace mus { | 17 namespace mus { |
18 namespace ws { | 18 namespace ws { |
19 namespace test { | 19 namespace test { |
20 | 20 |
21 class TestUserActivityObserver : public mojom::UserActivityObserver { | 21 class TestUserActivityObserver : public mojom::UserActivityObserver { |
22 public: | 22 public: |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 RunUntilIdle(); | 209 RunUntilIdle(); |
210 EXPECT_FALSE(first_observer.GetAndResetIdleState(&idle_state)); | 210 EXPECT_FALSE(first_observer.GetAndResetIdleState(&idle_state)); |
211 EXPECT_FALSE(second_observer.GetAndResetIdleState(&idle_state)); | 211 EXPECT_FALSE(second_observer.GetAndResetIdleState(&idle_state)); |
212 EXPECT_FALSE(third_observer.GetAndResetIdleState(&idle_state)); | 212 EXPECT_FALSE(third_observer.GetAndResetIdleState(&idle_state)); |
213 EXPECT_FALSE(fourth_observer.GetAndResetIdleState(&idle_state)); | 213 EXPECT_FALSE(fourth_observer.GetAndResetIdleState(&idle_state)); |
214 } | 214 } |
215 | 215 |
216 } // namespace test | 216 } // namespace test |
217 } // namespace ws | 217 } // namespace ws |
218 } // namespace mus | 218 } // namespace mus |
OLD | NEW |