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

Unified Diff: ash/display/extended_mouse_warp_controller_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/display/extended_mouse_warp_controller.cc ('k') | ash/display/mirror_window_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/extended_mouse_warp_controller_unittest.cc
diff --git a/ash/display/extended_mouse_warp_controller_unittest.cc b/ash/display/extended_mouse_warp_controller_unittest.cc
index 85f71cc6635302b6a81cea771160a1e878c2be1b..6f07e505aa8d445e53a9ae1b87510c9335e1e875 100644
--- a/ash/display/extended_mouse_warp_controller_unittest.cc
+++ b/ash/display/extended_mouse_warp_controller_unittest.cc
@@ -4,15 +4,15 @@
#include "ash/display/extended_mouse_warp_controller.h"
-#include "ash/display/display_manager.h"
#include "ash/display/mouse_cursor_event_filter.h"
#include "ash/shell.h"
#include "ash/test/ash_test_base.h"
-#include "ash/test/display_manager_test_api.h"
#include "ui/display/display.h"
#include "ui/display/manager/display_layout.h"
#include "ui/display/manager/display_layout_builder.h"
+#include "ui/display/manager/display_manager.h"
#include "ui/display/screen.h"
+#include "ui/display/test/display_manager_test_api.h"
#include "ui/events/test/event_generator.h"
namespace ash {
@@ -62,8 +62,9 @@ TEST_F(ExtendedMouseWarpControllerTest, IndicatorBoundsTestOnRight) {
->GetDisplayNearestWindow(root_windows[1])
.id();
- std::unique_ptr<display::DisplayLayout> layout(test::CreateDisplayLayout(
- display_manager(), display::DisplayPlacement::RIGHT, 0));
+ std::unique_ptr<display::DisplayLayout> layout(
+ display::test::CreateDisplayLayout(display_manager(),
+ display::DisplayPlacement::RIGHT, 0));
display_manager()->SetLayoutForCurrentDisplays(layout->Copy());
event_filter()->ShowSharedEdgeIndicator(root_windows[0] /* primary */);
@@ -135,8 +136,9 @@ TEST_F(ExtendedMouseWarpControllerTest, IndicatorBoundsTestOnLeft) {
->GetDisplayNearestWindow(root_windows[1])
.id();
- std::unique_ptr<display::DisplayLayout> layout(test::CreateDisplayLayout(
- display_manager(), display::DisplayPlacement::LEFT, 0));
+ std::unique_ptr<display::DisplayLayout> layout(
+ display::test::CreateDisplayLayout(display_manager(),
+ display::DisplayPlacement::LEFT, 0));
display_manager()->SetLayoutForCurrentDisplays(layout->Copy());
event_filter()->ShowSharedEdgeIndicator(root_windows[0] /* primary */);
@@ -177,8 +179,9 @@ TEST_F(ExtendedMouseWarpControllerTest, IndicatorBoundsTestOnTopBottom) {
->GetDisplayNearestWindow(root_windows[1])
.id();
- std::unique_ptr<display::DisplayLayout> layout(test::CreateDisplayLayout(
- display_manager(), display::DisplayPlacement::TOP, 0));
+ std::unique_ptr<display::DisplayLayout> layout(
+ display::test::CreateDisplayLayout(display_manager(),
+ display::DisplayPlacement::TOP, 0));
display_manager()->SetLayoutForCurrentDisplays(layout->Copy());
event_filter()->ShowSharedEdgeIndicator(root_windows[0] /* primary */);
ASSERT_EQ(1U, GetWarpRegionsCount());
« no previous file with comments | « ash/display/extended_mouse_warp_controller.cc ('k') | ash/display/mirror_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698