OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/common/session/session_state_delegate.h" | |
6 #include "ash/common/test/test_session_state_delegate.h" | |
7 #include "ash/common/wm/window_state.h" | |
8 #include "ash/common/wm_shell.h" | |
9 #include "ash/public/cpp/shell_window_ids.h" | 5 #include "ash/public/cpp/shell_window_ids.h" |
| 6 #include "ash/session/session_state_delegate.h" |
10 #include "ash/shell.h" | 7 #include "ash/shell.h" |
11 #include "ash/test/ash_test_base.h" | 8 #include "ash/test/ash_test_base.h" |
12 #include "ash/test/ash_test_helper.h" | 9 #include "ash/test/ash_test_helper.h" |
| 10 #include "ash/test/test_session_state_delegate.h" |
13 #include "ash/test/test_shell_delegate.h" | 11 #include "ash/test/test_shell_delegate.h" |
14 #include "ash/wm/lock_state_controller.h" | 12 #include "ash/wm/lock_state_controller.h" |
| 13 #include "ash/wm/window_state.h" |
15 #include "ash/wm/window_state_aura.h" | 14 #include "ash/wm/window_state_aura.h" |
16 #include "ash/wm/window_util.h" | 15 #include "ash/wm/window_util.h" |
| 16 #include "ash/wm_shell.h" |
17 #include "services/ui/public/interfaces/window_manager_constants.mojom.h" | 17 #include "services/ui/public/interfaces/window_manager_constants.mojom.h" |
18 #include "ui/aura/client/aura_constants.h" | 18 #include "ui/aura/client/aura_constants.h" |
19 #include "ui/aura/client/window_parenting_client.h" | 19 #include "ui/aura/client/window_parenting_client.h" |
20 #include "ui/views/test/widget_test.h" | 20 #include "ui/views/test/widget_test.h" |
21 #include "ui/views/view.h" | 21 #include "ui/views/view.h" |
22 #include "ui/views/widget/widget.h" | 22 #include "ui/views/widget/widget.h" |
23 | 23 |
24 namespace ash { | 24 namespace ash { |
25 namespace test { | 25 namespace test { |
26 | 26 |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 EXPECT_FALSE(delegate.view()->HasFocus()); | 203 EXPECT_FALSE(delegate.view()->HasFocus()); |
204 | 204 |
205 UnblockUserSession(); | 205 UnblockUserSession(); |
206 EXPECT_FALSE(WmShell::Get()->GetSessionStateDelegate()->IsScreenLocked()); | 206 EXPECT_FALSE(WmShell::Get()->GetSessionStateDelegate()->IsScreenLocked()); |
207 EXPECT_TRUE(delegate.GetWidget()->IsActive()); | 207 EXPECT_TRUE(delegate.GetWidget()->IsActive()); |
208 EXPECT_TRUE(delegate.view()->HasFocus()); | 208 EXPECT_TRUE(delegate.view()->HasFocus()); |
209 } | 209 } |
210 | 210 |
211 } // namespace test | 211 } // namespace test |
212 } // namespace ash | 212 } // namespace ash |
OLD | NEW |