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

Unified Diff: ash/virtual_keyboard_controller_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/virtual_keyboard_controller.cc ('k') | ash/wm/ash_focus_rules.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/virtual_keyboard_controller_unittest.cc
diff --git a/ash/virtual_keyboard_controller_unittest.cc b/ash/virtual_keyboard_controller_unittest.cc
index facd574eed1abd779cf645347e3db63de37620e6..372354ff565b15ea0aed2d03af8bdc4d940af98b 100644
--- a/ash/virtual_keyboard_controller_unittest.cc
+++ b/ash/virtual_keyboard_controller_unittest.cc
@@ -47,7 +47,7 @@ class VirtualKeyboardControllerTest : public AshTestBase {
// Sets the event blocker on the maximized window controller.
void SetEventBlocker(
std::unique_ptr<ScopedDisableInternalMouseAndKeyboard> blocker) {
- WmShell::Get()->maximize_mode_controller()->event_blocker_ =
+ Shell::Get()->maximize_mode_controller()->event_blocker_ =
std::move(blocker);
}
@@ -66,11 +66,11 @@ class VirtualKeyboardControllerTest : public AshTestBase {
TEST_F(VirtualKeyboardControllerTest, EnabledDuringMaximizeMode) {
ASSERT_FALSE(keyboard::IsKeyboardEnabled());
// Toggle maximized mode on.
- WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
+ Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
true);
EXPECT_TRUE(keyboard::IsKeyboardEnabled());
// Toggle maximized mode off.
- WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
+ Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
false);
EXPECT_FALSE(keyboard::IsKeyboardEnabled());
}
@@ -97,7 +97,7 @@ class MockEventBlocker : public ScopedDisableInternalMouseAndKeyboard {
// cause the Virtual Keyboard Controller to crash. See crbug.com/446204.
TEST_F(VirtualKeyboardControllerTest, RestoreKeyboardDevices) {
// Toggle maximized mode on.
- WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
+ Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
true);
std::unique_ptr<ScopedDisableInternalMouseAndKeyboard> blocker(
new MockEventBlocker);
@@ -246,11 +246,11 @@ TEST_F(VirtualKeyboardControllerAutoTest, EnabledDuringMaximizeMode) {
UpdateKeyboardDevices(keyboard_devices);
ASSERT_FALSE(keyboard::IsKeyboardEnabled());
// Toggle maximized mode on.
- WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
+ Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
true);
ASSERT_TRUE(keyboard::IsKeyboardEnabled());
// Toggle maximized mode off.
- WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
+ Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
false);
ASSERT_FALSE(keyboard::IsKeyboardEnabled());
}
@@ -269,7 +269,7 @@ TEST_F(VirtualKeyboardControllerAutoTest, SuppressedInMaximizedMode) {
2, ui::InputDeviceType::INPUT_DEVICE_EXTERNAL, "Keyboard"));
UpdateKeyboardDevices(keyboard_devices);
// Toggle maximized mode on.
- WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
+ Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
true);
ASSERT_FALSE(keyboard::IsKeyboardEnabled());
ASSERT_TRUE(notified());
@@ -299,7 +299,7 @@ TEST_F(VirtualKeyboardControllerAutoTest, SuppressedInMaximizedMode) {
ASSERT_TRUE(notified());
ASSERT_FALSE(IsVirtualKeyboardSuppressed());
// Toggle maximized mode oFF.
- WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
+ Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
false);
ASSERT_FALSE(keyboard::IsKeyboardEnabled());
}
« no previous file with comments | « ash/virtual_keyboard_controller.cc ('k') | ash/wm/ash_focus_rules.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698