OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/display/screen_orientation_controller_chromeos.h" | 5 #include "ash/display/screen_orientation_controller_chromeos.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/ash_switches.h" | 10 #include "ash/common/ash_switches.h" |
11 #include "ash/content/shell_content_state.h" | 11 #include "ash/content/shell_content_state.h" |
12 #include "ash/display/display_info.h" | 12 #include "ash/display/display_info.h" |
13 #include "ash/display/display_manager.h" | 13 #include "ash/display/display_manager.h" |
14 #include "ash/shell.h" | 14 #include "ash/shell.h" |
15 #include "ash/test/ash_test_base.h" | 15 #include "ash/test/ash_test_base.h" |
16 #include "ash/test/ash_test_helper.h" | 16 #include "ash/test/ash_test_helper.h" |
17 #include "ash/test/content/test_shell_content_state.h" | 17 #include "ash/test/content/test_shell_content_state.h" |
18 #include "ash/test/display_manager_test_api.h" | 18 #include "ash/test/display_manager_test_api.h" |
19 #include "ash/test/test_shell_delegate.h" | 19 #include "ash/test/test_shell_delegate.h" |
20 #include "ash/test/test_system_tray_delegate.h" | 20 #include "ash/test/test_system_tray_delegate.h" |
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
649 .GetActiveRotation()); | 649 .GetActiveRotation()); |
650 | 650 |
651 Shell::GetInstance()->screen_orientation_controller()->SetDisplayRotation( | 651 Shell::GetInstance()->screen_orientation_controller()->SetDisplayRotation( |
652 kNewRotation, display::Display::ROTATION_SOURCE_ACTIVE); | 652 kNewRotation, display::Display::ROTATION_SOURCE_ACTIVE); |
653 | 653 |
654 EXPECT_EQ(kNewRotation, display_manager->GetDisplayInfo(kInternalDisplayId) | 654 EXPECT_EQ(kNewRotation, display_manager->GetDisplayInfo(kInternalDisplayId) |
655 .GetActiveRotation()); | 655 .GetActiveRotation()); |
656 } | 656 } |
657 | 657 |
658 } // namespace ash | 658 } // namespace ash |
OLD | NEW |