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/window_manager_state.h" | 5 #include "components/mus/ws/window_manager_state.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/test/test_simple_task_runner.h" | 10 #include "base/test/test_simple_task_runner.h" |
11 #include "base/thread_task_runner_handle.h" | 11 #include "base/thread_task_runner_handle.h" |
12 #include "components/mus/public/cpp/event_matcher.h" | 12 #include "components/mus/public/cpp/event_matcher.h" |
13 #include "components/mus/surfaces/surfaces_state.h" | 13 #include "components/mus/surfaces/surfaces_state.h" |
14 #include "components/mus/ws/accelerator.h" | 14 #include "components/mus/ws/accelerator.h" |
15 #include "components/mus/ws/display_binding.h" | 15 #include "components/mus/ws/display_binding.h" |
16 #include "components/mus/ws/platform_display.h" | 16 #include "components/mus/ws/platform_display.h" |
17 #include "components/mus/ws/platform_display_init_params.h" | 17 #include "components/mus/ws/platform_display_init_params.h" |
18 #include "components/mus/ws/server_window_surface_manager_test_api.h" | 18 #include "components/mus/ws/server_window_surface_manager_test_api.h" |
19 #include "components/mus/ws/test_change_tracker.h" | 19 #include "components/mus/ws/test_change_tracker.h" |
20 #include "components/mus/ws/test_server_window_delegate.h" | 20 #include "components/mus/ws/test_server_window_delegate.h" |
21 #include "components/mus/ws/test_utils.h" | 21 #include "components/mus/ws/test_utils.h" |
22 #include "components/mus/ws/window_manager_access_policy.h" | 22 #include "components/mus/ws/window_manager_access_policy.h" |
23 #include "components/mus/ws/window_manager_state.h" | 23 #include "components/mus/ws/window_manager_state.h" |
24 #include "components/mus/ws/window_server.h" | 24 #include "components/mus/ws/window_server.h" |
25 #include "components/mus/ws/window_tree.h" | 25 #include "components/mus/ws/window_tree.h" |
26 #include "mojo/shell/public/interfaces/connector.mojom.h" | 26 #include "services/shell/public/interfaces/connector.mojom.h" |
27 #include "testing/gtest/include/gtest/gtest.h" | 27 #include "testing/gtest/include/gtest/gtest.h" |
28 #include "ui/events/event.h" | 28 #include "ui/events/event.h" |
29 | 29 |
30 namespace mus { | 30 namespace mus { |
31 namespace ws { | 31 namespace ws { |
32 namespace test { | 32 namespace test { |
33 | 33 |
34 class WindowManagerStateTest : public testing::Test { | 34 class WindowManagerStateTest : public testing::Test { |
35 public: | 35 public: |
36 WindowManagerStateTest(); | 36 WindowManagerStateTest(); |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 ChangesToDescription1(*tracker->changes())[0]); | 348 ChangesToDescription1(*tracker->changes())[0]); |
349 | 349 |
350 OnEventAckTimeout(); | 350 OnEventAckTimeout(); |
351 EXPECT_TRUE(window_manager()->on_accelerator_called()); | 351 EXPECT_TRUE(window_manager()->on_accelerator_called()); |
352 EXPECT_EQ(accelerator->id(), window_manager()->on_accelerator_id()); | 352 EXPECT_EQ(accelerator->id(), window_manager()->on_accelerator_id()); |
353 } | 353 } |
354 | 354 |
355 } // namespace test | 355 } // namespace test |
356 } // namespace ws | 356 } // namespace ws |
357 } // namespace mus | 357 } // namespace mus |
OLD | NEW |