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

Unified Diff: ash/system/overview/overview_button_tray_unittest.cc

Issue 2766543002: Move even more from WmShell to Shell (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc ('k') | ash/virtual_keyboard_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/overview/overview_button_tray_unittest.cc
diff --git a/ash/system/overview/overview_button_tray_unittest.cc b/ash/system/overview/overview_button_tray_unittest.cc
index fccc26079a3c4ca607fdb7a1b055957f9423f271..0fb27633c0b1f4c606a4356d1805b766c5f02ef0 100644
--- a/ash/system/overview/overview_button_tray_unittest.cc
+++ b/ash/system/overview/overview_button_tray_unittest.cc
@@ -13,6 +13,7 @@
#include "ash/public/cpp/shelf_types.h"
#include "ash/root_window_controller.h"
#include "ash/rotator/screen_rotation_animator.h"
+#include "ash/shell.h"
#include "ash/test/ash_test_base.h"
#include "ash/test/ash_test_helper.h"
#include "ash/test/status_area_widget_test_helper.h"
@@ -86,11 +87,11 @@ TEST_F(OverviewButtonTrayTest, BasicConstruction) {
// By default the system should not have MaximizeMode enabled.
TEST_F(OverviewButtonTrayTest, MaximizeModeObserverOnMaximizeModeToggled) {
ASSERT_FALSE(GetTray()->visible());
- WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
+ Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
true);
EXPECT_TRUE(GetTray()->visible());
- WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
+ Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
false);
EXPECT_FALSE(GetTray()->visible());
}
@@ -147,29 +148,29 @@ TEST_F(OverviewButtonTrayTest, DisplaysOnBothDisplays) {
UpdateDisplay("400x400,200x200");
EXPECT_FALSE(GetTray()->visible());
EXPECT_FALSE(GetSecondaryTray()->visible());
- WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
+ Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
true);
EXPECT_TRUE(GetTray()->visible());
EXPECT_TRUE(GetSecondaryTray()->visible());
- WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
+ Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
false);
}
// Tests if Maximize Mode is enabled before a secondary display is attached
// that the second OverviewButtonTray should be created in a visible state.
TEST_F(OverviewButtonTrayTest, SecondaryTrayCreatedVisible) {
- WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
+ Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
true);
UpdateDisplay("400x400,200x200");
EXPECT_TRUE(GetSecondaryTray()->visible());
- WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
+ Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
false);
}
// Tests that the tray loses visibility when a user logs out, and that it
// regains visibility when a user logs back in.
TEST_F(OverviewButtonTrayTest, VisibilityChangesForLoginStatus) {
- WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
+ Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
true);
SetUserLoggedIn(false);
WmShell::Get()->UpdateAfterLoginStatusChange(LoginStatus::NOT_LOGGED_IN);
@@ -184,7 +185,7 @@ TEST_F(OverviewButtonTrayTest, VisibilityChangesForLoginStatus) {
SetUserAddingScreenRunning(false);
NotifySessionStateChanged();
EXPECT_TRUE(GetTray()->visible());
- WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
+ Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
false);
}
@@ -215,7 +216,7 @@ TEST_F(OverviewButtonTrayTest, HideAnimationAlwaysCompletes) {
if (WmShell::Get()->IsRunningInMash())
return;
- WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
+ Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
true);
// Long duration for hide animation, to allow it to be interrupted.
@@ -251,10 +252,10 @@ TEST_F(OverviewButtonTrayTest, VisibilityChangesForSystemModalWindow) {
ParentWindowInPrimaryRootWindow(window.get());
ASSERT_TRUE(WmShell::Get()->IsSystemModalWindowOpen());
- WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
+ Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
true);
EXPECT_TRUE(GetTray()->visible());
- WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
+ Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
false);
EXPECT_FALSE(GetTray()->visible());
}
« no previous file with comments | « ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc ('k') | ash/virtual_keyboard_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698