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

Unified Diff: remoting/base/auto_thread_task_runner_unittest.cc

Issue 2082363002: Remove calls to deprecated MessageLoop methods in remoting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing include 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 | « remoting/base/auto_thread.cc ('k') | remoting/base/auto_thread_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/auto_thread_task_runner_unittest.cc
diff --git a/remoting/base/auto_thread_task_runner_unittest.cc b/remoting/base/auto_thread_task_runner_unittest.cc
index 9a1f712d2c567bf9349a0082f275d54bd4bc0762..8664bf73306f17c73d9136008d5259265671f767 100644
--- a/remoting/base/auto_thread_task_runner_unittest.cc
+++ b/remoting/base/auto_thread_task_runner_unittest.cc
@@ -5,6 +5,8 @@
#include "base/bind.h"
#include "base/memory/ref_counted.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
+#include "base/single_thread_task_runner.h"
#include "remoting/base/auto_thread_task_runner.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -26,10 +28,11 @@ TEST(AutoThreadTaskRunnerTest, StartAndStop) {
// Post a task to make sure it is executed.
bool success = false;
- message_loop.PostTask(FROM_HERE, base::Bind(&SetFlagTask, &success));
+ message_loop.task_runner()->PostTask(FROM_HERE,
+ base::Bind(&SetFlagTask, &success));
task_runner = NULL;
- message_loop.Run();
+ base::RunLoop().Run();
EXPECT_TRUE(success);
}
« no previous file with comments | « remoting/base/auto_thread.cc ('k') | remoting/base/auto_thread_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698