Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: device/bluetooth/test/mock_bluetooth_central_manager_mac.mm

Issue 1165053003: Adding support for Low Energy device discovery to BluetoothAdapterMac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removing references to CBCentralManager Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698