Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/display/unified_mouse_warp_controller.h" | 5 #include "ash/display/unified_mouse_warp_controller.h" |
| 6 | 6 |
| 7 #include "ash/display/display_manager.h" | |
| 8 #include "ash/display/display_util.h" | 7 #include "ash/display/display_util.h" |
| 9 #include "ash/display/mirror_window_controller.h" | 8 #include "ash/display/mirror_window_controller.h" |
| 10 #include "ash/display/mouse_cursor_event_filter.h" | 9 #include "ash/display/mouse_cursor_event_filter.h" |
| 11 #include "ash/host/ash_window_tree_host.h" | 10 #include "ash/host/ash_window_tree_host.h" |
| 12 #include "ash/shell.h" | 11 #include "ash/shell.h" |
| 13 #include "ash/test/ash_test_base.h" | 12 #include "ash/test/ash_test_base.h" |
| 14 #include "ash/test/display_manager_test_api.h" | |
| 15 #include "ui/aura/env.h" | 13 #include "ui/aura/env.h" |
| 16 #include "ui/aura/window_tree_host.h" | 14 #include "ui/aura/window_tree_host.h" |
| 17 #include "ui/display/display.h" | 15 #include "ui/display/display.h" |
| 16 #include "ui/display/manager/display_manager.h" | |
| 18 #include "ui/display/manager/display_manager_utilities.h" | 17 #include "ui/display/manager/display_manager_utilities.h" |
| 19 #include "ui/display/screen.h" | 18 #include "ui/display/screen.h" |
| 19 #include "ui/display/test/display_manager_test_api.h" | |
|
oshima
2016/10/24 19:29:16
ditto
rjkroege
2016/10/25 23:30:26
Done.
| |
| 20 #include "ui/events/test/event_generator.h" | 20 #include "ui/events/test/event_generator.h" |
| 21 #include "ui/wm/core/coordinate_conversion.h" | 21 #include "ui/wm/core/coordinate_conversion.h" |
| 22 | 22 |
| 23 namespace ash { | 23 namespace ash { |
| 24 | 24 |
| 25 class UnifiedMouseWarpControllerTest : public test::AshTestBase { | 25 class UnifiedMouseWarpControllerTest : public test::AshTestBase { |
| 26 public: | 26 public: |
| 27 UnifiedMouseWarpControllerTest() {} | 27 UnifiedMouseWarpControllerTest() {} |
| 28 ~UnifiedMouseWarpControllerTest() override {} | 28 ~UnifiedMouseWarpControllerTest() override {} |
| 29 | 29 |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 254 EXPECT_TRUE(TestIfMouseWarpsAt(gfx::Point(600, 10))); | 254 EXPECT_TRUE(TestIfMouseWarpsAt(gfx::Point(600, 10))); |
| 255 EXPECT_EQ("249,5", // moved to 498 by 2px, divided by 2 (dsf). | 255 EXPECT_EQ("249,5", // moved to 498 by 2px, divided by 2 (dsf). |
| 256 aura::Env::GetInstance()->last_mouse_location().ToString()); | 256 aura::Env::GetInstance()->last_mouse_location().ToString()); |
| 257 { | 257 { |
| 258 SCOPED_TRACE("1x2 NO WARP"); | 258 SCOPED_TRACE("1x2 NO WARP"); |
| 259 NoWarpTestBody(); | 259 NoWarpTestBody(); |
| 260 } | 260 } |
| 261 } | 261 } |
| 262 | 262 |
| 263 } // namespace aura | 263 } // namespace aura |
| OLD | NEW |