Index: chromeos/network/managed_network_configuration_handler_unittest.cc |
diff --git a/chromeos/network/managed_network_configuration_handler_unittest.cc b/chromeos/network/managed_network_configuration_handler_unittest.cc |
index c3cc5c49dca6d5403745347e699b0630ba7c520d..b4ec1ccd4db6290e78c6741d2e2cf4eb17933246 100644 |
--- a/chromeos/network/managed_network_configuration_handler_unittest.cc |
+++ b/chromeos/network/managed_network_configuration_handler_unittest.cc |
@@ -12,7 +12,6 @@ |
#include "base/stl_util.h" |
#include "base/values.h" |
#include "chromeos/dbus/dbus_thread_manager.h" |
-#include "chromeos/dbus/fake_dbus_thread_manager.h" |
#include "chromeos/dbus/mock_shill_manager_client.h" |
#include "chromeos/dbus/mock_shill_profile_client.h" |
#include "chromeos/dbus/shill_client_helper.h" |
@@ -159,16 +158,15 @@ class ManagedNetworkConfigurationHandlerTest : public testing::Test { |
} |
virtual void SetUp() OVERRIDE { |
- FakeDBusThreadManager* dbus_thread_manager = new FakeDBusThreadManager; |
+ scoped_ptr<DBusThreadManagerSetter> dbus_setter = |
+ DBusThreadManager::GetSetterForTesting(); |
mock_manager_client_ = new StrictMock<MockShillManagerClient>(); |
mock_profile_client_ = new StrictMock<MockShillProfileClient>(); |
- dbus_thread_manager->SetShillManagerClient( |
+ dbus_setter->SetShillManagerClient( |
scoped_ptr<ShillManagerClient>(mock_manager_client_).Pass()); |
- dbus_thread_manager->SetShillProfileClient( |
+ dbus_setter->SetShillProfileClient( |
scoped_ptr<ShillProfileClient>(mock_profile_client_).Pass()); |
- DBusThreadManager::InitializeForTesting(dbus_thread_manager); |
- |
SetNetworkConfigurationHandlerExpectations(); |
ON_CALL(*mock_profile_client_, GetProperties(_,_,_)) |