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

Side by Side Diff: services/ui/ws/window_finder_unittest.cc

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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
« no previous file with comments | « services/ui/ws/window_finder.cc ('k') | services/ui/ws/window_manager_access_policy.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 "components/mus/ws/window_finder.h" 5 #include "services/ui/ws/window_finder.h"
6 6
7 #include "components/mus/ws/server_window.h" 7 #include "services/ui/ws/server_window.h"
8 #include "components/mus/ws/server_window_surface_manager.h" 8 #include "services/ui/ws/server_window_surface_manager.h"
9 #include "components/mus/ws/server_window_surface_manager_test_api.h" 9 #include "services/ui/ws/server_window_surface_manager_test_api.h"
10 #include "components/mus/ws/test_server_window_delegate.h" 10 #include "services/ui/ws/test_server_window_delegate.h"
11 #include "components/mus/ws/window_finder.h" 11 #include "services/ui/ws/window_finder.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 namespace mus { 14 namespace mus {
15 namespace ws { 15 namespace ws {
16 16
17 TEST(WindowFinderTest, FindDeepestVisibleWindow) { 17 TEST(WindowFinderTest, FindDeepestVisibleWindow) {
18 TestServerWindowDelegate window_delegate; 18 TestServerWindowDelegate window_delegate;
19 ServerWindow root(&window_delegate, WindowId(1, 2)); 19 ServerWindow root(&window_delegate, WindowId(1, 2));
20 window_delegate.set_root_window(&root); 20 window_delegate.set_root_window(&root);
21 root.SetVisible(true); 21 root.SetVisible(true);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 // Test a point inside the window and inside the mask. 71 // Test a point inside the window and inside the mask.
72 gfx::Point point_inside_mask(15, 15); 72 gfx::Point point_inside_mask(15, 15);
73 EXPECT_EQ(&child_with_mask, 73 EXPECT_EQ(&child_with_mask,
74 FindDeepestVisibleWindowForEvents(&root, &point_inside_mask)); 74 FindDeepestVisibleWindowForEvents(&root, &point_inside_mask));
75 EXPECT_EQ(gfx::Point(5, 5), point_inside_mask); 75 EXPECT_EQ(gfx::Point(5, 5), point_inside_mask);
76 } 76 }
77 77
78 } // namespace ws 78 } // namespace ws
79 } // namespace mus 79 } // namespace mus
OLDNEW
« no previous file with comments | « services/ui/ws/window_finder.cc ('k') | services/ui/ws/window_manager_access_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698