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

Unified Diff: ash/display/mouse_cursor_event_filter_unittest.cc

Issue 1838833002: Move DisplayLayout and DisplayLayoutBuilder From ash To ui/display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screenwinmove
Patch Set: Fix comment Created 4 years, 8 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/mirror_window_controller.cc ('k') | ash/display/root_window_transformers_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/mouse_cursor_event_filter_unittest.cc
diff --git a/ash/display/mouse_cursor_event_filter_unittest.cc b/ash/display/mouse_cursor_event_filter_unittest.cc
index 0842c6945c28785effa499d4bb2ba2bc1a0aa0ae..401cf1430a86553db72e4a50096e99a0ffba8cfc 100644
--- a/ash/display/mouse_cursor_event_filter_unittest.cc
+++ b/ash/display/mouse_cursor_event_filter_unittest.cc
@@ -11,6 +11,7 @@
#include "ash/test/cursor_manager_test_api.h"
#include "ash/test/display_manager_test_api.h"
#include "ui/aura/env.h"
+#include "ui/display/manager/display_layout.h"
#include "ui/events/test/event_generator.h"
namespace ash {
@@ -42,11 +43,11 @@ TEST_F(MouseCursorEventFilterTest, WarpMouse) {
UpdateDisplay("500x500,500x500");
- ASSERT_EQ(DisplayPlacement::RIGHT, Shell::GetInstance()
- ->display_manager()
- ->GetCurrentDisplayLayout()
- .placement_list[0]
- .position);
+ ASSERT_EQ(display::DisplayPlacement::RIGHT, Shell::GetInstance()
+ ->display_manager()
+ ->GetCurrentDisplayLayout()
+ .placement_list[0]
+ .position);
EXPECT_FALSE(TestIfMouseWarpsAt(gfx::Point(11, 11)));
@@ -82,11 +83,11 @@ TEST_F(MouseCursorEventFilterTest, WarpMouseDifferentSizeDisplays) {
UpdateDisplay("500x500,600x600"); // the second one is larger.
- ASSERT_EQ(DisplayPlacement::RIGHT, Shell::GetInstance()
- ->display_manager()
- ->GetCurrentDisplayLayout()
- .placement_list[0]
- .position);
+ ASSERT_EQ(display::DisplayPlacement::RIGHT, Shell::GetInstance()
+ ->display_manager()
+ ->GetCurrentDisplayLayout()
+ .placement_list[0]
+ .position);
// Touch the left edge of the secondary root window. Pointer should NOT warp
// because 1px left of (0, 500) is outside the primary root window.
@@ -110,11 +111,11 @@ TEST_F(MouseCursorEventFilterTest, WarpMouseDifferentScaleDisplaysInNative) {
UpdateDisplay("500x500,600x600*2");
- ASSERT_EQ(DisplayPlacement::RIGHT, Shell::GetInstance()
- ->display_manager()
- ->GetCurrentDisplayLayout()
- .placement_list[0]
- .position);
+ ASSERT_EQ(display::DisplayPlacement::RIGHT, Shell::GetInstance()
+ ->display_manager()
+ ->GetCurrentDisplayLayout()
+ .placement_list[0]
+ .position);
aura::Env::GetInstance()->set_last_mouse_location(gfx::Point(900, 123));
@@ -159,7 +160,7 @@ TEST_F(MouseCursorEventFilterTest, CursorDeviceScaleFactor) {
UpdateDisplay("400x400,800x800*2");
DisplayManager* display_manager = Shell::GetInstance()->display_manager();
display_manager->SetLayoutForCurrentDisplays(
- test::CreateDisplayLayout(DisplayPlacement::RIGHT, 0));
+ test::CreateDisplayLayout(display::DisplayPlacement::RIGHT, 0));
test::CursorManagerTestApi cursor_test_api(
Shell::GetInstance()->cursor_manager());
« no previous file with comments | « ash/display/mirror_window_controller.cc ('k') | ash/display/root_window_transformers_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698