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

Unified Diff: sync/util/get_session_name_unittest.cc

Issue 2086363002: Remove calls to deprecated MessageLoop methods in sync. (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 | « sync/tools/sync_listen_notifications.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/util/get_session_name_unittest.cc
diff --git a/sync/util/get_session_name_unittest.cc b/sync/util/get_session_name_unittest.cc
index 95ae1f9e24dc33b2e0182843d8551504f0746f9c..7001ad0e95eb212cae511641e1e6c711899a71a1 100644
--- a/sync/util/get_session_name_unittest.cc
+++ b/sync/util/get_session_name_unittest.cc
@@ -6,6 +6,7 @@
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "base/sys_info.h"
#include "build/build_config.h"
#include "sync/util/get_session_name.h"
@@ -68,7 +69,7 @@ TEST_F(GetSessionNameTest, GetSessionName) {
GetSessionName(message_loop_.task_runner(),
base::Bind(&GetSessionNameTest::SetSessionNameAndQuit,
base::Unretained(this)));
- message_loop_.Run();
+ base::RunLoop().Run();
EXPECT_EQ(session_name_, GetSessionNameSynchronouslyForTesting());
}
« no previous file with comments | « sync/tools/sync_listen_notifications.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698