diff options
author | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-02 06:56:23 +0000 |
---|---|---|
committer | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-02 06:56:23 +0000 |
commit | e20d39fe8164f6633d8224030133a1c6ad18a289 (patch) | |
tree | d5cd7f78a9307a6eba086c5eedc7dd7fdcea4e82 /dbus/end_to_end_sync_unittest.cc | |
parent | 769b082f1fac6e60249c2e6f45bd2432390d7c5a (diff) | |
download | chromium_src-e20d39fe8164f6633d8224030133a1c6ad18a289.zip chromium_src-e20d39fe8164f6633d8224030133a1c6ad18a289.tar.gz chromium_src-e20d39fe8164f6633d8224030133a1c6ad18a289.tar.bz2 |
Add Bus::ShutdownOnDBusThreadAndBlock() and remove bus::Shutdown()
This function is intended to use at the the very end of the browser shutdown,
where it it makes more sense to shut down the bus synchronously, than trying
to make it asynchronous.
Remove Bus::Shutdown() as we are unlikely to need it for the production code.
BUG=chromium:90036
TEST=dbus_unittests
Review URL: http://codereview.chromium.org/7830009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99331 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'dbus/end_to_end_sync_unittest.cc')
-rw-r--r-- | dbus/end_to_end_sync_unittest.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dbus/end_to_end_sync_unittest.cc b/dbus/end_to_end_sync_unittest.cc index 8968985..c338809 100644 --- a/dbus/end_to_end_sync_unittest.cc +++ b/dbus/end_to_end_sync_unittest.cc @@ -37,8 +37,7 @@ class EndToEndSyncTest : public testing::Test { } virtual void TearDown() { - test_service_->Shutdown(); - ASSERT_TRUE(test_service_->WaitUntilServiceIsShutdown()); + test_service_->ShutdownAndBlock(); test_service_->Stop(); client_bus_->ShutdownAndBlock(); } |