diff options
author | pneubeck@chromium.org <pneubeck@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-27 12:23:04 +0000 |
---|---|---|
committer | pneubeck@chromium.org <pneubeck@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-27 12:23:04 +0000 |
commit | c5fd536cbf85dea5a3bc200a515bdf6cf75b2576 (patch) | |
tree | 1f233003e6f5d34428c73b318a89454b7c7ee23b /chromeos/dbus/shill_manager_client_unittest.cc | |
parent | 072414940357abff52558f794af018adfeb6f0d7 (diff) | |
download | chromium_src-c5fd536cbf85dea5a3bc200a515bdf6cf75b2576.zip chromium_src-c5fd536cbf85dea5a3bc200a515bdf6cf75b2576.tar.gz chromium_src-c5fd536cbf85dea5a3bc200a515bdf6cf75b2576.tar.bz2 |
Split construction and initialization of DBus clients.
Before, each Client had a Create function which constructed an instance of the client and initialized it (with a dbus::Bus*).
To make the Clients separately replaceable in the DBusThreadManager, it's necessary to separate the construction of the Clients from their initialization.
This CL, splits each Create function into Create (which only calls the constructor of either the real Impl or the Stub) and Init(dbus::Bus*).
This is a pure refactoring.
BUG=275286
Review URL: https://chromiumcodereview.appspot.com/23119006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219775 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/shill_manager_client_unittest.cc')
-rw-r--r-- | chromeos/dbus/shill_manager_client_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chromeos/dbus/shill_manager_client_unittest.cc b/chromeos/dbus/shill_manager_client_unittest.cc index e2feccf..107458d 100644 --- a/chromeos/dbus/shill_manager_client_unittest.cc +++ b/chromeos/dbus/shill_manager_client_unittest.cc @@ -60,8 +60,8 @@ class ShillManagerClientTest : public ShillClientUnittestBase { virtual void SetUp() { ShillClientUnittestBase::SetUp(); // Create a client with the mock bus. - client_.reset(ShillManagerClient::Create(REAL_DBUS_CLIENT_IMPLEMENTATION, - mock_bus_.get())); + client_.reset(ShillManagerClient::Create(REAL_DBUS_CLIENT_IMPLEMENTATION)); + client_->Init(mock_bus_.get()); // Run the message loop to run the signal connection result callback. message_loop_.RunUntilIdle(); } |