summaryrefslogtreecommitdiffstats
path: root/dbus/end_to_end_async_unittest.cc
diff options
context:
space:
mode:
authorhashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-26 04:32:29 +0000
committerhashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-26 04:32:29 +0000
commit8609be26ac387460e7035a8422260cdc29486e52 (patch)
tree048c6f1652e433d72dfcce7240ca6c038254a5e9 /dbus/end_to_end_async_unittest.cc
parent31afdf7decb4ee984a6bb4f4fee84380476849a6 (diff)
downloadchromium_src-8609be26ac387460e7035a8422260cdc29486e52.zip
chromium_src-8609be26ac387460e7035a8422260cdc29486e52.tar.gz
chromium_src-8609be26ac387460e7035a8422260cdc29486e52.tar.bz2
dbus: Replace PostTaskTo*Thread methods with Get*TaskRunner
By exposing TaskRunners, we'll be able to use utility functions like base::PostTaskAndReplyWithResult BUG=None TEST=git cl try R=satorux@chromium.org Review URL: https://codereview.chromium.org/24554002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225324 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'dbus/end_to_end_async_unittest.cc')
-rw-r--r--dbus/end_to_end_async_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbus/end_to_end_async_unittest.cc b/dbus/end_to_end_async_unittest.cc
index 1f2538a..fb8030b 100644
--- a/dbus/end_to_end_async_unittest.cc
+++ b/dbus/end_to_end_async_unittest.cc
@@ -580,9 +580,9 @@ TEST_F(EndToEndAsyncTest, TestHugeSignal) {
}
TEST_F(EndToEndAsyncTest, DisconnectedSignal) {
- bus_->PostTaskToDBusThread(FROM_HERE,
- base::Bind(&Bus::ClosePrivateConnection,
- base::Unretained(bus_.get())));
+ bus_->GetDBusTaskRunner()->PostTask(FROM_HERE,
+ base::Bind(&Bus::ClosePrivateConnection,
+ base::Unretained(bus_.get())));
// OnDisconnected callback quits message loop.
message_loop_.Run();
EXPECT_EQ(1, on_disconnected_call_count_);