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

Unified Diff: ash/system/night_light/tray_night_light_unittest.cc

Issue 2921973002: Hide Night Light behind a flag (Closed)
Patch Set: James' comments 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/night_light/night_light_controller_unittest.cc ('k') | ash/system/tiles/tiles_default_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/night_light/tray_night_light_unittest.cc
diff --git a/ash/system/night_light/tray_night_light_unittest.cc b/ash/system/night_light/tray_night_light_unittest.cc
index 3a8ca565a7629c72a82e928d85717b41e9d80d01..1491771c06d3ddfaae7011ddcefd8b1e6f09007a 100644
--- a/ash/system/night_light/tray_night_light_unittest.cc
+++ b/ash/system/night_light/tray_night_light_unittest.cc
@@ -4,6 +4,7 @@
#include "ash/system/night_light/tray_night_light.h"
+#include "ash/ash_switches.h"
#include "ash/public/cpp/config.h"
#include "ash/shell.h"
#include "ash/system/night_light/night_light_controller.h"
@@ -11,6 +12,7 @@
#include "ash/test/ash_test_base.h"
#include "ash/test/ash_test_helper.h"
#include "ash/test/test_shell_delegate.h"
+#include "base/command_line.h"
#include "base/macros.h"
#include "components/prefs/testing_pref_service.h"
@@ -27,6 +29,10 @@ class TrayNightLightTest : public test::AshTestBase {
// ash::test::AshTestBase:
void SetUp() override {
+ // Explicitly enable the NightLight feature for the tests.
+ base::CommandLine::ForCurrentProcess()->AppendSwitch(
+ ash::switches::kAshEnableNightLight);
+
test::AshTestBase::SetUp();
GetSessionControllerClient()->Reset();
GetSessionControllerClient()->AddUserSession(kFakeUserEmail);
« no previous file with comments | « ash/system/night_light/night_light_controller_unittest.cc ('k') | ash/system/tiles/tiles_default_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698