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

Unified Diff: ash/wm/panels/panel_layout_manager_unittest.cc

Issue 2445583002: Relocate display_manager from ash to ui (Closed)
Patch Set: fix windows build Created 4 years, 2 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/wm/overview/window_selector_unittest.cc ('k') | ash/wm/system_gesture_event_filter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/panels/panel_layout_manager_unittest.cc
diff --git a/ash/wm/panels/panel_layout_manager_unittest.cc b/ash/wm/panels/panel_layout_manager_unittest.cc
index bc7cda0be12de5f9c418f2bb2a06cbd59f132898..148e1872e42d59f7a02a761135cc888867bafecd 100644
--- a/ash/wm/panels/panel_layout_manager_unittest.cc
+++ b/ash/wm/panels/panel_layout_manager_unittest.cc
@@ -18,13 +18,11 @@
#include "ash/common/wm_root_window_controller.h"
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window_property.h"
-#include "ash/display/display_manager.h"
#include "ash/public/cpp/shelf_types.h"
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/screen_util.h"
#include "ash/shell.h"
#include "ash/test/ash_test_base.h"
-#include "ash/test/display_manager_test_api.h"
#include "ash/test/shelf_view_test_api.h"
#include "ash/wm/window_state_aura.h"
#include "ash/wm/window_util.h"
@@ -37,7 +35,9 @@
#include "ui/aura/test/test_windows.h"
#include "ui/aura/window.h"
#include "ui/aura/window_event_dispatcher.h"
+#include "ui/display/manager/display_manager.h"
#include "ui/display/manager/managed_display_info.h"
+#include "ui/display/test/display_manager_test_api.h"
#include "ui/events/event_utils.h"
#include "ui/events/test/event_generator.h"
#include "ui/views/widget/widget.h"
@@ -57,10 +57,6 @@ display::ManagedDisplayInfo CreateDisplayInfo(int64_t id,
return info;
}
-DisplayManager* display_manager() {
- return Shell::GetInstance()->display_manager();
-}
-
} // namespace
using aura::test::WindowIsAbove;
@@ -311,7 +307,8 @@ TEST_F(PanelLayoutManagerTest, UndockTest) {
std::vector<display::ManagedDisplayInfo> info_list;
const int64_t internal_display_id =
- test::DisplayManagerTestApi(Shell::GetInstance()->display_manager())
+ display::test::DisplayManagerTestApi(
+ Shell::GetInstance()->display_manager())
.SetFirstDisplayAsInternalDisplay();
// Create the primary display info.
@@ -342,7 +339,8 @@ TEST_F(PanelLayoutManagerTest, DockUndockTest) {
std::vector<display::ManagedDisplayInfo> info_list;
const int64_t internal_display_id =
- test::DisplayManagerTestApi(Shell::GetInstance()->display_manager())
+ display::test::DisplayManagerTestApi(
+ Shell::GetInstance()->display_manager())
.SetFirstDisplayAsInternalDisplay();
// Create the primary display info.
« no previous file with comments | « ash/wm/overview/window_selector_unittest.cc ('k') | ash/wm/system_gesture_event_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698