| Index: device/bluetooth/test/mock_bluetooth_cbservice_mac.h
|
| diff --git a/device/bluetooth/test/mock_bluetooth_cbservice_mac.h b/device/bluetooth/test/mock_bluetooth_cbservice_mac.h
|
| index 553370649f751d3a03c222038def7f1a09e3f745..fd0867dd810fa79bbdbb3494ff6b9bba15bdc6c0 100644
|
| --- a/device/bluetooth/test/mock_bluetooth_cbservice_mac.h
|
| +++ b/device/bluetooth/test/mock_bluetooth_cbservice_mac.h
|
| @@ -10,6 +10,8 @@
|
|
|
| #import <CoreBluetooth/CoreBluetooth.h>
|
|
|
| +@class MockCBCharacteristic;
|
| +
|
| // This class mocks the behavior of a CBService.
|
| @interface MockCBService : NSObject
|
|
|
| @@ -17,7 +19,13 @@
|
| @property(readonly, nonatomic) BOOL isPrimary;
|
| @property(readonly, nonatomic) CBService* service;
|
|
|
| -- (instancetype)initWithCBUUID:(CBUUID*)uuid primary:(BOOL)isPrimary;
|
| +- (instancetype)initWithPeripheral:(CBPeripheral*)peripheral
|
| + CBUUID:(CBUUID*)uuid
|
| + primary:(BOOL)isPrimary;
|
| +
|
| +// Creates and adds a mock characteristic.
|
| +- (void)addCharacteristicWithUUID:(CBUUID*)cb_uuid properties:(int)properties;
|
| +- (void)removeCharacteristicMock:(MockCBCharacteristic*)characteristic_mock;
|
|
|
| @end
|
|
|
|
|