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

Unified Diff: ash/display/display_manager_unittest.cc

Issue 2617733002: Hide docked windows behind a flag (Closed)
Patch Set: Fix tests failed because of DCHECK Created 3 years, 11 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/display/display_manager_unittest.cc
diff --git a/ash/display/display_manager_unittest.cc b/ash/display/display_manager_unittest.cc
index 31de493e3a9d3ba9c59db0740fce1c1a096e1533..29e0f57b5409ee97607f12511d1bd7f6747c0e3b 100644
--- a/ash/display/display_manager_unittest.cc
+++ b/ash/display/display_manager_unittest.cc
@@ -5,6 +5,7 @@
#include "ui/display/manager/display_manager.h"
#include "ash/accelerators/accelerator_commands_aura.h"
+#include "ash/common/ash_switches.h"
#include "ash/common/material_design/material_design_controller.h"
#include "ash/common/wm/window_state.h"
#include "ash/display/display_configuration_controller.h"
@@ -2272,6 +2273,11 @@ TEST_P(DisplayManagerTest, NoRotateUnifiedDesktop) {
TEST_P(DisplayManagerTest, UnifiedWithDockWindows) {
if (!SupportsMultipleDisplays())
return;
+
+ // Enable window docking for this test.
+ base::CommandLine::ForCurrentProcess()->AppendSwitch(
+ ash::switches::kAshEnableDockedWindows);
+
const int height_offset = GetMdMaximizedWindowHeightOffset();
display_manager()->SetUnifiedDesktopEnabled(true);

Powered by Google App Engine
This is Rietveld 408576698