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

Unified Diff: ash/system/night_light/night_light_controller_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
Index: ash/system/night_light/night_light_controller_unittest.cc
diff --git a/ash/system/night_light/night_light_controller_unittest.cc b/ash/system/night_light/night_light_controller_unittest.cc
index 175a01dcc88322f1c384b37df5b7323aafd23943..8307834d701a45d8d1ba339b5324ccaa481a8fd8 100644
--- a/ash/system/night_light/night_light_controller_unittest.cc
+++ b/ash/system/night_light/night_light_controller_unittest.cc
@@ -7,6 +7,7 @@
#include <cmath>
#include <limits>
+#include "ash/ash_switches.h"
#include "ash/public/cpp/ash_pref_names.h"
#include "ash/public/cpp/config.h"
#include "ash/public/cpp/session_types.h"
@@ -15,6 +16,7 @@
#include "ash/test/ash_test_helper.h"
#include "ash/test/test_session_controller_client.h"
#include "ash/test/test_shell_delegate.h"
+#include "base/command_line.h"
#include "base/macros.h"
#include "components/prefs/testing_pref_service.h"
#include "ui/compositor/layer.h"
@@ -76,6 +78,10 @@ class NightLightTest : 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();
CreateTestUserSessions();
Shell::RegisterPrefs(user1_pref_service_.registry());
« no previous file with comments | « ash/system/night_light/night_light_controller.cc ('k') | ash/system/night_light/tray_night_light_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698