Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(990)

Side by Side Diff: services/ui/ws/user_activity_monitor_unittest.cc

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/ui/ws/user_activity_monitor.cc ('k') | services/ui/ws/user_display_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « services/ui/ws/user_activity_monitor.cc ('k') | services/ui/ws/user_display_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698