summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_sync_channel_unittest.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-16 23:41:19 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-16 23:41:19 +0000
commitb7885fbd50a725f0ed690d0b45e2e74a0f34e4eb (patch)
tree727b0b341e4fb70648b87c8ae2530aec16086d52 /ipc/ipc_sync_channel_unittest.cc
parentc9fc22f475a01bdc7b18947943b3984e59ca4032 (diff)
downloadchromium_src-b7885fbd50a725f0ed690d0b45e2e74a0f34e4eb.zip
chromium_src-b7885fbd50a725f0ed690d0b45e2e74a0f34e4eb.tar.gz
chromium_src-b7885fbd50a725f0ed690d0b45e2e74a0f34e4eb.tar.bz2
ipc: Update calls from RunAllPending() to RunUntilIdle().
RunAllPending() is deprecated and we should switch to RunUntilIdle(). BUG=131220 TBR=cpu@chromium.org NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11420048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168331 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_sync_channel_unittest.cc')
-rw-r--r--ipc/ipc_sync_channel_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipc/ipc_sync_channel_unittest.cc b/ipc/ipc_sync_channel_unittest.cc
index e9ec021..c31565a 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();
}