Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: chrome/browser/extensions/display_info_provider_chromeos_unittest.cc

Issue 2540313002: Split //ui/display and create //ui/display/manager. (Closed)
Patch Set: Cleanup export header. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/extensions/display_info_provider_chromeos.cc ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/common/wm/maximize_mode/maximize_mode_controller.h" 9 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
10 #include "ash/common/wm_shell.h" 10 #include "ash/common/wm_shell.h"
11 #include "ash/display/screen_orientation_controller_chromeos.h" 11 #include "ash/display/screen_orientation_controller_chromeos.h"
12 #include "ash/shell.h" 12 #include "ash/shell.h"
13 #include "ash/test/ash_test_base.h" 13 #include "ash/test/ash_test_base.h"
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/strings/string_number_conversions.h" 16 #include "base/strings/string_number_conversions.h"
17 #include "base/strings/stringprintf.h" 17 #include "base/strings/stringprintf.h"
18 #include "extensions/common/api/system_display.h" 18 #include "extensions/common/api/system_display.h"
19 #include "ui/display/display.h" 19 #include "ui/display/display.h"
20 #include "ui/display/display_layout.h"
20 #include "ui/display/display_switches.h" 21 #include "ui/display/display_switches.h"
21 #include "ui/display/manager/display_layout.h"
22 #include "ui/display/manager/display_manager.h" 22 #include "ui/display/manager/display_manager.h"
23 #include "ui/display/test/display_manager_test_api.h" 23 #include "ui/display/test/display_manager_test_api.h"
24 #include "ui/display/types/display_constants.h" 24 #include "ui/display/types/display_constants.h"
25 #include "ui/gfx/geometry/rect.h" 25 #include "ui/gfx/geometry/rect.h"
26 26
27 namespace extensions { 27 namespace extensions {
28 namespace { 28 namespace {
29 29
30 using DisplayUnitInfoList = DisplayInfoProvider::DisplayUnitInfoList; 30 using DisplayUnitInfoList = DisplayInfoProvider::DisplayUnitInfoList;
31 using DisplayLayoutList = DisplayInfoProvider::DisplayLayoutList; 31 using DisplayLayoutList = DisplayInfoProvider::DisplayLayoutList;
(...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 CallSetDisplayUnitInfo(base::Int64ToString(id), info, &success, &error); 1191 CallSetDisplayUnitInfo(base::Int64ToString(id), info, &success, &error);
1192 ASSERT_TRUE(success); 1192 ASSERT_TRUE(success);
1193 1193
1194 // Verify that other_mode now matches the active mode. 1194 // Verify that other_mode now matches the active mode.
1195 active_mode = GetDisplayManager()->GetActiveModeForDisplayId(id); 1195 active_mode = GetDisplayManager()->GetActiveModeForDisplayId(id);
1196 EXPECT_TRUE(active_mode->IsEquivalent(other_mode_ash)); 1196 EXPECT_TRUE(active_mode->IsEquivalent(other_mode_ash));
1197 } 1197 }
1198 1198
1199 } // namespace 1199 } // namespace
1200 } // namespace extensions 1200 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/display_info_provider_chromeos.cc ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698