QUIC - cleanup changes to sync chromium tree with internal source.
[chromium-blink-merge.git] / device / bluetooth / test / mock_bluetooth_central_manager_mac.mm
blobca6164c8017650b37ca6a4633b7b925fcd0a1640
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;
12 @synthesize state = _state;
14 - (instancetype)init {
15   _scanForPeripheralsCallCount = 0;
16   _stopScanCallCount = 0;
17   return self;
20 - (instancetype)initWithDelegate:(id<CBCentralManagerDelegate>)delegate
21                            queue:(dispatch_queue_t)queue
22                          options:(NSDictionary*)options {
23   return [self init];
26 - (void)scanForPeripheralsWithServices:(NSArray*)serviceUUIDs
27                                options:(NSDictionary*)options {
28   _scanForPeripheralsCallCount++;
31 - (void)stopScan {
32   _stopScanCallCount++;
35 @end