OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/wm/core/accelerator_filter.h" | 5 #include "ui/wm/core/accelerator_filter.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "ash/accelerators/accelerator_delegate.h" | 9 #include "ash/accelerators/accelerator_delegate.h" |
10 #include "ash/common/accelerators/accelerator_controller.h" | 10 #include "ash/common/accelerators/accelerator_controller.h" |
11 #include "ash/common/shell_window_ids.h" | |
12 #include "ash/common/test/test_session_state_delegate.h" | 11 #include "ash/common/test/test_session_state_delegate.h" |
13 #include "ash/common/wm/window_state.h" | 12 #include "ash/common/wm/window_state.h" |
14 #include "ash/common/wm_shell.h" | 13 #include "ash/common/wm_shell.h" |
| 14 #include "ash/public/cpp/shell_window_ids.h" |
15 #include "ash/shell.h" | 15 #include "ash/shell.h" |
16 #include "ash/test/ash_test_base.h" | 16 #include "ash/test/ash_test_base.h" |
17 #include "ash/test/ash_test_helper.h" | 17 #include "ash/test/ash_test_helper.h" |
18 #include "ash/test/test_screenshot_delegate.h" | 18 #include "ash/test/test_screenshot_delegate.h" |
19 #include "ash/wm/window_state_aura.h" | 19 #include "ash/wm/window_state_aura.h" |
20 #include "ash/wm/window_util.h" | 20 #include "ash/wm/window_util.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 #include "ui/aura/client/aura_constants.h" | 22 #include "ui/aura/client/aura_constants.h" |
23 #include "ui/aura/test/aura_test_base.h" | 23 #include "ui/aura/test/aura_test_base.h" |
24 #include "ui/aura/test/test_windows.h" | 24 #include "ui/aura/test/test_windows.h" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 generator.PressKey(ui::VKEY_L, ui::EF_COMMAND_DOWN); | 168 generator.PressKey(ui::VKEY_L, ui::EF_COMMAND_DOWN); |
169 generator.ReleaseKey(ui::VKEY_L, ui::EF_COMMAND_DOWN); | 169 generator.ReleaseKey(ui::VKEY_L, ui::EF_COMMAND_DOWN); |
170 EXPECT_TRUE(session_state_delegate->IsScreenLocked()); | 170 EXPECT_TRUE(session_state_delegate->IsScreenLocked()); |
171 UnblockUserSession(); | 171 UnblockUserSession(); |
172 EXPECT_FALSE(session_state_delegate->IsScreenLocked()); | 172 EXPECT_FALSE(session_state_delegate->IsScreenLocked()); |
173 } | 173 } |
174 #endif // defined(OS_CHROMEOS) | 174 #endif // defined(OS_CHROMEOS) |
175 | 175 |
176 } // namespace test | 176 } // namespace test |
177 } // namespace ash | 177 } // namespace ash |
OLD | NEW |