OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "ash/wm/lock_state_controller.h" | 5 #include "ash/wm/lock_state_controller.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "ash/common/session/session_state_delegate.h" | 10 #include "ash/session/session_state_delegate.h" |
11 #include "ash/common/shutdown_controller.h" | |
12 #include "ash/common/test/test_session_state_delegate.h" | |
13 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" | |
14 #include "ash/common/wm_shell.h" | |
15 #include "ash/shell.h" | 11 #include "ash/shell.h" |
| 12 #include "ash/shutdown_controller.h" |
16 #include "ash/test/ash_test_base.h" | 13 #include "ash/test/ash_test_base.h" |
17 #include "ash/test/lock_state_controller_test_api.h" | 14 #include "ash/test/lock_state_controller_test_api.h" |
18 #include "ash/test/test_screenshot_delegate.h" | 15 #include "ash/test/test_screenshot_delegate.h" |
19 #include "ash/test/test_session_state_animator.h" | 16 #include "ash/test/test_session_state_animator.h" |
| 17 #include "ash/test/test_session_state_delegate.h" |
20 #include "ash/test/test_shell_delegate.h" | 18 #include "ash/test/test_shell_delegate.h" |
| 19 #include "ash/wm/maximize_mode/maximize_mode_controller.h" |
21 #include "ash/wm/power_button_controller.h" | 20 #include "ash/wm/power_button_controller.h" |
22 #include "ash/wm/session_state_animator.h" | 21 #include "ash/wm/session_state_animator.h" |
| 22 #include "ash/wm_shell.h" |
23 #include "base/memory/ptr_util.h" | 23 #include "base/memory/ptr_util.h" |
24 #include "base/memory/scoped_vector.h" | 24 #include "base/memory/scoped_vector.h" |
25 #include "base/time/time.h" | 25 #include "base/time/time.h" |
26 #include "chromeos/dbus/dbus_thread_manager.h" | 26 #include "chromeos/dbus/dbus_thread_manager.h" |
27 #include "chromeos/dbus/fake_session_manager_client.h" | 27 #include "chromeos/dbus/fake_session_manager_client.h" |
28 #include "ui/display/fake_display_snapshot.h" | 28 #include "ui/display/fake_display_snapshot.h" |
29 #include "ui/display/manager/chromeos/display_configurator.h" | 29 #include "ui/display/manager/chromeos/display_configurator.h" |
30 #include "ui/display/types/display_constants.h" | 30 #include "ui/display/types/display_constants.h" |
31 #include "ui/events/test/event_generator.h" | 31 #include "ui/events/test/event_generator.h" |
32 #include "ui/gfx/geometry/size.h" | 32 #include "ui/gfx/geometry/size.h" |
(...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1074 ASSERT_EQ(0, delegate->handle_take_screenshot_count()); | 1074 ASSERT_EQ(0, delegate->handle_take_screenshot_count()); |
1075 PressVolumeDown(); | 1075 PressVolumeDown(); |
1076 PressPowerButton(); | 1076 PressPowerButton(); |
1077 ReleasePowerButton(); | 1077 ReleasePowerButton(); |
1078 ReleaseVolumeDown(); | 1078 ReleaseVolumeDown(); |
1079 EXPECT_EQ(1, delegate->handle_take_screenshot_count()); | 1079 EXPECT_EQ(1, delegate->handle_take_screenshot_count()); |
1080 } | 1080 } |
1081 | 1081 |
1082 } // namespace test | 1082 } // namespace test |
1083 } // namespace ash | 1083 } // namespace ash |
OLD | NEW |