OLD | NEW |
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 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_WIN_FAKE_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_WIN_FAKE_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_WIN_FAKE_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_WIN_FAKE_H_ |
7 | 7 |
8 #include "device/bluetooth/bluetooth_classic_win.h" | 8 #include "device/bluetooth/bluetooth_classic_win.h" |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 BOOL FindRadioClose(HBLUETOOTH_RADIO_FIND handle) override; | 32 BOOL FindRadioClose(HBLUETOOTH_RADIO_FIND handle) override; |
33 BOOL IsConnectable(HANDLE handle) override; | 33 BOOL IsConnectable(HANDLE handle) override; |
34 HBLUETOOTH_DEVICE_FIND FindFirstDevice( | 34 HBLUETOOTH_DEVICE_FIND FindFirstDevice( |
35 const BLUETOOTH_DEVICE_SEARCH_PARAMS* params, | 35 const BLUETOOTH_DEVICE_SEARCH_PARAMS* params, |
36 BLUETOOTH_DEVICE_INFO* out_device_info) override; | 36 BLUETOOTH_DEVICE_INFO* out_device_info) override; |
37 BOOL FindNextDevice(HBLUETOOTH_DEVICE_FIND handle, | 37 BOOL FindNextDevice(HBLUETOOTH_DEVICE_FIND handle, |
38 BLUETOOTH_DEVICE_INFO* out_device_info) override; | 38 BLUETOOTH_DEVICE_INFO* out_device_info) override; |
39 BOOL FindDeviceClose(HBLUETOOTH_DEVICE_FIND handle) override; | 39 BOOL FindDeviceClose(HBLUETOOTH_DEVICE_FIND handle) override; |
40 BOOL EnableDiscovery(HANDLE handle, BOOL is_enable) override; | 40 BOOL EnableDiscovery(HANDLE handle, BOOL is_enable) override; |
41 BOOL EnableIncomingConnections(HANDLE handle, BOOL is_enable) override; | 41 BOOL EnableIncomingConnections(HANDLE handle, BOOL is_enable) override; |
| 42 DWORD LastError() override; |
42 | 43 |
43 BluetoothRadio* SimulateARadio(base::string16 name, | 44 BluetoothRadio* SimulateARadio(base::string16 name, |
44 BLUETOOTH_ADDRESS address); | 45 BLUETOOTH_ADDRESS address); |
45 | 46 |
46 private: | 47 private: |
47 scoped_ptr<BluetoothRadio> simulated_radios_; | 48 scoped_ptr<BluetoothRadio> simulated_radios_; |
| 49 DWORD last_error_; |
48 }; | 50 }; |
49 | 51 |
50 } // namespace device | 52 } // namespace device |
51 } // namespace win | 53 } // namespace win |
52 | 54 |
53 #endif // DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_WIN_FAKE_H_ | 55 #endif // DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_WIN_FAKE_H_ |
OLD | NEW |