#include "base/power_monitor/power_monitor.h"
#include <optional>
#include "base/test/power_monitor_test.h"
#include "base/test/task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
namespace test {
class PowerMonitorTest : public testing::Test { … };
TEST_F(PowerMonitorTest, PowerNotifications) { … }
TEST_F(PowerMonitorTest, ThermalThrottling) { … }
TEST_F(PowerMonitorTest, AddPowerSuspendObserverBeforeAndAfterInitialization) { … }
TEST_F(PowerMonitorTest, AddPowerStateObserverBeforeAndAfterInitialization) { … }
TEST_F(PowerMonitorTest, SuspendStateReturnedFromAddObserver) { … }
TEST_F(PowerMonitorTest, PowerStateReturnedFromAddObserver) { … }
}
}