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

Side by Side Diff: device/bluetooth/bluetooth_classic_win.h

Issue 1668233004: Refactor bluetooth_task_manager_win to prepare for new Bluetooth test fixture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 10 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/bluetooth.gyp ('k') | device/bluetooth/bluetooth_classic_win.cc » ('j') | 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 2016 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_BLUETOOTH_CLASSIC_WIN_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_WIN_H_
7
8 #include "device/bluetooth/bluetooth_export.h"
9 #include "device/bluetooth/bluetooth_init_win.h"
10
11 namespace device {
12 namespace win {
13
14 // Wraps Windows APIs used to access local Bluetooth radios and classic
15 // Bluetooth devices, providing an interface that can be replaced with fakes in
16 // tests.
17 class DEVICE_BLUETOOTH_EXPORT BluetoothClassicWrapper {
18 public:
19 static BluetoothClassicWrapper* GetInstance();
20 static void DeleteInstance();
21 static void SetInstanceForTest(BluetoothClassicWrapper* instance);
22
23 virtual HBLUETOOTH_RADIO_FIND FindFirstRadio(
24 const BLUETOOTH_FIND_RADIO_PARAMS* params,
25 HANDLE* out_handle);
26 virtual DWORD GetRadioInfo(HANDLE handle,
27 PBLUETOOTH_RADIO_INFO out_radio_info);
28 virtual BOOL FindRadioClose(HBLUETOOTH_RADIO_FIND handle);
29 virtual BOOL IsConnectable(HANDLE handle);
30 virtual HBLUETOOTH_DEVICE_FIND FindFirstDevice(
31 const BLUETOOTH_DEVICE_SEARCH_PARAMS* params,
32 BLUETOOTH_DEVICE_INFO* out_device_info);
33 virtual BOOL FindNextDevice(HBLUETOOTH_DEVICE_FIND handle,
34 BLUETOOTH_DEVICE_INFO* out_device_info);
35 virtual BOOL FindDeviceClose(HBLUETOOTH_DEVICE_FIND handle);
36 virtual BOOL EnableDiscovery(HANDLE handle, BOOL is_enable);
37 virtual BOOL EnableIncomingConnections(HANDLE handle, BOOL is_enable);
38
39 protected:
40 BluetoothClassicWrapper();
41 virtual ~BluetoothClassicWrapper();
42 };
43
44 } // namespace win
45 } // namespace device
46
47 #endif // DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_WIN_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth.gyp ('k') | device/bluetooth/bluetooth_classic_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698