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

Unified Diff: device/bluetooth/test/fake_peripheral.h

Issue 2867713008: bluetooth: Implement known_service_uuids for Peripherals. (Closed)
Patch Set: rebase Created 3 years, 7 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 | « device/bluetooth/test/fake_central.cc ('k') | device/bluetooth/test/fake_peripheral.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/test/fake_peripheral.h
diff --git a/device/bluetooth/test/fake_peripheral.h b/device/bluetooth/test/fake_peripheral.h
index f7aaa88cb3e372413f0c472a273d464f2a57f256..56c17b2a1efd6f74e5f074963ff2d2d3ea9ee9d8 100644
--- a/device/bluetooth/test/fake_peripheral.h
+++ b/device/bluetooth/test/fake_peripheral.h
@@ -27,6 +27,10 @@ class FakePeripheral : public device::BluetoothDevice {
// Set it to indicate if the Peripheral is connected or not.
void SetGattConnected(bool gatt_connected);
+ // Updates the peripheral's UUIDs that are returned by
+ // BluetoothDevice::GetUUIDs().
+ void SetServiceUUIDs(UUIDSet service_uuids);
+
// BluetoothDevice overrides:
uint32_t GetBluetoothClass() const override;
#if defined(OS_CHROMEOS) || defined(OS_LINUX)
@@ -80,6 +84,7 @@ class FakePeripheral : public device::BluetoothDevice {
const std::string address_;
base::Optional<std::string> name_;
bool gatt_connected_;
+ UUIDSet service_uuids_;
DISALLOW_COPY_AND_ASSIGN(FakePeripheral);
};
« no previous file with comments | « device/bluetooth/test/fake_central.cc ('k') | device/bluetooth/test/fake_peripheral.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698