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

Unified Diff: ash/sticky_keys/sticky_keys_overlay_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/shell_unittest.cc ('k') | ash/system/palette/palette_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/sticky_keys/sticky_keys_overlay_unittest.cc
diff --git a/ash/sticky_keys/sticky_keys_overlay_unittest.cc b/ash/sticky_keys/sticky_keys_overlay_unittest.cc
index 576db82fb8045a1375fab10a4a1c370915d0069f..dcf60cb7adbdcbccd625bc2fc7a724f439592a2b 100644
--- a/ash/sticky_keys/sticky_keys_overlay_unittest.cc
+++ b/ash/sticky_keys/sticky_keys_overlay_unittest.cc
@@ -68,17 +68,13 @@ TEST_F(StickyKeysOverlayTest, OverlayNotDestroyedAfterDisplayRemoved) {
// The overlay should belong to the secondary root window.
StickyKeysOverlay overlay;
views::Widget* overlay_widget = overlay.GetWidgetForTesting();
- EXPECT_EQ(ShellPort::Get()
- ->GetRootWindowForDisplayId(secondary_display_id)
- ->aura_window(),
+ EXPECT_EQ(ShellPort::Get()->GetRootWindowForDisplayId(secondary_display_id),
overlay_widget->GetNativeWindow()->GetRootWindow());
// Removing the second display should move the overlay to the primary root
// window.
UpdateDisplay("1280x1024");
- EXPECT_EQ(ShellPort::Get()
- ->GetRootWindowForDisplayId(primary_display_id)
- ->aura_window(),
+ EXPECT_EQ(ShellPort::Get()->GetRootWindowForDisplayId(primary_display_id),
overlay_widget->GetNativeWindow()->GetRootWindow());
overlay.SetModifierKeyState(ui::EF_SHIFT_DOWN, STICKY_KEY_STATE_ENABLED);
« no previous file with comments | « ash/shell_unittest.cc ('k') | ash/system/palette/palette_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698