| 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);
|
|
|