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

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

Issue 2355063002: Separate ash::test::DisplayManagerTestApi from ash (Closed)
Patch Set: review comment 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 8bd84d0936a30a9442081d6c5b4dd8e3d8a4163d..d7f2b4e931080805ca976fd9a60d62573916a642 100644
--- a/ash/wm/panels/panel_layout_manager_unittest.cc
+++ b/ash/wm/panels/panel_layout_manager_unittest.cc
@@ -313,7 +313,8 @@ TEST_F(PanelLayoutManagerTest, UndockTest) {
std::vector<display::ManagedDisplayInfo> info_list;
const int64_t internal_display_id =
- test::DisplayManagerTestApi().SetFirstDisplayAsInternalDisplay();
+ test::DisplayManagerTestApi(Shell::GetInstance()->display_manager())
+ .SetFirstDisplayAsInternalDisplay();
// Create the primary display info.
display::ManagedDisplayInfo internal_display =
@@ -343,7 +344,8 @@ TEST_F(PanelLayoutManagerTest, DockUndockTest) {
std::vector<display::ManagedDisplayInfo> info_list;
const int64_t internal_display_id =
- test::DisplayManagerTestApi().SetFirstDisplayAsInternalDisplay();
+ test::DisplayManagerTestApi(Shell::GetInstance()->display_manager())
+ .SetFirstDisplayAsInternalDisplay();
// Create the primary display info.
display::ManagedDisplayInfo internal_display =
« 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