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

Unified Diff: ash/wm/ash_native_cursor_manager_interactive_uitest.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/utility/screenshot_controller_unittest.cc ('k') | ash/wm/ash_native_cursor_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/ash_native_cursor_manager_interactive_uitest.cc
diff --git a/ash/wm/ash_native_cursor_manager_interactive_uitest.cc b/ash/wm/ash_native_cursor_manager_interactive_uitest.cc
index cfdf03d1f89a41c632528941d3a98806fa5f1eac..8abfaa4de96aaa7a2895484611598b41f4d801c9 100644
--- a/ash/wm/ash_native_cursor_manager_interactive_uitest.cc
+++ b/ash/wm/ash_native_cursor_manager_interactive_uitest.cc
@@ -3,7 +3,6 @@
// found in the LICENSE file.
#include "ash/wm/ash_native_cursor_manager.h"
-#include "ash/display/display_manager.h"
#include "ash/shell.h"
#include "ash/test/ash_interactive_ui_test_base.h"
#include "ash/test/cursor_manager_test_api.h"
@@ -11,6 +10,7 @@
#include "ui/aura/window.h"
#include "ui/aura/window_tree_host.h"
#include "ui/base/test/ui_controls.h"
+#include "ui/display/manager/display_manager.h"
#include "ui/display/manager/managed_display_info.h"
#if defined(USE_X11)
@@ -59,7 +59,6 @@ TEST_F(AshNativeCursorManagerTest, MAYBE_CursorChangeOnEnterNotify) {
::wm::CursorManager* cursor_manager = Shell::GetInstance()->cursor_manager();
test::CursorManagerTestApi test_api(cursor_manager);
- DisplayManager* display_manager = Shell::GetInstance()->display_manager();
display::ManagedDisplayInfo display_info1 =
CreateDisplayInfo(10, gfx::Rect(0, 0, 500, 300), 1.0f);
display::ManagedDisplayInfo display_info2 =
@@ -67,7 +66,7 @@ TEST_F(AshNativeCursorManagerTest, MAYBE_CursorChangeOnEnterNotify) {
std::vector<display::ManagedDisplayInfo> display_info_list;
display_info_list.push_back(display_info1);
display_info_list.push_back(display_info2);
- display_manager->OnNativeDisplaysChanged(display_info_list);
+ display_manager()->OnNativeDisplaysChanged(display_info_list);
MoveMouseSync(Shell::GetAllRootWindows()[0], 10, 10);
EXPECT_EQ(1.0f, test_api.GetCurrentCursor().device_scale_factor());
« no previous file with comments | « ash/utility/screenshot_controller_unittest.cc ('k') | ash/wm/ash_native_cursor_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698