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

Unified Diff: ash/drag_drop/drag_drop_tracker_unittest.cc

Issue 2886253002: mash: remove more shell/shelf WmWindow usage. (Closed)
Patch Set: Fix WmShelf::ForWindow. Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/aura/shell_port_classic.cc ('k') | ash/first_run/first_run_helper_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/drag_drop/drag_drop_tracker_unittest.cc
diff --git a/ash/drag_drop/drag_drop_tracker_unittest.cc b/ash/drag_drop/drag_drop_tracker_unittest.cc
index 1090b5aa57c75ef825fd36bfd8492574767dc99a..b8c37965a6e67c0024648f05f0b54acbddcb7c54 100644
--- a/ash/drag_drop/drag_drop_tracker_unittest.cc
+++ b/ash/drag_drop/drag_drop_tracker_unittest.cc
@@ -66,8 +66,7 @@ TEST_F(DragDropTrackerTest, GetTarget) {
EXPECT_EQ("300,100 100x100", window1->GetBoundsInScreen().ToString());
// RootWindow0 is active so the capture window is parented to it.
- EXPECT_EQ(WmWindow::Get(root_windows[0]),
- Shell::GetWmRootWindowForNewWindows());
+ EXPECT_EQ(root_windows[0], Shell::GetRootWindowForNewWindows());
// Start tracking from the RootWindow1 and check the point on RootWindow0 that
// |window0| covers.
@@ -88,8 +87,7 @@ TEST_F(DragDropTrackerTest, GetTarget) {
EXPECT_NE(window1.get(), GetTarget(gfx::Point(50, 250)));
// Make RootWindow1 active so that capture window is parented to it.
- ScopedRootWindowForNewWindows root_for_new_windows(
- WmWindow::Get(root_windows[1]));
+ ScopedRootWindowForNewWindows root_for_new_windows(root_windows[1]);
// Start tracking from the RootWindow1 and check the point on RootWindow0 that
// |window0| covers.
@@ -124,8 +122,7 @@ TEST_F(DragDropTrackerTest, ConvertEvent) {
window1->Show();
// RootWindow0 is active so the capture window is parented to it.
- EXPECT_EQ(WmWindow::Get(root_windows[0]),
- Shell::GetWmRootWindowForNewWindows());
+ EXPECT_EQ(root_windows[0], Shell::GetRootWindowForNewWindows());
// Start tracking from the RootWindow0 and converts the mouse event into
// |window0|'s coodinates.
@@ -152,8 +149,7 @@ TEST_F(DragDropTrackerTest, ConvertEvent) {
EXPECT_EQ(original01.flags(), converted01->flags());
// Make RootWindow1 active so that capture window is parented to it.
- ScopedRootWindowForNewWindows root_for_new_windows(
- WmWindow::Get(root_windows[1]));
+ ScopedRootWindowForNewWindows root_for_new_windows(root_windows[1]);
// Start tracking from the RootWindow1 and converts the mouse event into
// |window0|'s coodinates.
« no previous file with comments | « ash/aura/shell_port_classic.cc ('k') | ash/first_run/first_run_helper_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698