| Index: device/bluetooth/bluetooth_classic_win_fake.h
|
| diff --git a/device/bluetooth/bluetooth_classic_win_fake.h b/device/bluetooth/bluetooth_classic_win_fake.h
|
| index 9c1a1b91df8283135267bd551c2bc971684ad637..4627224ca97227a07bfe325e17af5bbe995714cd 100644
|
| --- a/device/bluetooth/bluetooth_classic_win_fake.h
|
| +++ b/device/bluetooth/bluetooth_classic_win_fake.h
|
| @@ -7,8 +7,17 @@
|
|
|
| #include "device/bluetooth/bluetooth_classic_win.h"
|
|
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "base/strings/string16.h"
|
| +
|
| namespace device {
|
| namespace win {
|
| +
|
| +struct BluetoothRadio {
|
| + BLUETOOTH_RADIO_INFO radio_info;
|
| + BOOL is_connectable;
|
| +};
|
| +
|
| // Fake implementation of BluetoothClassicWrapper. Used for BluetoothTestWin.
|
| class BluetoothClassicWrapperFake : public BluetoothClassicWrapper {
|
| public:
|
| @@ -30,6 +39,14 @@ class BluetoothClassicWrapperFake : public BluetoothClassicWrapper {
|
| BOOL FindDeviceClose(HBLUETOOTH_DEVICE_FIND handle) override;
|
| BOOL EnableDiscovery(HANDLE handle, BOOL is_enable) override;
|
| BOOL EnableIncomingConnections(HANDLE handle, BOOL is_enable) override;
|
| + DWORD LastError() override;
|
| +
|
| + BluetoothRadio* SimulateARadio(base::string16 name,
|
| + BLUETOOTH_ADDRESS address);
|
| +
|
| + private:
|
| + scoped_ptr<BluetoothRadio> simulated_radios_;
|
| + DWORD last_error_;
|
| };
|
|
|
| } // namespace device
|
|
|