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

Unified Diff: ash/wm/ash_focus_rules_unittest.cc

Issue 2761373002: Move yet more from WmShell to Shell (Closed)
Patch Set: merge 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/test/shell_test_api.cc ('k') | ash/wm/event_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/ash_focus_rules_unittest.cc
diff --git a/ash/wm/ash_focus_rules_unittest.cc b/ash/wm/ash_focus_rules_unittest.cc
index 8e847febeddf802a6cafeb104aeb6b96fcd11683..0909d33b8b18e0afa6f635e5f646a94c022d9ae3 100644
--- a/ash/wm/ash_focus_rules_unittest.cc
+++ b/ash/wm/ash_focus_rules_unittest.cc
@@ -94,7 +94,7 @@ class LockScreenAshFocusRulesTest : public AshTestBase {
AshTestBase::SetUp();
ash_test_helper()->set_test_session_controller_client(
base::MakeUnique<LockScreenSessionControllerClient>(
- WmShell::Get()->session_controller()));
+ Shell::Get()->session_controller()));
}
void TearDown() override { AshTestBase::TearDown(); }
@@ -163,7 +163,7 @@ TEST_F(LockScreenAshFocusRulesTest, RegainFocusAfterUnlock) {
BlockUserSession(BLOCKED_BY_LOCK_SCREEN);
- EXPECT_TRUE(WmShell::Get()->session_controller()->IsScreenLocked());
+ EXPECT_TRUE(Shell::Get()->session_controller()->IsScreenLocked());
EXPECT_FALSE(normal_window->HasFocus());
EXPECT_FALSE(always_on_top_window->HasFocus());
EXPECT_FALSE(normal_window_state->IsMinimized());
@@ -173,7 +173,7 @@ TEST_F(LockScreenAshFocusRulesTest, RegainFocusAfterUnlock) {
UnblockUserSession();
- EXPECT_FALSE(WmShell::Get()->session_controller()->IsScreenLocked());
+ EXPECT_FALSE(Shell::Get()->session_controller()->IsScreenLocked());
EXPECT_FALSE(normal_window_state->IsMinimized());
EXPECT_FALSE(always_on_top_window_state->IsMinimized());
EXPECT_TRUE(normal_window_state->CanActivate());
@@ -186,7 +186,7 @@ TEST_F(LockScreenAshFocusRulesTest, RegainFocusAfterUnlock) {
// view doesn't get focused if the widget shows behind the lock screen.
TEST_F(LockScreenAshFocusRulesTest, PreventFocusChangeWithLockScreenPresent) {
BlockUserSession(BLOCKED_BY_LOCK_SCREEN);
- EXPECT_TRUE(WmShell::Get()->session_controller()->IsScreenLocked());
+ EXPECT_TRUE(Shell::Get()->session_controller()->IsScreenLocked());
views::test::TestInitialFocusWidgetDelegate delegate(CurrentContext());
EXPECT_FALSE(delegate.view()->HasFocus());
@@ -195,7 +195,7 @@ TEST_F(LockScreenAshFocusRulesTest, PreventFocusChangeWithLockScreenPresent) {
EXPECT_FALSE(delegate.view()->HasFocus());
UnblockUserSession();
- EXPECT_FALSE(WmShell::Get()->session_controller()->IsScreenLocked());
+ EXPECT_FALSE(Shell::Get()->session_controller()->IsScreenLocked());
EXPECT_TRUE(delegate.GetWidget()->IsActive());
EXPECT_TRUE(delegate.view()->HasFocus());
}
« no previous file with comments | « ash/test/shell_test_api.cc ('k') | ash/wm/event_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698