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

Unified Diff: ash/wm/maximize_mode/maximize_mode_controller_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/immersive_fullscreen_controller_unittest.cc ('k') | ash/wm/overview/window_selector_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/maximize_mode/maximize_mode_controller_unittest.cc
diff --git a/ash/wm/maximize_mode/maximize_mode_controller_unittest.cc b/ash/wm/maximize_mode/maximize_mode_controller_unittest.cc
index 181b59522512be66783386ad11f64f9115d28eff..3fa9369faca4ae8abb5038e9f51e59129cd1ec65 100644
--- a/ash/wm/maximize_mode/maximize_mode_controller_unittest.cc
+++ b/ash/wm/maximize_mode/maximize_mode_controller_unittest.cc
@@ -82,7 +82,8 @@ class MaximizeModeControllerTest : public test::AshTestBase {
// Set the first display to be the internal display for the accelerometer
// screen rotation tests.
- test::DisplayManagerTestApi().SetFirstDisplayAsInternalDisplay();
+ test::DisplayManagerTestApi(Shell::GetInstance()->display_manager())
+ .SetFirstDisplayAsInternalDisplay();
}
void TearDown() override {
@@ -489,7 +490,8 @@ TEST_F(MaximizeModeControllerTest, NoMaximizeModeWithDisabledInternalDisplay) {
DisplayManager* display_manager = Shell::GetInstance()->display_manager();
UpdateDisplay("200x200, 200x200");
const int64_t internal_display_id =
- test::DisplayManagerTestApi().SetFirstDisplayAsInternalDisplay();
+ test::DisplayManagerTestApi(Shell::GetInstance()->display_manager())
+ .SetFirstDisplayAsInternalDisplay();
ASSERT_FALSE(IsMaximizeModeStarted());
OpenLidToAngle(270.0f);
« no previous file with comments | « ash/wm/immersive_fullscreen_controller_unittest.cc ('k') | ash/wm/overview/window_selector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698