| Index: device/bluetooth/test/mock_bluetooth_central_manager_mac.h
|
| diff --git a/device/bluetooth/test/mock_bluetooth_central_manager_mac.h b/device/bluetooth/test/mock_bluetooth_central_manager_mac.h
|
| index 5bc02457f53be705fc48a2b785178cdce2f844e6..aee59e3953fb75090cb9e8136fb6b0723d06456b 100644
|
| --- a/device/bluetooth/test/mock_bluetooth_central_manager_mac.h
|
| +++ b/device/bluetooth/test/mock_bluetooth_central_manager_mac.h
|
| @@ -23,6 +23,7 @@
|
| @property(nonatomic, assign) id<CBCentralManagerDelegate> delegate;
|
| @property(nonatomic, assign) CBCentralManagerState state;
|
| @property(nonatomic, assign) device::BluetoothTestMac* bluetoothTestMac;
|
| +@property(nonatomic, readonly) NSArray* retrieveConnectedPeripheralServiceUUIDs;
|
|
|
| - (void)scanForPeripheralsWithServices:(NSArray*)serviceUUIDs
|
| options:(NSDictionary*)options;
|
| @@ -32,6 +33,15 @@
|
| - (void)connectPeripheral:(CBPeripheral*)peripheral
|
| options:(NSDictionary*)options;
|
|
|
| +// Simulates a peripheral being used by another application. This peripheral
|
| +// will be returned by -[MockCentralManager
|
| +// retrieveConnectedPeripheralsWithServices:].
|
| +- (void)setConnectedMockPeripheral:(CBPeripheral*)peripheral
|
| + withServiceUUIDs:(NSSet*)serviceUUIDs;
|
| +
|
| +// Reset -[MockCentralManager retrieveConnectedPeripheralServiceUUIDs].
|
| +- (void)resetRetrieveConnectedPeripheralServiceUUIDs;
|
| +
|
| @end
|
|
|
| #endif // DEVICE_BLUETOOTH_MOCK_BLUETOOTH_CENTRAL_MANAGER_MAC_H_
|
|
|