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

Unified Diff: ash/sticky_keys/sticky_keys_overlay_unittest.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
« no previous file with comments | « ash/shell.cc ('k') | ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/sticky_keys/sticky_keys_overlay_unittest.cc
diff --git a/ash/sticky_keys/sticky_keys_overlay_unittest.cc b/ash/sticky_keys/sticky_keys_overlay_unittest.cc
index b2c76de5211a32c4a42190dc1bb49b55642a91f1..714cc57beff49041565cab7e993649ba6b8b1475 100644
--- a/ash/sticky_keys/sticky_keys_overlay_unittest.cc
+++ b/ash/sticky_keys/sticky_keys_overlay_unittest.cc
@@ -4,13 +4,13 @@
#include "ash/sticky_keys/sticky_keys_overlay.h"
-#include "ash/display/display_manager.h"
#include "ash/display/window_tree_host_manager.h"
#include "ash/shell.h"
#include "ash/sticky_keys/sticky_keys_controller.h"
#include "ash/test/ash_test_base.h"
-#include "ash/test/display_manager_test_api.h"
#include "ui/display/manager/display_layout.h"
+#include "ui/display/manager/display_manager.h"
+#include "ui/display/test/display_manager_test_api.h"
#include "ui/events/event.h"
#include "ui/views/widget/widget.h"
@@ -47,13 +47,13 @@ TEST_F(StickyKeysOverlayTest, ModifierKeyState) {
TEST_F(StickyKeysOverlayTest, OverlayNotDestroyedAfterDisplayRemoved) {
// Add a secondary display to the left of the primary one.
UpdateDisplay("1280x1024,1980x1080");
- DisplayManager* display_manager = Shell::GetInstance()->display_manager();
display::DisplayIdList display_ids =
- display_manager->GetCurrentDisplayIdList();
+ display_manager()->GetCurrentDisplayIdList();
int64_t primary_display_id = display_ids[0];
int64_t secondary_display_id = display_ids[1];
- display_manager->SetLayoutForCurrentDisplays(test::CreateDisplayLayout(
- display_manager, display::DisplayPlacement::LEFT, 0));
+ display_manager()->SetLayoutForCurrentDisplays(
+ display::test::CreateDisplayLayout(display_manager(),
+ display::DisplayPlacement::LEFT, 0));
// The overlay should belong to the secondary root window.
StickyKeysOverlay overlay;
« no previous file with comments | « ash/shell.cc ('k') | ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698