| Index: device/bluetooth/test/mock_bluetooth_central_manager_mac.mm
|
| diff --git a/device/bluetooth/test/mock_bluetooth_central_manager_mac.mm b/device/bluetooth/test/mock_bluetooth_central_manager_mac.mm
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0b0f10f0e565d6c058407a2a37f12466b8ae86f9
|
| --- /dev/null
|
| +++ b/device/bluetooth/test/mock_bluetooth_central_manager_mac.mm
|
| @@ -0,0 +1,38 @@
|
| +// 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.
|
| +
|
| +#import "mock_bluetooth_central_manager_mac.h"
|
| +
|
| +@implementation MockCentralManager
|
| +
|
| +@synthesize scanForPeripheralsCallCount = _scanForPeripheralsCallCount;
|
| +@synthesize stopScanCallCount = _stopScanCallCount;
|
| +@synthesize delegate = _delegate;
|
| +
|
| +- (instancetype)init {
|
| + _scanForPeripheralsCallCount = 0;
|
| + _stopScanCallCount = 0;
|
| + return self;
|
| +}
|
| +
|
| +- (instancetype)initWithDelegate:(id<CBCentralManagerDelegate>)delegate
|
| + queue:(dispatch_queue_t)queue
|
| + options:(NSDictionary*)options {
|
| + return [self init];
|
| +}
|
| +
|
| +- (CBCentralManagerState)state {
|
| + return CBCentralManagerStatePoweredOn;
|
| +}
|
| +
|
| +- (void)scanForPeripheralsWithServices:(NSArray*)serviceUUIDs
|
| + options:(NSDictionary*)options {
|
| + _scanForPeripheralsCallCount++;
|
| +}
|
| +
|
| +- (void)stopScan {
|
| + _stopScanCallCount++;
|
| +}
|
| +
|
| +@end
|
|
|