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

Unified Diff: ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc

Issue 2115663002: Folds methods in WmShellCommon to WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 6 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/wm/ash_focus_rules.cc ('k') | ash/wm/mru_window_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc
diff --git a/ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc b/ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc
index 20247328cdf84c5e5f5ce89575ffc1fabba9af28..118ce9e0b9ffad832af78b9b649f2e5a836eb022 100644
--- a/ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc
+++ b/ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc
@@ -771,7 +771,7 @@ TEST_F(MaximizeModeWindowManagerTest, ModeChangeKeepsMRUOrder) {
// The windows should be in the reverse order of creation in the MRU list.
{
aura::Window::Windows windows = WmWindowAura::ToAuraWindows(
- ash::Shell::GetInstance()->mru_window_tracker()->BuildMruWindowList());
+ WmShell::Get()->mru_window_tracker()->BuildMruWindowList());
EXPECT_EQ(w1.get(), windows[4]);
EXPECT_EQ(w2.get(), windows[3]);
@@ -786,7 +786,7 @@ TEST_F(MaximizeModeWindowManagerTest, ModeChangeKeepsMRUOrder) {
EXPECT_EQ(5, manager->GetNumberOfManagedWindows());
{
aura::Window::Windows windows = WmWindowAura::ToAuraWindows(
- ash::Shell::GetInstance()->mru_window_tracker()->BuildMruWindowList());
+ WmShell::Get()->mru_window_tracker()->BuildMruWindowList());
// We do not test maximization here again since that was done already.
EXPECT_EQ(w1.get(), windows[4]);
EXPECT_EQ(w2.get(), windows[3]);
@@ -799,7 +799,7 @@ TEST_F(MaximizeModeWindowManagerTest, ModeChangeKeepsMRUOrder) {
DestroyMaximizeModeWindowManager();
{
aura::Window::Windows windows = WmWindowAura::ToAuraWindows(
- ash::Shell::GetInstance()->mru_window_tracker()->BuildMruWindowList());
+ WmShell::Get()->mru_window_tracker()->BuildMruWindowList());
// We do not test maximization here again since that was done already.
EXPECT_EQ(w1.get(), windows[4]);
EXPECT_EQ(w2.get(), windows[3]);
« no previous file with comments | « ash/wm/ash_focus_rules.cc ('k') | ash/wm/mru_window_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698