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 "extensions/browser/api/system_display/display_info_provider.h" | 5 #include "extensions/browser/api/system_display/display_info_provider.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "ash/ash_switches.h" | 9 #include "ash/common/ash_switches.h" |
10 #include "ash/display/display_manager.h" | 10 #include "ash/display/display_manager.h" |
11 #include "ash/display/screen_orientation_controller_chromeos.h" | 11 #include "ash/display/screen_orientation_controller_chromeos.h" |
12 #include "ash/screen_util.h" | 12 #include "ash/screen_util.h" |
13 #include "ash/shell.h" | 13 #include "ash/shell.h" |
14 #include "ash/test/ash_test_base.h" | 14 #include "ash/test/ash_test_base.h" |
15 #include "ash/test/display_manager_test_api.h" | 15 #include "ash/test/display_manager_test_api.h" |
16 #include "ash/wm/maximize_mode/maximize_mode_controller.h" | 16 #include "ash/wm/maximize_mode/maximize_mode_controller.h" |
17 #include "base/command_line.h" | 17 #include "base/command_line.h" |
18 #include "base/macros.h" | 18 #include "base/macros.h" |
19 #include "base/strings/string_number_conversions.h" | 19 #include "base/strings/string_number_conversions.h" |
(...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1126 CallSetDisplayUnitInfo(base::Int64ToString(id), info, &success, &error); | 1126 CallSetDisplayUnitInfo(base::Int64ToString(id), info, &success, &error); |
1127 ASSERT_TRUE(success); | 1127 ASSERT_TRUE(success); |
1128 | 1128 |
1129 // Verify that other_mode now matches the active mode. | 1129 // Verify that other_mode now matches the active mode. |
1130 active_mode = GetDisplayManager()->GetActiveModeForDisplayId(id); | 1130 active_mode = GetDisplayManager()->GetActiveModeForDisplayId(id); |
1131 EXPECT_TRUE(active_mode.IsEquivalent(other_mode_ash)); | 1131 EXPECT_TRUE(active_mode.IsEquivalent(other_mode_ash)); |
1132 } | 1132 } |
1133 | 1133 |
1134 } // namespace | 1134 } // namespace |
1135 } // namespace extensions | 1135 } // namespace extensions |
OLD | NEW |