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 "services/ui/ws/user_activity_monitor.h" | 5 #include "services/ui/ws/user_activity_monitor.h" |
6 | 6 |
| 7 #include "base/memory/ptr_util.h" |
7 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
8 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
9 #include "base/test/simple_test_tick_clock.h" | 10 #include "base/test/simple_test_tick_clock.h" |
10 #include "base/test/test_mock_time_task_runner.h" | 11 #include "base/test/test_mock_time_task_runner.h" |
11 #include "mojo/public/cpp/bindings/interface_request.h" | 12 #include "mojo/public/cpp/bindings/interface_request.h" |
12 #include "services/ui/common/task_runner_test_base.h" | 13 #include "services/ui/common/task_runner_test_base.h" |
13 #include "services/ui/ws/test_utils.h" | 14 #include "services/ui/ws/test_utils.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
15 | 16 |
16 using ui::mojom::UserIdleObserver; | 17 using ui::mojom::UserIdleObserver; |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 RunUntilIdle(); | 203 RunUntilIdle(); |
203 EXPECT_FALSE(first_observer.GetAndResetIdleState(&idle_state)); | 204 EXPECT_FALSE(first_observer.GetAndResetIdleState(&idle_state)); |
204 EXPECT_FALSE(second_observer.GetAndResetIdleState(&idle_state)); | 205 EXPECT_FALSE(second_observer.GetAndResetIdleState(&idle_state)); |
205 EXPECT_FALSE(third_observer.GetAndResetIdleState(&idle_state)); | 206 EXPECT_FALSE(third_observer.GetAndResetIdleState(&idle_state)); |
206 EXPECT_FALSE(fourth_observer.GetAndResetIdleState(&idle_state)); | 207 EXPECT_FALSE(fourth_observer.GetAndResetIdleState(&idle_state)); |
207 } | 208 } |
208 | 209 |
209 } // namespace test | 210 } // namespace test |
210 } // namespace ws | 211 } // namespace ws |
211 } // namespace ui | 212 } // namespace ui |
OLD | NEW |