| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef DEVICE_BLUETOOTH_MOCK_BLUETOOTH_CENTRAL_MANAGER_H_ |
| 6 #define DEVICE_BLUETOOTH_MOCK_BLUETOOTH_CENTRAL_MANAGER_H_ |
| 7 |
| 8 #if defined(OS_IOS) |
| 9 #import <CoreBluetooth/CoreBluetooth.h> |
| 10 #else |
| 11 #import <IOBluetooth/IOBluetooth.h> |
| 12 #endif |
| 13 |
| 14 @interface MockCentralManager : CBCentralManager |
| 15 |
| 16 @property(nonatomic, assign) BOOL scanForPeripheralsWasCalled; |
| 17 @property(nonatomic, assign) BOOL stopScanWasCalled; |
| 18 |
| 19 // Designated initializer |
| 20 - (instancetype)init; |
| 21 |
| 22 - (instancetype)initWithDelegate:(id<CBCentralManagerDelegate>)delegate |
| 23 queue:(dispatch_queue_t)queue |
| 24 options:(NSDictionary*)options; |
| 25 |
| 26 - (CBCentralManagerState)state; |
| 27 |
| 28 - (void)scanForPeripheralsWithServices:(NSArray*)serviceUUIDs |
| 29 options:(NSDictionary*)options; |
| 30 |
| 31 - (void)stopScan; |
| 32 |
| 33 @end |
| 34 |
| 35 #endif // DEVICE_BLUETOOTH_MOCK_BLUETOOTH_CENTRAL_MANAGER_H_ |
| OLD | NEW |