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

Unified Diff: base/win/object_watcher_unittest.cc

Issue 2211473003: Remove calls to deprecated MessageLoop methods on Windows and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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
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());

Powered by Google App Engine
This is Rietveld 408576698