| Index: device/bluetooth/test/bluetooth_test_mac.h
|
| diff --git a/device/bluetooth/test/bluetooth_test_mac.h b/device/bluetooth/test/bluetooth_test_mac.h
|
| index f725bba35df3a9f24414ae7c98f3af53d7acef39..a323131c18dcba10b1b17f33fc97059cc0731b38 100644
|
| --- a/device/bluetooth/test/bluetooth_test_mac.h
|
| +++ b/device/bluetooth/test/bluetooth_test_mac.h
|
| @@ -10,6 +10,12 @@
|
| #include "base/test/test_simple_task_runner.h"
|
| #include "device/bluetooth/test/bluetooth_test.h"
|
|
|
| +#if __OBJC__
|
| +@class MockCBPeripheral;
|
| +#else // __OBJC__
|
| +class MockCBPeripheral;
|
| +#endif // __OBJC__
|
| +
|
| namespace device {
|
|
|
| class BluetoothAdapterMac;
|
| @@ -41,6 +47,12 @@ class BluetoothTestMac : public BluetoothTestBase {
|
| BluetoothDevice* device,
|
| const std::vector<std::string>& uuids) override;
|
| void SimulateGattServiceRemoved(BluetoothRemoteGattService* service) override;
|
| + void SimulateGattCharacteristic(BluetoothRemoteGattService* service,
|
| + const std::string& uuid,
|
| + int properties) override;
|
| + void SimulateGattCharacteristicRemoved(
|
| + BluetoothRemoteGattService* service,
|
| + BluetoothRemoteGattCharacteristic* characteristic) override;
|
|
|
| // Callback for the bluetooth central manager mock.
|
| void OnFakeBluetoothDeviceConnectGattCalled();
|
| @@ -52,6 +64,10 @@ class BluetoothTestMac : public BluetoothTestBase {
|
| protected:
|
| class ScopedMockCentralManager;
|
|
|
| + // Returns MockCBPeripheral from BluetoothRemoteGattService.
|
| + MockCBPeripheral* GetMockCBPeripheral(
|
| + BluetoothRemoteGattService* service) const;
|
| +
|
| // Utility function for finding CBUUIDs with relatively nice SHA256 hashes.
|
| std::string FindCBUUIDForHashTarget();
|
|
|
|
|