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

Unified Diff: base/test/power_monitor_test_base.cc

Issue 2103333006: Remove calls to deprecated MessageLoop methods in base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « base/test/launcher/test_launcher.cc ('k') | base/test/sequenced_worker_pool_owner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « base/test/launcher/test_launcher.cc ('k') | base/test/sequenced_worker_pool_owner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698