Index: ash/root_window_controller_unittest.cc |
diff --git a/ash/root_window_controller_unittest.cc b/ash/root_window_controller_unittest.cc |
index 58ccc2e0fc3392ac5436ee3b369fdbfd92b32074..8b9ef8540929b711375d0089c18aeceefb102953 100644 |
--- a/ash/root_window_controller_unittest.cc |
+++ b/ash/root_window_controller_unittest.cc |
@@ -8,7 +8,7 @@ |
#include "ash/display/display_manager.h" |
#include "ash/session/session_state_delegate.h" |
-#include "ash/shelf/shelf_layout_manager.h" |
+#include "ash/shelf/shelf.h" |
#include "ash/shell.h" |
#include "ash/shell_window_ids.h" |
#include "ash/system/tray/system_tray_delegate.h" |
@@ -34,6 +34,7 @@ |
#include "ui/base/ime/text_input_client.h" |
#include "ui/events/test/event_generator.h" |
#include "ui/events/test/test_event_handler.h" |
+#include "ui/keyboard/keyboard_controller.h" |
#include "ui/keyboard/keyboard_switches.h" |
#include "ui/keyboard/keyboard_ui.h" |
#include "ui/keyboard/keyboard_util.h" |
@@ -134,11 +135,8 @@ TEST_F(RootWindowControllerTest, MoveWindows_Basic) { |
// Windows origin should be doubled when moved to the 1st display. |
UpdateDisplay("600x600,300x300"); |
aura::Window::Windows root_windows = Shell::GetAllRootWindows(); |
- RootWindowController* controller = Shell::GetPrimaryRootWindowController(); |
- ShelfLayoutManager* shelf_layout_manager = |
- controller->GetShelfLayoutManager(); |
- shelf_layout_manager->SetAutoHideBehavior( |
- ash::SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS); |
+ Shelf* shelf = Shelf::ForPrimaryDisplay(); |
+ shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS); |
msw
2016/06/01 00:53:23
q: is this even necessary for the test?
James Cook
2016/06/01 15:53:06
Removed and adjusted the expected bounds below. I
|
views::Widget* normal = CreateTestWidget(gfx::Rect(650, 10, 100, 100)); |
EXPECT_EQ(root_windows[1], normal->GetNativeView()->GetRootWindow()); |