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

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

Issue 2355063002: Separate ash::test::DisplayManagerTestApi from ash (Closed)
Patch Set: rebased, cleanup Created 4 years, 3 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
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 076d055fc60b28a05d80ebdfa50f4fab8a0945d2..986b065118cf2538e91adf07e3efde7aba78df53 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 =

Powered by Google App Engine
This is Rietveld 408576698