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

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

Issue 2730413002: Moves FindDisplayIndexContainingPoint into display (Closed)
Patch Set: comment Created 3 years, 9 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 unified diff | Download patch
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_util.h" 7 #include "ash/display/display_util.h"
8 #include "ash/display/mirror_window_controller.h" 8 #include "ash/display/mirror_window_controller.h"
9 #include "ash/display/mouse_cursor_event_filter.h" 9 #include "ash/display/mouse_cursor_event_filter.h"
10 #include "ash/host/ash_window_tree_host.h" 10 #include "ash/host/ash_window_tree_host.h"
11 #include "ash/shell.h" 11 #include "ash/shell.h"
12 #include "ash/test/ash_test_base.h" 12 #include "ash/test/ash_test_base.h"
13 #include "ui/aura/env.h" 13 #include "ui/aura/env.h"
14 #include "ui/aura/window_tree_host.h" 14 #include "ui/aura/window_tree_host.h"
15 #include "ui/display/display.h" 15 #include "ui/display/display.h"
16 #include "ui/display/display_finder.h"
16 #include "ui/display/manager/display_manager.h" 17 #include "ui/display/manager/display_manager.h"
17 #include "ui/display/manager/display_manager_utilities.h"
18 #include "ui/display/screen.h" 18 #include "ui/display/screen.h"
19 #include "ui/events/test/event_generator.h" 19 #include "ui/events/test/event_generator.h"
20 #include "ui/wm/core/coordinate_conversion.h" 20 #include "ui/wm/core/coordinate_conversion.h"
21 21
22 namespace ash { 22 namespace ash {
23 23
24 class UnifiedMouseWarpControllerTest : public test::AshTestBase { 24 class UnifiedMouseWarpControllerTest : public test::AshTestBase {
25 public: 25 public:
26 UnifiedMouseWarpControllerTest() {} 26 UnifiedMouseWarpControllerTest() {}
27 ~UnifiedMouseWarpControllerTest() override {} 27 ~UnifiedMouseWarpControllerTest() override {}
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 EXPECT_TRUE(TestIfMouseWarpsAt(gfx::Point(600, 10))); 247 EXPECT_TRUE(TestIfMouseWarpsAt(gfx::Point(600, 10)));
248 EXPECT_EQ("249,5", // moved to 498 by 2px, divided by 2 (dsf). 248 EXPECT_EQ("249,5", // moved to 498 by 2px, divided by 2 (dsf).
249 aura::Env::GetInstance()->last_mouse_location().ToString()); 249 aura::Env::GetInstance()->last_mouse_location().ToString());
250 { 250 {
251 SCOPED_TRACE("1x2 NO WARP"); 251 SCOPED_TRACE("1x2 NO WARP");
252 NoWarpTestBody(); 252 NoWarpTestBody();
253 } 253 }
254 } 254 }
255 255
256 } // namespace aura 256 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698