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

Unified Diff: mojo/public/cpp/bindings/tests/associated_interface_unittest.cc

Issue 2104363004: Remove remaining calls to deprecated MessageLoop methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR gab Created 4 years, 5 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: mojo/public/cpp/bindings/tests/associated_interface_unittest.cc
diff --git a/mojo/public/cpp/bindings/tests/associated_interface_unittest.cc b/mojo/public/cpp/bindings/tests/associated_interface_unittest.cc
index e818969f3254a63e233b0f0b56334f1818237191..8f2eb08d9fc3008d33eb09a3ae0887c207111b1e 100644
--- a/mojo/public/cpp/bindings/tests/associated_interface_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/associated_interface_unittest.cc
@@ -11,6 +11,7 @@
#include "base/callback.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
+#include "base/single_thread_task_runner.h"
#include "base/threading/thread.h"
#include "base/threading/thread_task_runner_handle.h"
#include "mojo/public/cpp/bindings/associated_binding.h"
@@ -91,9 +92,9 @@ class IntegerSenderConnectionImpl : public IntegerSenderConnection {
class AssociatedInterfaceTest : public testing::Test {
public:
AssociatedInterfaceTest() {}
- ~AssociatedInterfaceTest() override { loop_.RunUntilIdle(); }
+ ~AssociatedInterfaceTest() override { base::RunLoop().RunUntilIdle(); }
- void PumpMessages() { loop_.RunUntilIdle(); }
+ void PumpMessages() { base::RunLoop().RunUntilIdle(); }
template <typename T>
AssociatedInterfacePtrInfo<T> EmulatePassingAssociatedPtrInfo(
@@ -121,7 +122,7 @@ class AssociatedInterfaceTest : public testing::Test {
if (loop_.task_runner()->BelongsToCurrentThread()) {
run_loop->Quit();
} else {
- loop_.PostTask(
+ loop_.task_runner()->PostTask(
FROM_HERE,
base::Bind(&AssociatedInterfaceTest::QuitRunLoop,
base::Unretained(this), base::Unretained(run_loop)));
« no previous file with comments | « media/test/pipeline_integration_test.cc ('k') | mojo/public/cpp/bindings/tests/binding_callback_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698