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

Unified Diff: chrome/browser/chromeos/policy/display_rotation_default_handler_browsertest.cc

Issue 2445583002: Relocate display_manager from ash to ui (Closed)
Patch Set: fix windows build Created 4 years, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/policy/display_rotation_default_handler_browsertest.cc
diff --git a/chrome/browser/chromeos/policy/display_rotation_default_handler_browsertest.cc b/chrome/browser/chromeos/policy/display_rotation_default_handler_browsertest.cc
index c7a08cc281a6431fe321741d0c09889e8cd4aad7..219272db747131c95ca3aeaa2502f53f8453bca0 100644
--- a/chrome/browser/chromeos/policy/display_rotation_default_handler_browsertest.cc
+++ b/chrome/browser/chromeos/policy/display_rotation_default_handler_browsertest.cc
@@ -8,7 +8,6 @@
#include <memory>
-#include "ash/display/display_manager.h"
#include "ash/shell.h"
#include "base/bind.h"
#include "base/command_line.h"
@@ -35,17 +34,18 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/display/display.h"
#include "ui/display/manager/display_layout.h"
+#include "ui/display/manager/display_manager.h"
namespace em = enterprise_management;
namespace {
-ash::DisplayManager* GetDisplayManager() {
+display::DisplayManager* GetDisplayManager() {
return ash::Shell::GetInstance()->display_manager();
}
display::Display::Rotation GetRotationOfFirstDisplay() {
- const ash::DisplayManager* const display_manager = GetDisplayManager();
+ const display::DisplayManager* const display_manager = GetDisplayManager();
const int64_t first_display_id = display_manager->first_display_id();
const display::Display& first_display =
display_manager->GetDisplayForId(first_display_id);
@@ -54,7 +54,7 @@ display::Display::Rotation GetRotationOfFirstDisplay() {
// Fails the test and returns ROTATE_0 if there is no second display.
display::Display::Rotation GetRotationOfSecondDisplay() {
- const ash::DisplayManager* const display_manager = GetDisplayManager();
+ const display::DisplayManager* const display_manager = GetDisplayManager();
if (display_manager->GetNumDisplays() < 2) {
ADD_FAILURE()
<< "Requested rotation of second display while there was only one.";
@@ -304,7 +304,7 @@ IN_PROC_BROWSER_TEST_P(DisplayRotationBootTest, PRE_Reboot) {
run_loop.Run();
// Check the display's rotation.
- ash::DisplayManager* const display_manager = GetDisplayManager();
+ display::DisplayManager* const display_manager = GetDisplayManager();
const int64_t first_display_id = display_manager->first_display_id();
const display::Display& first_display =
display_manager->GetDisplayForId(first_display_id);

Powered by Google App Engine
This is Rietveld 408576698