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

Side by Side Diff: device/bluetooth/bluetooth_classic_win_fake.cc

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: 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
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 #include "device/bluetooth/bluetooth_classic_win_fake.h"
6
7 #include "base/logging.h"
8
9 namespace device {
10 namespace win {
11
12 BluetoothClassicWrapperFake::BluetoothClassicWrapperFake() {}
13 BluetoothClassicWrapperFake::~BluetoothClassicWrapperFake() {}
14
15 HBLUETOOTH_RADIO_FIND BluetoothClassicWrapperFake::BTFindFirstRadio(
16 const BLUETOOTH_FIND_RADIO_PARAMS* params,
17 HANDLE* out_handle) {
18 NOTIMPLEMENTED();
19 return NULL;
20 }
21
22 DWORD BluetoothClassicWrapperFake::BTGetRadioInfo(
23 HANDLE handle,
24 PBLUETOOTH_RADIO_INFO out_radio_info) {
25 return ERROR_SUCCESS;
26 }
27
28 BOOL BluetoothClassicWrapperFake::BTFindRadioClose(
29 HBLUETOOTH_RADIO_FIND handle) {
30 return TRUE;
31 }
32
33 BOOL BluetoothClassicWrapperFake::BTIsConnectable(HANDLE handle) {
34 return TRUE;
35 }
36
37 HBLUETOOTH_DEVICE_FIND BluetoothClassicWrapperFake::BTFindFirstDevice(
38 const BLUETOOTH_DEVICE_SEARCH_PARAMS* params,
39 BLUETOOTH_DEVICE_INFO* out_device_info) {
40 return NULL;
41 }
42
43 BOOL BluetoothClassicWrapperFake::BTFindNextDevice(
44 HBLUETOOTH_DEVICE_FIND handle,
45 BLUETOOTH_DEVICE_INFO* out_device_info) {
46 return TRUE;
47 }
48
49 BOOL BluetoothClassicWrapperFake::BTFindDeviceClose(
50 HBLUETOOTH_DEVICE_FIND handle) {
51 return TRUE;
52 }
53
54 BOOL BluetoothClassicWrapperFake::BTEnableDiscovery(HANDLE handle,
55 BOOL is_enable) {
56 return TRUE;
57 }
58
59 BOOL BluetoothClassicWrapperFake::BTEnableIncomingConnections(HANDLE handle,
60 BOOL is_enable) {
61 return TRUE;
62 }
63 } // namespace device
64 } // namespace win
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698