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

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: comment fixes 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
« no previous file with comments | « device/bluetooth/test/mock_bluetooth_central_manager_mac.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 @synthesize delegate = _delegate;
12
13 - (instancetype)init {
14 _scanForPeripheralsCallCount = 0;
15 _stopScanCallCount = 0;
16 return self;
17 }
18
19 - (instancetype)initWithDelegate:(id<CBCentralManagerDelegate>)delegate
20 queue:(dispatch_queue_t)queue
21 options:(NSDictionary*)options {
22 return [self init];
23 }
24
25 - (CBCentralManagerState)state {
26 return CBCentralManagerStatePoweredOn;
27 }
28
29 - (void)scanForPeripheralsWithServices:(NSArray*)serviceUUIDs
30 options:(NSDictionary*)options {
31 _scanForPeripheralsCallCount++;
32 }
33
34 - (void)stopScan {
35 _stopScanCallCount++;
36 }
37
38 @end
OLDNEW
« no previous file with comments | « device/bluetooth/test/mock_bluetooth_central_manager_mac.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698