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

Unified Diff: chromeos/dbus/fake_dbus_thread_manager.cc

Issue 206443009: chromeos/dbus: Add fake D-Bus clients for GATT client-mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 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/fake_dbus_thread_manager.h ('k') | device/bluetooth/bluetooth_chromeos_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/fake_dbus_thread_manager.cc
diff --git a/chromeos/dbus/fake_dbus_thread_manager.cc b/chromeos/dbus/fake_dbus_thread_manager.cc
index b5bb7879c2c950c106a09d1cd72a371574a9432a..467178b4d87f8f82eaef6d5b35bb02d491990485 100644
--- a/chromeos/dbus/fake_dbus_thread_manager.cc
+++ b/chromeos/dbus/fake_dbus_thread_manager.cc
@@ -14,6 +14,9 @@
#include "chromeos/dbus/fake_bluetooth_adapter_client.h"
#include "chromeos/dbus/fake_bluetooth_agent_manager_client.h"
#include "chromeos/dbus/fake_bluetooth_device_client.h"
+#include "chromeos/dbus/fake_bluetooth_gatt_characteristic_client.h"
+#include "chromeos/dbus/fake_bluetooth_gatt_descriptor_client.h"
+#include "chromeos/dbus/fake_bluetooth_gatt_service_client.h"
#include "chromeos/dbus/fake_bluetooth_input_client.h"
#include "chromeos/dbus/fake_bluetooth_profile_manager_client.h"
#include "chromeos/dbus/fake_cryptohome_client.h"
@@ -59,6 +62,13 @@ void FakeDBusThreadManager::SetFakeClients() {
new FakeBluetoothAgentManagerClient));
SetBluetoothDeviceClient(
scoped_ptr<BluetoothDeviceClient>(new FakeBluetoothDeviceClient));
+ SetBluetoothGattCharacteristicClient(
+ scoped_ptr<BluetoothGattCharacteristicClient>(
+ new FakeBluetoothGattCharacteristicClient));
+ SetBluetoothGattDescriptorClient(scoped_ptr<BluetoothGattDescriptorClient>(
+ new FakeBluetoothGattDescriptorClient));
+ SetBluetoothGattServiceClient(scoped_ptr<BluetoothGattServiceClient>(
+ new FakeBluetoothGattServiceClient));
SetBluetoothInputClient(
scoped_ptr<BluetoothInputClient>(new FakeBluetoothInputClient));
SetBluetoothProfileManagerClient(scoped_ptr<BluetoothProfileManagerClient>(
@@ -139,6 +149,21 @@ void FakeDBusThreadManager::SetBluetoothDeviceClient(
bluetooth_device_client_ = client.Pass();
}
+void FakeDBusThreadManager::SetBluetoothGattCharacteristicClient(
+ scoped_ptr<BluetoothGattCharacteristicClient> client) {
+ bluetooth_gatt_characteristic_client_ = client.Pass();
+}
+
+void FakeDBusThreadManager::SetBluetoothGattDescriptorClient(
+ scoped_ptr<BluetoothGattDescriptorClient> client) {
+ bluetooth_gatt_descriptor_client_ = client.Pass();
+}
+
+void FakeDBusThreadManager::SetBluetoothGattServiceClient(
+ scoped_ptr<BluetoothGattServiceClient> client) {
+ bluetooth_gatt_service_client_ = client.Pass();
+}
+
void FakeDBusThreadManager::SetBluetoothInputClient(
scoped_ptr<BluetoothInputClient> client) {
bluetooth_input_client_ = client.Pass();
@@ -304,6 +329,21 @@ BluetoothDeviceClient*
return bluetooth_device_client_.get();
}
+BluetoothGattCharacteristicClient*
+ FakeDBusThreadManager::GetBluetoothGattCharacteristicClient() {
+ return bluetooth_gatt_characteristic_client_.get();
+}
+
+BluetoothGattDescriptorClient*
+ FakeDBusThreadManager::GetBluetoothGattDescriptorClient() {
+ return bluetooth_gatt_descriptor_client_.get();
+}
+
+BluetoothGattServiceClient*
+ FakeDBusThreadManager::GetBluetoothGattServiceClient() {
+ return bluetooth_gatt_service_client_.get();
+}
+
BluetoothInputClient*
FakeDBusThreadManager::GetBluetoothInputClient() {
return bluetooth_input_client_.get();
« no previous file with comments | « chromeos/dbus/fake_dbus_thread_manager.h ('k') | device/bluetooth/bluetooth_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698