diff options
Diffstat (limited to 'device/bluetooth/test/mock_bluetooth_central_manager_mac.h')
-rw-r--r-- | device/bluetooth/test/mock_bluetooth_central_manager_mac.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/device/bluetooth/test/mock_bluetooth_central_manager_mac.h b/device/bluetooth/test/mock_bluetooth_central_manager_mac.h index 535d72d2..5bc0245 100644 --- a/device/bluetooth/test/mock_bluetooth_central_manager_mac.h +++ b/device/bluetooth/test/mock_bluetooth_central_manager_mac.h @@ -7,12 +7,9 @@ #include "base/mac/sdk_forward_declarations.h" #include "build/build_config.h" +#include "device/bluetooth/test/bluetooth_test_mac.h" -#if defined(OS_IOS) #import <CoreBluetooth/CoreBluetooth.h> -#else -#import <IOBluetooth/IOBluetooth.h> -#endif // Class to mock a CBCentralManager. Cannot use a OCMockObject because mocking // the 'state' property gives a compiler warning when mock_central_manager is of @@ -25,12 +22,16 @@ @property(nonatomic, assign) NSInteger stopScanCallCount; @property(nonatomic, assign) id<CBCentralManagerDelegate> delegate; @property(nonatomic, assign) CBCentralManagerState state; +@property(nonatomic, assign) device::BluetoothTestMac* bluetoothTestMac; - (void)scanForPeripheralsWithServices:(NSArray*)serviceUUIDs options:(NSDictionary*)options; - (void)stopScan; +- (void)connectPeripheral:(CBPeripheral*)peripheral + options:(NSDictionary*)options; + @end #endif // DEVICE_BLUETOOTH_MOCK_BLUETOOTH_CENTRAL_MANAGER_MAC_H_ |