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

Side by Side Diff: ash/display/unified_mouse_warp_controller_unittest.cc

Issue 2445583002: Relocate display_manager from ash to ui (Closed)
Patch Set: fix windows build Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « ash/display/unified_mouse_warp_controller.cc ('k') | ash/display/window_tree_host_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
20 #include "ui/events/test/event_generator.h" 19 #include "ui/events/test/event_generator.h"
21 #include "ui/wm/core/coordinate_conversion.h" 20 #include "ui/wm/core/coordinate_conversion.h"
22 21
23 namespace ash { 22 namespace ash {
24 23
25 class UnifiedMouseWarpControllerTest : public test::AshTestBase { 24 class UnifiedMouseWarpControllerTest : public test::AshTestBase {
26 public: 25 public:
27 UnifiedMouseWarpControllerTest() {} 26 UnifiedMouseWarpControllerTest() {}
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 EXPECT_TRUE(TestIfMouseWarpsAt(gfx::Point(600, 10))); 253 EXPECT_TRUE(TestIfMouseWarpsAt(gfx::Point(600, 10)));
255 EXPECT_EQ("249,5", // moved to 498 by 2px, divided by 2 (dsf). 254 EXPECT_EQ("249,5", // moved to 498 by 2px, divided by 2 (dsf).
256 aura::Env::GetInstance()->last_mouse_location().ToString()); 255 aura::Env::GetInstance()->last_mouse_location().ToString());
257 { 256 {
258 SCOPED_TRACE("1x2 NO WARP"); 257 SCOPED_TRACE("1x2 NO WARP");
259 NoWarpTestBody(); 258 NoWarpTestBody();
260 } 259 }
261 } 260 }
262 261
263 } // namespace aura 262 } // namespace aura
OLDNEW
« no previous file with comments | « ash/display/unified_mouse_warp_controller.cc ('k') | ash/display/window_tree_host_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698