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

Unified Diff: ipc/ipc_sync_channel_unittest.cc

Issue 11420048: ipc: Update calls from RunAllPending() to RunUntilIdle(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_sync_channel_unittest.cc
diff --git a/ipc/ipc_sync_channel_unittest.cc b/ipc/ipc_sync_channel_unittest.cc
index e9ec02155a8d2ec97f444c288bea5e3cb24aa16c..c31565a63e247496ab721b354f9de12d9a7068b1 100644
--- a/ipc/ipc_sync_channel_unittest.cc
+++ b/ipc/ipc_sync_channel_unittest.cc
@@ -186,7 +186,7 @@ class Worker : public Listener, public Sender {
// SyncChannel needs to be destructed on the thread that it was created on.
channel_.reset();
- MessageLoop::current()->RunAllPending();
+ MessageLoop::current()->RunUntilIdle();
ipc_thread_.message_loop()->PostTask(
FROM_HERE, base::Bind(&Worker::OnIPCThreadShutdown, this,
@@ -195,7 +195,7 @@ class Worker : public Listener, public Sender {
void OnIPCThreadShutdown(WaitableEvent* listener_event,
WaitableEvent* ipc_event) {
- MessageLoop::current()->RunAllPending();
+ MessageLoop::current()->RunUntilIdle();
ipc_event->Signal();
listener_thread_.message_loop()->PostTask(
@@ -204,7 +204,7 @@ class Worker : public Listener, public Sender {
}
void OnListenerThreadShutdown2(WaitableEvent* listener_event) {
- MessageLoop::current()->RunAllPending();
+ MessageLoop::current()->RunUntilIdle();
listener_event->Signal();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698