Index: base/win/object_watcher_unittest.cc |
diff --git a/base/win/object_watcher_unittest.cc b/base/win/object_watcher_unittest.cc |
index 511ec49d7881bed2bec6d72a411d6f629c8b1204..29d72dbc436fd7a43af2271ab1ecae9aaf9d1d29 100644 |
--- a/base/win/object_watcher_unittest.cc |
+++ b/base/win/object_watcher_unittest.cc |
@@ -49,7 +49,7 @@ void RunTest_BasicSignal(MessageLoop::Type message_loop_type) { |
SetEvent(event); |
- MessageLoop::current()->Run(); |
+ RunLoop().Run(); |
EXPECT_FALSE(watcher.IsWatching()); |
CloseHandle(event); |
@@ -113,7 +113,7 @@ void RunTest_SignalBeforeWatch(MessageLoop::Type message_loop_type) { |
bool ok = watcher.StartWatchingOnce(event, &delegate); |
EXPECT_TRUE(ok); |
- MessageLoop::current()->Run(); |
+ RunLoop().Run(); |
EXPECT_FALSE(watcher.IsWatching()); |
CloseHandle(event); |
@@ -170,7 +170,7 @@ void RunTest_ExecuteMultipleTimes(MessageLoop::Type message_loop_type) { |
SetEvent(event); |
- MessageLoop::current()->Run(); |
+ RunLoop().Run(); |
EXPECT_TRUE(watcher.IsWatching()); |
EXPECT_TRUE(watcher.StopWatching()); |