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

Unified Diff: ash/test/ash_test_helper.cc

Issue 2874963002: chromeos: wireup more display management for mushrome (Closed)
Patch Set: better comment Created 3 years, 7 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/system/screen_layout_observer.cc ('k') | testing/buildbot/filters/ash_mus_unittests.filter » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/ash_test_helper.cc
diff --git a/ash/test/ash_test_helper.cc b/ash/test/ash_test_helper.cc
index d6911f5c0e3043e15420f3ca5e904ca61e74bf12..6d7286b34e4baff7a9cc02e9424d9d44373bb845 100644
--- a/ash/test/ash_test_helper.cc
+++ b/ash/test/ash_test_helper.cc
@@ -178,20 +178,21 @@ void AshTestHelper::SetUp(bool start_session) {
if (start_session)
session_controller_client_->CreatePredefinedUserSessions(1);
- if (config_ == Config::CLASSIC) {
- // ScreenLayoutObserver is specific to classic-ash.
+ // TODO(sky): mash should use this too http://crbug.com/718860.
+ if (config_ != Config::MASH) {
// Tests that change the display configuration generally don't care about
// the notifications and the popup UI can interfere with things like
// cursors.
shell->screen_layout_observer()->set_show_notifications_for_testing(false);
- // DisplayManager is specific to classic-ash.
display::test::DisplayManagerTestApi(shell->display_manager())
.DisableChangeDisplayUponHostResize();
DisplayConfigurationControllerTestApi(
shell->display_configuration_controller())
.DisableDisplayAnimator();
+ }
+ if (config_ == Config::CLASSIC) {
// TODO: disabled for mash as AcceleratorControllerDelegateAura isn't
// created in mash http://crbug.com/632111.
test_screenshot_delegate_ = new TestScreenshotDelegate();
« no previous file with comments | « ash/system/screen_layout_observer.cc ('k') | testing/buildbot/filters/ash_mus_unittests.filter » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698