Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1054)

Unified Diff: device/bluetooth/bluetooth_profile_chromeos_unittest.cc

Issue 49773003: ChromeOS: Remove MockDBusThreadManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluetooth_profile_chromeos_unittest.cc
diff --git a/device/bluetooth/bluetooth_profile_chromeos_unittest.cc b/device/bluetooth/bluetooth_profile_chromeos_unittest.cc
index bd91b8691733ba935ebd37214e8114a3785ba586..51eb2087337402fabed5200fb97ffd385b800c91 100644
--- a/device/bluetooth/bluetooth_profile_chromeos_unittest.cc
+++ b/device/bluetooth/bluetooth_profile_chromeos_unittest.cc
@@ -38,11 +38,13 @@ class BluetoothProfileChromeOSTest : public testing::Test {
last_device_(NULL) {}
virtual void SetUp() {
- fake_dbus_thread_manager_ = new FakeDBusThreadManager();
- DBusThreadManager::InitializeForTesting(fake_dbus_thread_manager_);
-
+ FakeDBusThreadManager* fake_dbus_thread_manager = new FakeDBusThreadManager;
fake_bluetooth_profile_manager_client_ =
- fake_dbus_thread_manager_->fake_bluetooth_profile_manager_client();
+ new FakeBluetoothProfileManagerClient;
+ fake_dbus_thread_manager->SetBluetoothProfileManagerClient(
+ scoped_ptr<BluetoothProfileManagerClient>(
+ fake_bluetooth_profile_manager_client_));
+ DBusThreadManager::InitializeForTesting(fake_dbus_thread_manager);
device::BluetoothAdapterFactory::GetAdapter(
base::Bind(&BluetoothProfileChromeOSTest::AdapterCallback,
@@ -95,7 +97,6 @@ class BluetoothProfileChromeOSTest : public testing::Test {
base::MessageLoop message_loop_;
FakeBluetoothProfileManagerClient* fake_bluetooth_profile_manager_client_;
- FakeDBusThreadManager* fake_dbus_thread_manager_;
scoped_refptr<BluetoothAdapter> adapter_;
unsigned int callback_count_;

Powered by Google App Engine
This is Rietveld 408576698