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

Side by Side Diff: device/bluetooth/test/mock_bluetooth_central_manager.h

Issue 1165053003: Adding support for Low Energy device discovery to BluetoothAdapterMac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 #ifndef DEVICE_BLUETOOTH_MOCK_BLUETOOTH_CENTRAL_MANAGER_H_
6 #define DEVICE_BLUETOOTH_MOCK_BLUETOOTH_CENTRAL_MANAGER_H_
7
8 #if defined(OS_IOS)
9 #import <CoreBluetooth/CoreBluetooth.h>
10 #else
11 #import <IOBluetooth/IOBluetooth.h>
12 #endif
13
14 @interface MockCentralManager : CBCentralManager
15
16 @property(nonatomic, assign) BOOL scanForPeripheralsWasCalled;
17 @property(nonatomic, assign) BOOL stopScanWasCalled;
18
19 // Designated initializer
20 - (instancetype)init;
21
22 - (instancetype)initWithDelegate:(id<CBCentralManagerDelegate>)delegate
23 queue:(dispatch_queue_t)queue
24 options:(NSDictionary*)options;
25
26 - (CBCentralManagerState)state;
27
28 - (void)scanForPeripheralsWithServices:(NSArray*)serviceUUIDs
29 options:(NSDictionary*)options;
30
31 - (void)stopScan;
32
33 @end
34
35 #endif // DEVICE_BLUETOOTH_MOCK_BLUETOOTH_CENTRAL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698