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

Unified Diff: ash/system/tiles/tray_tiles_unittest.cc

Issue 2921973002: Hide Night Light behind a flag (Closed)
Patch Set: James' comments Created 3 years, 6 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/tiles/tiles_default_view.cc ('k') | ash/system/tray/system_tray.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tiles/tray_tiles_unittest.cc
diff --git a/ash/system/tiles/tray_tiles_unittest.cc b/ash/system/tiles/tray_tiles_unittest.cc
index 7341f72566050af1302add213ae340d0d5eb6e0c..6599f489efac6c25e8957c5ef28cdfbbf887182a 100644
--- a/ash/system/tiles/tray_tiles_unittest.cc
+++ b/ash/system/tiles/tray_tiles_unittest.cc
@@ -4,11 +4,14 @@
#include "ash/system/tiles/tray_tiles.h"
+#include "ash/ash_switches.h"
+#include "ash/system/night_light/night_light_controller.h"
#include "ash/system/night_light/night_light_toggle_button.h"
#include "ash/system/tiles/tiles_default_view.h"
#include "ash/system/tray/system_menu_button.h"
#include "ash/test/ash_test_base.h"
#include "ash/test/test_session_controller_client.h"
+#include "base/command_line.h"
#include "components/user_manager/user_type.h"
#include "ui/views/view.h"
@@ -23,6 +26,10 @@ class TrayTilesTest : public test::NoSessionAshTestBase {
~TrayTilesTest() override {}
void SetUp() override {
+ // Explicitly enable the NightLight feature for the tests.
+ base::CommandLine::ForCurrentProcess()->AppendSwitch(
+ ash::switches::kAshEnableNightLight);
+
test::NoSessionAshTestBase::SetUp();
tray_tiles_.reset(new TrayTiles(GetPrimarySystemTray()));
}
« no previous file with comments | « ash/system/tiles/tiles_default_view.cc ('k') | ash/system/tray/system_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698