diff options
author | smbarber <smbarber@chromium.org> | 2016-03-22 12:36:51 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-22 19:39:21 +0000 |
commit | 5593ae4f2f4792363f4a0cbcc968b80529fd3a1e (patch) | |
tree | 36414a6c5454d3596bde04c87d5d3181fe6fdfac /device/bluetooth/dbus/fake_bluetooth_adapter_client.h | |
parent | 813d605e717ff246ea1bf65e11db6fbb4cf8679e (diff) | |
download | chromium_src-5593ae4f2f4792363f4a0cbcc968b80529fd3a1e.zip chromium_src-5593ae4f2f4792363f4a0cbcc968b80529fd3a1e.tar.gz chromium_src-5593ae4f2f4792363f4a0cbcc968b80529fd3a1e.tar.bz2 |
Add GetUUIDs to device::BluetoothAdapter for BlueZ
Add GetUUIDs to device::BluetoothAdapter so that a client
can get the list of services registered on the adapter. This
can include standard profiles (e.g. A2DP) or UUIDs associated
with listening RFCOMM or L2CAP sockets.
BUG=b:26275233
R=rkc@chromium.org, scheib@chromium.org
Review URL: https://codereview.chromium.org/1781143002
Cr-Commit-Position: refs/heads/master@{#382641}
Diffstat (limited to 'device/bluetooth/dbus/fake_bluetooth_adapter_client.h')
-rw-r--r-- | device/bluetooth/dbus/fake_bluetooth_adapter_client.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/device/bluetooth/dbus/fake_bluetooth_adapter_client.h b/device/bluetooth/dbus/fake_bluetooth_adapter_client.h index 0dced89..702bf23 100644 --- a/device/bluetooth/dbus/fake_bluetooth_adapter_client.h +++ b/device/bluetooth/dbus/fake_bluetooth_adapter_client.h @@ -5,6 +5,7 @@ #ifndef DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_ #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_ +#include <string> #include <vector> #include "base/bind.h" @@ -72,6 +73,10 @@ class DEVICE_BLUETOOTH_EXPORT FakeBluetoothAdapterClient void SetVisible(bool visible); void SetSecondVisible(bool visible); + // Set adapter UUIDs + void SetUUIDs(const std::vector<std::string>& uuids); + void SetSecondUUIDs(const std::vector<std::string>& uuids); + // Object path, name and addresses of the adapters we emulate. static const char kAdapterPath[]; static const char kAdapterName[]; |