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

Unified Diff: chromeos/dbus/mock_dbus_thread_manager.cc

Issue 12605008: D-Bus Clients for BlueZ 5 API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mock dbus thread manager without gmock? I didn't even know that was a thing! Created 7 years, 9 months 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
« no previous file with comments | « chromeos/dbus/mock_dbus_thread_manager.h ('k') | chromeos/dbus/mock_dbus_thread_manager_without_gmock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/mock_dbus_thread_manager.cc
diff --git a/chromeos/dbus/mock_dbus_thread_manager.cc b/chromeos/dbus/mock_dbus_thread_manager.cc
index e6777eedc9a0b1fe424c018e56d8f799453ea064..a9cfc637cd21058532e0bc0244d92aac00831848 100644
--- a/chromeos/dbus/mock_dbus_thread_manager.cc
+++ b/chromeos/dbus/mock_dbus_thread_manager.cc
@@ -14,6 +14,10 @@
#include "chromeos/dbus/mock_cros_disks_client.h"
#include "chromeos/dbus/mock_cryptohome_client.h"
#include "chromeos/dbus/mock_debug_daemon_client.h"
+#include "chromeos/dbus/mock_experimental_bluetooth_adapter_client.h"
+#include "chromeos/dbus/mock_experimental_bluetooth_agent_manager_client.h"
+#include "chromeos/dbus/mock_experimental_bluetooth_device_client.h"
+#include "chromeos/dbus/mock_experimental_bluetooth_profile_manager_client.h"
#include "chromeos/dbus/mock_shill_device_client.h"
#include "chromeos/dbus/mock_shill_ipconfig_client.h"
#include "chromeos/dbus/mock_shill_manager_client.h"
@@ -48,6 +52,14 @@ MockDBusThreadManager::MockDBusThreadManager()
mock_cros_disks_client_(new MockCrosDisksClient),
mock_cryptohome_client_(new MockCryptohomeClient),
mock_debugdaemon_client_(new MockDebugDaemonClient),
+ mock_experimental_bluetooth_adapter_client_(
+ new MockExperimentalBluetoothAdapterClient),
+ mock_experimental_bluetooth_agent_manager_client_(
+ new MockExperimentalBluetoothAgentManagerClient),
+ mock_experimental_bluetooth_device_client_(
+ new MockExperimentalBluetoothDeviceClient),
+ mock_experimental_bluetooth_profile_manager_client_(
+ new MockExperimentalBluetoothProfileManagerClient),
mock_shill_device_client_(new MockShillDeviceClient),
mock_shill_ipconfig_client_(new MockShillIPConfigClient),
mock_shill_manager_client_(new MockShillManagerClient),
@@ -81,6 +93,16 @@ MockDBusThreadManager::MockDBusThreadManager()
.WillRepeatedly(Return(mock_cryptohome_client()));
EXPECT_CALL(*this, GetDebugDaemonClient())
.WillRepeatedly(Return(mock_debugdaemon_client()));
+ EXPECT_CALL(*this, GetExperimentalBluetoothAdapterClient())
+ .WillRepeatedly(Return(mock_experimental_bluetooth_adapter_client()));
+ EXPECT_CALL(*this, GetExperimentalBluetoothAgentManagerClient())
+ .WillRepeatedly(Return(
+ mock_experimental_bluetooth_agent_manager_client()));
+ EXPECT_CALL(*this, GetExperimentalBluetoothDeviceClient())
+ .WillRepeatedly(Return(mock_experimental_bluetooth_device_client()));
+ EXPECT_CALL(*this, GetExperimentalBluetoothProfileManagerClient())
+ .WillRepeatedly(Return(
+ mock_experimental_bluetooth_profile_manager_client()));
EXPECT_CALL(*this, GetShillDeviceClient())
.WillRepeatedly(Return(mock_shill_device_client()));
EXPECT_CALL(*this, GetShillIPConfigClient())
@@ -173,6 +195,18 @@ MockDBusThreadManager::MockDBusThreadManager()
.Times(AnyNumber());
EXPECT_CALL(*mock_bluetooth_node_client_.get(), RemoveObserver(_))
.Times(AnyNumber());
+ EXPECT_CALL(*mock_experimental_bluetooth_adapter_client_.get(),
+ AddObserver(_))
+ .Times(AnyNumber());
+ EXPECT_CALL(*mock_experimental_bluetooth_adapter_client_.get(),
+ RemoveObserver(_))
+ .Times(AnyNumber());
+ EXPECT_CALL(*mock_experimental_bluetooth_device_client_.get(),
+ AddObserver(_))
+ .Times(AnyNumber());
+ EXPECT_CALL(*mock_experimental_bluetooth_device_client_.get(),
+ RemoveObserver(_))
+ .Times(AnyNumber());
// Called from PowerMenuButton ctor.
EXPECT_CALL(*mock_power_manager_client_.get(), RequestStatusUpdate(_))
« no previous file with comments | « chromeos/dbus/mock_dbus_thread_manager.h ('k') | chromeos/dbus/mock_dbus_thread_manager_without_gmock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698