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

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

Issue 1676073002: Implement BluetoothLowEnergyWrapperFake for 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "device/bluetooth/bluetooth_classic_win.h" 5 #include "device/bluetooth/bluetooth_classic_win.h"
6 6
7 namespace { 7 namespace {
8 static device::win::BluetoothClassicWrapper* g_instance_ = nullptr; 8 static device::win::BluetoothClassicWrapper* g_instance_ = nullptr;
9 } // namespace 9 } // namespace
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 BOOL BluetoothClassicWrapper::EnableDiscovery(HANDLE handle, BOOL is_enable) { 80 BOOL BluetoothClassicWrapper::EnableDiscovery(HANDLE handle, BOOL is_enable) {
81 return BluetoothEnableDiscovery(handle, is_enable); 81 return BluetoothEnableDiscovery(handle, is_enable);
82 } 82 }
83 83
84 BOOL BluetoothClassicWrapper::EnableIncomingConnections(HANDLE handle, 84 BOOL BluetoothClassicWrapper::EnableIncomingConnections(HANDLE handle,
85 BOOL is_enable) { 85 BOOL is_enable) {
86 return BluetoothEnableIncomingConnections(handle, is_enable); 86 return BluetoothEnableIncomingConnections(handle, is_enable);
87 } 87 }
88 88
89 DWORD BluetoothClassicWrapper::LastError() {
90 return GetLastError();
91 }
92
89 } // namespace win 93 } // namespace win
90 } // namespace device 94 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698