Index: device/bluetooth/dbus/fake_bluetooth_device_client.h |
diff --git a/device/bluetooth/dbus/fake_bluetooth_device_client.h b/device/bluetooth/dbus/fake_bluetooth_device_client.h |
index 1218e9654eb782d3356e9b12857f8f2ad93bfb69..4de6c75b0eb17fc9701ae8946aaa6b5668bc8666 100644 |
--- a/device/bluetooth/dbus/fake_bluetooth_device_client.h |
+++ b/device/bluetooth/dbus/fake_bluetooth_device_client.h |
@@ -156,12 +156,15 @@ class DEVICE_BLUETOOTH_EXPORT FakeBluetoothDeviceClient |
void RemoveAllDevices(); |
// Create a test Bluetooth device with the given properties. |
- void CreateTestDevice(const dbus::ObjectPath& adapter_path, |
- const base::Optional<std::string> name, |
- const std::string alias, |
- const std::string device_address, |
- const std::vector<std::string>& service_uuids, |
- device::BluetoothTransport type); |
+ void CreateTestDevice( |
+ const dbus::ObjectPath& adapter_path, |
+ const base::Optional<std::string> name, |
+ const std::string alias, |
+ const std::string device_address, |
+ const std::vector<std::string>& service_uuids, |
+ device::BluetoothTransport type, |
+ const std::unordered_map<std::string, std::vector<uint8_t>>& |
+ service_data); |
void set_delay_start_discovery(bool value) { delay_start_discovery_ = value; } |
@@ -169,6 +172,13 @@ class DEVICE_BLUETOOTH_EXPORT FakeBluetoothDeviceClient |
// |object_path| to |rssi|, if the fake device exists. |
void UpdateDeviceRSSI(const dbus::ObjectPath& object_path, int16_t rssi); |
+ // Updates the service data property of fake device with object path |
+ // |object_path| to |service_data|, if the fake device exists. |
+ void UpdateServiceData( |
+ const dbus::ObjectPath& object_path, |
+ const std::unordered_map<std::string, std::vector<uint8_t>>& |
+ service_data); |
+ |
static const char kTestPinCode[]; |
static const int kTestPassKey; |