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

Unified Diff: ash/root_window_controller_unittest.cc

Issue 2871813002: Converts remaining usage of WmLayoutManager to aura::LayoutManager (Closed)
Patch Set: cleanup Created 3 years, 7 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/root_window_controller.cc ('k') | ash/shelf/shelf_layout_manager.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 4693707605b56e7ae3cdce27e80fe74c1410caee..242c6d001d8fa06983506e81e873590027b49bf1 100644
--- a/ash/root_window_controller_unittest.cc
+++ b/ash/root_window_controller_unittest.cc
@@ -18,7 +18,6 @@
#include "ash/wm/window_state.h"
#include "ash/wm/window_state_aura.h"
#include "ash/wm/window_util.h"
-#include "ash/wm_window.h"
#include "base/command_line.h"
#include "ui/aura/client/focus_change_observer.h"
#include "ui/aura/client/focus_client.h"
@@ -95,8 +94,9 @@ class DeleteOnBlurDelegate : public aura::test::TestWindowDelegate,
DISALLOW_COPY_AND_ASSIGN(DeleteOnBlurDelegate);
};
-WmLayoutManager* GetLayoutManager(RootWindowController* controller, int id) {
- return WmWindow::Get(controller->GetContainer(id))->GetLayoutManager();
+aura::LayoutManager* GetLayoutManager(RootWindowController* controller,
+ int id) {
+ return controller->GetContainer(id)->layout_manager();
}
} // namespace
@@ -394,7 +394,7 @@ TEST_F(RootWindowControllerTest, ModalContainer) {
CreateModalWidget(gfx::Rect(300, 10, 100, 100));
EXPECT_EQ(GetLayoutManager(controller, kShellWindowId_SystemModalContainer),
controller->GetSystemModalLayoutManager(
- WmWindow::Get(session_modal_widget->GetNativeWindow())));
+ session_modal_widget->GetNativeWindow()));
Shell::Get()->session_controller()->LockScreenAndFlushForTest();
EXPECT_TRUE(Shell::Get()->session_controller()->IsScreenLocked());
@@ -409,10 +409,10 @@ TEST_F(RootWindowControllerTest, ModalContainer) {
EXPECT_EQ(
GetLayoutManager(controller, kShellWindowId_LockSystemModalContainer),
controller->GetSystemModalLayoutManager(
- WmWindow::Get(lock_modal_widget->GetNativeWindow())));
+ lock_modal_widget->GetNativeWindow()));
EXPECT_EQ(GetLayoutManager(controller, kShellWindowId_SystemModalContainer),
controller->GetSystemModalLayoutManager(
- WmWindow::Get(session_modal_widget->GetNativeWindow())));
+ session_modal_widget->GetNativeWindow()));
GetSessionControllerClient()->UnlockScreen();
}
@@ -439,7 +439,7 @@ TEST_F(RootWindowControllerTest, ModalContainerNotLoggedInLoggedIn) {
EXPECT_EQ(
GetLayoutManager(controller, kShellWindowId_LockSystemModalContainer),
controller->GetSystemModalLayoutManager(
- WmWindow::Get(login_modal_widget->GetNativeWindow())));
+ login_modal_widget->GetNativeWindow()));
login_modal_widget->Close();
// Configure user session environment.
@@ -454,7 +454,7 @@ TEST_F(RootWindowControllerTest, ModalContainerNotLoggedInLoggedIn) {
CreateModalWidget(gfx::Rect(300, 10, 100, 100));
EXPECT_EQ(GetLayoutManager(controller, kShellWindowId_SystemModalContainer),
controller->GetSystemModalLayoutManager(
- WmWindow::Get(session_modal_widget->GetNativeWindow())));
+ session_modal_widget->GetNativeWindow()));
}
TEST_F(RootWindowControllerTest, ModalContainerBlockedSession) {
@@ -469,7 +469,7 @@ TEST_F(RootWindowControllerTest, ModalContainerBlockedSession) {
CreateModalWidget(gfx::Rect(300, 10, 100, 100));
EXPECT_EQ(GetLayoutManager(controller, kShellWindowId_SystemModalContainer),
controller->GetSystemModalLayoutManager(
- WmWindow::Get(session_modal_widget->GetNativeWindow())));
+ session_modal_widget->GetNativeWindow()));
EXPECT_EQ(GetLayoutManager(controller, kShellWindowId_SystemModalContainer),
controller->GetSystemModalLayoutManager(NULL));
session_modal_widget->Close();
@@ -485,12 +485,12 @@ TEST_F(RootWindowControllerTest, ModalContainerBlockedSession) {
EXPECT_EQ(
GetLayoutManager(controller, kShellWindowId_LockSystemModalContainer),
controller->GetSystemModalLayoutManager(
- WmWindow::Get(lock_modal_widget->GetNativeWindow())));
+ lock_modal_widget->GetNativeWindow()));
session_modal_widget = CreateModalWidget(gfx::Rect(300, 10, 100, 100));
EXPECT_EQ(GetLayoutManager(controller, kShellWindowId_SystemModalContainer),
controller->GetSystemModalLayoutManager(
- WmWindow::Get(session_modal_widget->GetNativeWindow())));
+ session_modal_widget->GetNativeWindow()));
session_modal_widget->Close();
lock_modal_widget->Close();
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/shelf/shelf_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698