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

Unified Diff: ash/root_window_controller_unittest.cc

Issue 2017413002: ash: Fix variable names and setters in ShelfLayoutManager and tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shellshelf
Patch Set: rebase Created 4 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 | « no previous file | ash/screen_util_unittest.cc » ('j') | ash/screen_util_unittest.cc » ('J')
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 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());
« no previous file with comments | « no previous file | ash/screen_util_unittest.cc » ('j') | ash/screen_util_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698