| Index: base/test/power_monitor_test_base.cc
|
| diff --git a/base/test/power_monitor_test_base.cc b/base/test/power_monitor_test_base.cc
|
| index 73438ea3e94958585642afcd645b8293b2c1c705..8e8b9124b018bae57c5933594e3b929646cfa8ac 100644
|
| --- a/base/test/power_monitor_test_base.cc
|
| +++ b/base/test/power_monitor_test_base.cc
|
| @@ -7,6 +7,7 @@
|
| #include "base/message_loop/message_loop.h"
|
| #include "base/power_monitor/power_monitor.h"
|
| #include "base/power_monitor/power_monitor_source.h"
|
| +#include "base/run_loop.h"
|
|
|
| namespace base {
|
|
|
| @@ -20,17 +21,17 @@ PowerMonitorTestSource::~PowerMonitorTestSource() {
|
| void PowerMonitorTestSource::GeneratePowerStateEvent(bool on_battery_power) {
|
| test_on_battery_power_ = on_battery_power;
|
| ProcessPowerEvent(POWER_STATE_EVENT);
|
| - message_loop_.RunUntilIdle();
|
| + RunLoop().RunUntilIdle();
|
| }
|
|
|
| void PowerMonitorTestSource::GenerateSuspendEvent() {
|
| ProcessPowerEvent(SUSPEND_EVENT);
|
| - message_loop_.RunUntilIdle();
|
| + RunLoop().RunUntilIdle();
|
| }
|
|
|
| void PowerMonitorTestSource::GenerateResumeEvent() {
|
| ProcessPowerEvent(RESUME_EVENT);
|
| - message_loop_.RunUntilIdle();
|
| + RunLoop().RunUntilIdle();
|
| }
|
|
|
| bool PowerMonitorTestSource::IsOnBatteryPowerImpl() {
|
|
|