| 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 2659df7a856a6a70323b1d08695dc32904aedc17..bb2c76521f54c191ce858a3aa3e35b0f9171f8ce 100644
|
| --- a/ash/display/mouse_cursor_event_filter_unittest.cc
|
| +++ b/ash/display/mouse_cursor_event_filter_unittest.cc
|
| @@ -134,12 +134,10 @@ TEST_F(MouseCursorEventFilterTest, WarpMouseDifferentSizeDisplays) {
|
| aura::Env::GetInstance()->last_mouse_location().ToString());
|
| }
|
|
|
| +#if defined(USE_OZONE)
|
| // Verifies if the mouse pointer correctly moves between displays with
|
| // different scale factors.
|
| TEST_F(MouseCursorEventFilterTest, WarpMouseDifferentScaleDisplays) {
|
| - if (MouseCursorEventFilter::IsMouseWarpInNativeCoordsEnabled())
|
| - return;
|
| -
|
| if (!SupportsMultipleDisplays())
|
| return;
|
|
|
| @@ -181,14 +179,13 @@ TEST_F(MouseCursorEventFilterTest, WarpMouseDifferentScaleDisplays) {
|
| EXPECT_EQ("246,123",
|
| aura::Env::GetInstance()->last_mouse_location().ToString());
|
| }
|
| +#endif
|
|
|
| +#if !defined(USE_OZONE)
|
| // Verifies if the mouse pointer correctly moves between displays with
|
| // different scale factors. In native coords mode, there is no
|
| // difference between drag and move.
|
| TEST_F(MouseCursorEventFilterTest, WarpMouseDifferentScaleDisplaysInNative) {
|
| - if (!MouseCursorEventFilter::IsMouseWarpInNativeCoordsEnabled())
|
| - return;
|
| -
|
| if (!SupportsMultipleDisplays())
|
| return;
|
|
|
| @@ -217,11 +214,10 @@ TEST_F(MouseCursorEventFilterTest, WarpMouseDifferentScaleDisplaysInNative) {
|
| EXPECT_EQ("498,123",
|
| aura::Env::GetInstance()->last_mouse_location().ToString());
|
| }
|
| +#endif
|
|
|
| +#if defined(USE_OZONE)
|
| TEST_F(MouseCursorEventFilterTest, DoNotWarpTwice) {
|
| - if (MouseCursorEventFilter::IsMouseWarpInNativeCoordsEnabled())
|
| - return;
|
| -
|
| if (!SupportsMultipleDisplays())
|
| return;
|
|
|
| @@ -248,6 +244,7 @@ TEST_F(MouseCursorEventFilterTest, DoNotWarpTwice) {
|
| EXPECT_EQ("498,11", // by 2px.
|
| aura::Env::GetInstance()->last_mouse_location().ToString());
|
| }
|
| +#endif
|
|
|
| // Verifies if MouseCursorEventFilter::set_mouse_warp_mode() works as expected.
|
| TEST_F(MouseCursorEventFilterTest, SetMouseWarpModeFlag) {
|
|
|