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

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

Issue 2867713008: bluetooth: Implement known_service_uuids for Peripherals. (Closed)
Patch Set: Fix test 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
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..cc9dad855e563977337f0777b9a5f40172e14d80 100644
--- a/device/bluetooth/test/fake_peripheral.h
+++ b/device/bluetooth/test/fake_peripheral.h
@@ -27,6 +27,9 @@ 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.
scheib 2017/05/09 23:33:54 ... UUIDs that are returned by GetUUIDs.
ortuno 2017/05/10 06:32:50 Done.
+ void SetServiceUUIDs(UUIDSet service_uuids);
+
// BluetoothDevice overrides:
uint32_t GetBluetoothClass() const override;
#if defined(OS_CHROMEOS) || defined(OS_LINUX)
@@ -80,6 +83,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);
};

Powered by Google App Engine
This is Rietveld 408576698