| 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/common/session/session_state_delegate.h" | 
|    11 #include "ash/common/shutdown_controller.h" |    11 #include "ash/common/shutdown_controller.h" | 
|    12 #include "ash/common/test/test_session_state_delegate.h" |    12 #include "ash/common/test/test_session_state_delegate.h" | 
|    13 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" |    13 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" | 
|    14 #include "ash/common/wm_shell.h" |    14 #include "ash/common/wm_shell.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/lock_state_controller_test_api.h" |    17 #include "ash/test/lock_state_controller_test_api.h" | 
|    18 #include "ash/test/test_screenshot_delegate.h" |    18 #include "ash/test/test_screenshot_delegate.h" | 
|    19 #include "ash/test/test_session_state_animator.h" |    19 #include "ash/test/test_session_state_animator.h" | 
|    20 #include "ash/test/test_shell_delegate.h" |    20 #include "ash/test/test_shell_delegate.h" | 
|    21 #include "ash/wm/power_button_controller.h" |    21 #include "ash/wm/power_button_controller.h" | 
|    22 #include "ash/wm/session_state_animator.h" |    22 #include "ash/wm/session_state_animator.h" | 
|    23 #include "base/memory/scoped_vector.h" |    23 #include "base/memory/scoped_vector.h" | 
|    24 #include "base/time/time.h" |    24 #include "base/time/time.h" | 
|    25 #include "chromeos/dbus/dbus_thread_manager.h" |    25 #include "chromeos/dbus/dbus_thread_manager.h" | 
|    26 #include "chromeos/dbus/fake_session_manager_client.h" |    26 #include "chromeos/dbus/fake_session_manager_client.h" | 
|    27 #include "ui/display/chromeos/display_configurator.h" |  | 
|    28 #include "ui/display/fake_display_snapshot.h" |    27 #include "ui/display/fake_display_snapshot.h" | 
 |    28 #include "ui/display/manager/chromeos/display_configurator.h" | 
|    29 #include "ui/display/types/display_constants.h" |    29 #include "ui/display/types/display_constants.h" | 
|    30 #include "ui/events/test/event_generator.h" |    30 #include "ui/events/test/event_generator.h" | 
|    31 #include "ui/gfx/geometry/size.h" |    31 #include "ui/gfx/geometry/size.h" | 
|    32  |    32  | 
|    33 namespace ash { |    33 namespace ash { | 
|    34 namespace test { |    34 namespace test { | 
|    35 namespace { |    35 namespace { | 
|    36  |    36  | 
|    37 bool cursor_visible() { |    37 bool cursor_visible() { | 
|    38   return Shell::GetInstance()->cursor_manager()->IsCursorVisible(); |    38   return Shell::GetInstance()->cursor_manager()->IsCursorVisible(); | 
| (...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1062   ASSERT_EQ(0, delegate->handle_take_screenshot_count()); |  1062   ASSERT_EQ(0, delegate->handle_take_screenshot_count()); | 
|  1063   PressVolumeDown(); |  1063   PressVolumeDown(); | 
|  1064   PressPowerButton(); |  1064   PressPowerButton(); | 
|  1065   ReleasePowerButton(); |  1065   ReleasePowerButton(); | 
|  1066   ReleaseVolumeDown(); |  1066   ReleaseVolumeDown(); | 
|  1067   EXPECT_EQ(1, delegate->handle_take_screenshot_count()); |  1067   EXPECT_EQ(1, delegate->handle_take_screenshot_count()); | 
|  1068 } |  1068 } | 
|  1069  |  1069  | 
|  1070 }  // namespace test |  1070 }  // namespace test | 
|  1071 }  // namespace ash |  1071 }  // namespace ash | 
| OLD | NEW |