Windows precompiled header support in GN.
[chromium-blink-merge.git] / device / bluetooth / test / mock_bluetooth_central_manager_mac.mm
blob0b0f10f0e565d6c058407a2a37f12466b8ae86f9
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.
5 #import "mock_bluetooth_central_manager_mac.h"
7 @implementation MockCentralManager
9 @synthesize scanForPeripheralsCallCount = _scanForPeripheralsCallCount;
10 @synthesize stopScanCallCount = _stopScanCallCount;
11 @synthesize delegate = _delegate;
13 - (instancetype)init {
14   _scanForPeripheralsCallCount = 0;
15   _stopScanCallCount = 0;
16   return self;
19 - (instancetype)initWithDelegate:(id<CBCentralManagerDelegate>)delegate
20                            queue:(dispatch_queue_t)queue
21                          options:(NSDictionary*)options {
22   return [self init];
25 - (CBCentralManagerState)state {
26   return CBCentralManagerStatePoweredOn;
29 - (void)scanForPeripheralsWithServices:(NSArray*)serviceUUIDs
30                                options:(NSDictionary*)options {
31   _scanForPeripheralsCallCount++;
34 - (void)stopScan {
35   _stopScanCallCount++;
38 @end