Searched refs:PowerMonitorTestSource (Results 1 – 4 of 4) sorted by relevance
13 PowerMonitorTestSource::PowerMonitorTestSource() in PowerMonitorTestSource() function in base::PowerMonitorTestSource17 PowerMonitorTestSource::~PowerMonitorTestSource() { in ~PowerMonitorTestSource()20 void PowerMonitorTestSource::GeneratePowerStateEvent(bool on_battery_power) { in GeneratePowerStateEvent()26 void PowerMonitorTestSource::GenerateSuspendEvent() { in GenerateSuspendEvent()31 void PowerMonitorTestSource::GenerateResumeEvent() { in GenerateResumeEvent()36 bool PowerMonitorTestSource::IsOnBatteryPowerImpl() { in IsOnBatteryPowerImpl()
14 class PowerMonitorTestSource : public PowerMonitorSource {16 PowerMonitorTestSource();17 virtual ~PowerMonitorTestSource();
14 power_monitor_source_ = new PowerMonitorTestSource(); in PowerMonitorTest()20 PowerMonitorTestSource* source() { return power_monitor_source_; } in source()24 PowerMonitorTestSource* power_monitor_source_;
52 power_monitor_source_ = new base::PowerMonitorTestSource(); in PowerMonitorMessageBroadcasterTest()58 base::PowerMonitorTestSource* source() { return power_monitor_source_; } in source()62 base::PowerMonitorTestSource* power_monitor_source_;