| 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 #import "mock_bluetooth_central_manager_mac.h" | 
|  | 6 | 
|  | 7 @implementation MockCentralManager | 
|  | 8 | 
|  | 9 @synthesize scanForPeripheralsCallCount = _scanForPeripheralsCallCount; | 
|  | 10 @synthesize stopScanCallCount = _stopScanCallCount; | 
|  | 11 | 
|  | 12 - (instancetype)init { | 
|  | 13   _scanForPeripheralsCallCount = 0; | 
|  | 14   _stopScanCallCount = 0; | 
|  | 15   return self; | 
|  | 16 } | 
|  | 17 | 
|  | 18 - (instancetype)initWithDelegate:(id<CBCentralManagerDelegate>)delegate | 
|  | 19                            queue:(dispatch_queue_t)queue | 
|  | 20                          options:(NSDictionary*)options { | 
|  | 21   return [self init]; | 
|  | 22 } | 
|  | 23 | 
|  | 24 - (CBCentralManagerState)state { | 
|  | 25   return CBCentralManagerStatePoweredOn; | 
|  | 26 } | 
|  | 27 | 
|  | 28 - (void)scanForPeripheralsWithServices:(NSArray*)serviceUUIDs | 
|  | 29                                options:(NSDictionary*)options { | 
|  | 30   _scanForPeripheralsCallCount++; | 
|  | 31 } | 
|  | 32 | 
|  | 33 - (void)stopScan { | 
|  | 34   _stopScanCallCount++; | 
|  | 35 } | 
|  | 36 | 
|  | 37 @end | 
| OLD | NEW | 
|---|