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

Unified Diff: base/trace_event/trace_event_system_stats_monitor_unittest.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/timer/timer_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/trace_event_system_stats_monitor_unittest.cc
diff --git a/base/trace_event/trace_event_system_stats_monitor_unittest.cc b/base/trace_event/trace_event_system_stats_monitor_unittest.cc
index e834ded370003cd6744753a0bd1d0918ddddd319..3ec6eab81634c3bd39a93082418fe905e1bf9cba 100644
--- a/base/trace_event/trace_event_system_stats_monitor_unittest.cc
+++ b/base/trace_event/trace_event_system_stats_monitor_unittest.cc
@@ -8,6 +8,7 @@
#include <string>
#include "base/macros.h"
+#include "base/run_loop.h"
#include "base/trace_event/trace_event_impl.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -48,12 +49,12 @@ TEST_F(TraceSystemStatsMonitorTest, TraceEventSystemStatsMonitor) {
// Simulate enabling tracing.
system_stats_monitor->StartProfiling();
- message_loop.RunUntilIdle();
+ RunLoop().RunUntilIdle();
EXPECT_TRUE(system_stats_monitor->IsTimerRunningForTest());
// Simulate disabling tracing.
system_stats_monitor->StopProfiling();
- message_loop.RunUntilIdle();
+ RunLoop().RunUntilIdle();
EXPECT_FALSE(system_stats_monitor->IsTimerRunningForTest());
// Deleting the observer removes it from the TraceLog observer list.
« no previous file with comments | « base/timer/timer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698