| 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/session/session_state_delegate.h" | 5 #include "ash/session/session_state_delegate.h" |
| 6 #include "ash/shell.h" | 6 #include "ash/shell.h" |
| 7 #include "ash/shell_window_ids.h" | 7 #include "ash/shell_window_ids.h" |
| 8 #include "ash/test/ash_test_base.h" | 8 #include "ash/test/ash_test_base.h" |
| 9 #include "ash/test/ash_test_helper.h" | 9 #include "ash/test/ash_test_helper.h" |
| 10 #include "ash/test/test_session_state_delegate.h" | 10 #include "ash/test/test_session_state_delegate.h" |
| 11 #include "ash/test/test_shell_delegate.h" | 11 #include "ash/test/test_shell_delegate.h" |
| 12 #include "ash/wm/common/window_state.h" |
| 12 #include "ash/wm/lock_state_controller.h" | 13 #include "ash/wm/lock_state_controller.h" |
| 13 #include "ash/wm/window_state.h" | |
| 14 #include "ash/wm/window_state_aura.h" | 14 #include "ash/wm/window_state_aura.h" |
| 15 #include "ash/wm/window_util.h" | 15 #include "ash/wm/window_util.h" |
| 16 #include "ui/aura/client/aura_constants.h" | 16 #include "ui/aura/client/aura_constants.h" |
| 17 #include "ui/aura/client/window_tree_client.h" | 17 #include "ui/aura/client/window_tree_client.h" |
| 18 #include "ui/views/test/widget_test.h" | 18 #include "ui/views/test/widget_test.h" |
| 19 #include "ui/views/view.h" | 19 #include "ui/views/view.h" |
| 20 #include "ui/views/widget/widget.h" | 20 #include "ui/views/widget/widget.h" |
| 21 | 21 |
| 22 namespace ash { | 22 namespace ash { |
| 23 namespace test { | 23 namespace test { |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 EXPECT_FALSE(delegate.view()->HasFocus()); | 201 EXPECT_FALSE(delegate.view()->HasFocus()); |
| 202 | 202 |
| 203 UnblockUserSession(); | 203 UnblockUserSession(); |
| 204 EXPECT_FALSE(shell()->session_state_delegate()->IsScreenLocked()); | 204 EXPECT_FALSE(shell()->session_state_delegate()->IsScreenLocked()); |
| 205 EXPECT_TRUE(delegate.GetWidget()->IsActive()); | 205 EXPECT_TRUE(delegate.GetWidget()->IsActive()); |
| 206 EXPECT_TRUE(delegate.view()->HasFocus()); | 206 EXPECT_TRUE(delegate.view()->HasFocus()); |
| 207 } | 207 } |
| 208 | 208 |
| 209 } // namespace test | 209 } // namespace test |
| 210 } // namespace ash | 210 } // namespace ash |
| OLD | NEW |