Chromium Code Reviews| 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 |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d2f30e2e801d084040e087e24349a3e1eb8216bb |
| --- /dev/null |
| +++ b/device/bluetooth/test/mock_bluetooth_central_manager_mac.h |
| @@ -0,0 +1,37 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef DEVICE_BLUETOOTH_MOCK_BLUETOOTH_CENTRAL_MANAGER_MAC_H_ |
| +#define DEVICE_BLUETOOTH_MOCK_BLUETOOTH_CENTRAL_MANAGER_MAC_H_ |
| + |
| +#include "base/mac/sdk_forward_declarations.h" |
| + |
| +#if defined(OS_IOS) |
| +#import <CoreBluetooth/CoreBluetooth.h> |
| +#else |
| +#import <IOBluetooth/IOBluetooth.h> |
| +#endif |
| + |
| +@interface MockCentralManager : NSObject |
|
scheib
2015/06/17 16:55:08
// Mocks a CBCentralManager
krstnmnlsn
2015/06/17 20:18:41
Done.
|
| + |
| +@property(nonatomic, assign) BOOL scanForPeripheralsCallCount; |
| +@property(nonatomic, assign) BOOL stopScanCallCount; |
| + |
| +// Designated initializer |
| +- (instancetype)init; |
| + |
| +- (instancetype)initWithDelegate:(id<CBCentralManagerDelegate>)delegate |
| + queue:(dispatch_queue_t)queue |
| + options:(NSDictionary*)options; |
| + |
| +- (CBCentralManagerState)state; |
| + |
| +- (void)scanForPeripheralsWithServices:(NSArray*)serviceUUIDs |
| + options:(NSDictionary*)options; |
| + |
| +- (void)stopScan; |
| + |
| +@end |
| + |
| +#endif // DEVICE_BLUETOOTH_MOCK_BLUETOOTH_CENTRAL_MANAGER_MAC_H_ |