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

Unified Diff: ash/root_window_controller_unittest.cc

Issue 2619943002: Revert "chromeos: Fix shelf appearing at login screen under mash" (Closed)
Patch Set: Created 3 years, 11 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/mus/window_manager.cc ('k') | ash/shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/root_window_controller_unittest.cc
diff --git a/ash/root_window_controller_unittest.cc b/ash/root_window_controller_unittest.cc
index 48aadbd3d6419c4de5b705848184ba2e00089db9..f204b4433b8ed88a56524cb4d7a2382952a733ac 100644
--- a/ash/root_window_controller_unittest.cc
+++ b/ash/root_window_controller_unittest.cc
@@ -8,7 +8,6 @@
#include "ash/aura/wm_window_aura.h"
#include "ash/common/material_design/material_design_controller.h"
-#include "ash/common/session/session_controller.h"
#include "ash/common/session/session_state_delegate.h"
#include "ash/common/system/tray/system_tray_delegate.h"
#include "ash/common/wm/system_modal_container_layout_manager.h"
@@ -18,7 +17,6 @@
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
#include "ash/public/cpp/shell_window_ids.h"
-#include "ash/public/interfaces/session_controller.mojom.h"
#include "ash/shell.h"
#include "ash/test/ash_md_test_base.h"
#include "ash/test/ash_test_base.h"
@@ -977,8 +975,8 @@ TEST_F(VirtualKeyboardRootWindowControllerTest,
// Track the keyboard container window.
aura::WindowTracker tracker;
tracker.Add(keyboard_container);
- // Reinitialize the keyboard.
- Shell::GetInstance()->CreateKeyboard();
+ // Mock a login user profile change to reinitialize the keyboard.
+ Shell::GetInstance()->OnLoginUserProfilePrepared();
// keyboard_container should no longer be present.
EXPECT_FALSE(tracker.Contains(keyboard_container));
}
@@ -1012,9 +1010,7 @@ TEST_F(VirtualKeyboardRootWindowControllerTest, RestoreWorkspaceAfterLogin) {
}
// Mock a login user profile change to reinitialize the keyboard.
- mojom::SessionInfoPtr info = mojom::SessionInfo::New();
- info->state = session_manager::SessionState::ACTIVE;
- WmShell::Get()->session_controller()->SetSessionInfo(std::move(info));
+ Shell::GetInstance()->OnLoginUserProfilePrepared();
EXPECT_EQ(display::Screen::GetScreen()->GetPrimaryDisplay().work_area(),
before);
}
« no previous file with comments | « ash/mus/window_manager.cc ('k') | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698