#include "battery_saver.h"
#include <optional>
#include "base/check_is_test.h"
#include "build/build_config.h"
#include "content/public/browser/browser_thread.h"
#if BUILDFLAG(IS_ANDROID)
#include <jni.h>
#include "chrome/browser/battery/android/jni_headers/BatterySaverOSSetting_jni.h"
#endif
namespace {
std::optional<bool> g_override_battery_saver_mode_for_testing;
}
namespace battery {
void OverrideIsBatterySaverEnabledForTesting(bool is_battery_saver_mode) { … }
void ResetIsBatterySaverEnabledForTesting() { … }
bool IsBatterySaverEnabled() { … }
}