| 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_TEST_BLUETOOTH_TEST_WIN_H_ | 5 #ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_ |
| 6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_ | 6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_ |
| 7 | 7 |
| 8 #include "device/bluetooth/test/bluetooth_test.h" | 8 #include "device/bluetooth/test/bluetooth_test.h" |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 ~BluetoothTestWin() override; | 23 ~BluetoothTestWin() override; |
| 24 | 24 |
| 25 // BluetoothTestBase overrides | 25 // BluetoothTestBase overrides |
| 26 bool PlatformSupportsLowEnergy() override; | 26 bool PlatformSupportsLowEnergy() override; |
| 27 void InitWithDefaultAdapter() override; | 27 void InitWithDefaultAdapter() override; |
| 28 void InitWithoutDefaultAdapter() override; | 28 void InitWithoutDefaultAdapter() override; |
| 29 void InitWithFakeAdapter() override; | 29 void InitWithFakeAdapter() override; |
| 30 bool DenyPermission() override; | 30 bool DenyPermission() override; |
| 31 void StartLowEnergyDiscoverySession() override; | 31 void StartLowEnergyDiscoverySession() override; |
| 32 BluetoothDevice* DiscoverLowEnergyDevice(int device_ordinal) override; | 32 BluetoothDevice* DiscoverLowEnergyDevice(int device_ordinal) override; |
| 33 void SimulateGattConnection(BluetoothDevice* device) override; |
| 34 void SimulateGattServicesDiscovered( |
| 35 BluetoothDevice* device, |
| 36 const std::vector<std::string>& uuids) override; |
| 33 | 37 |
| 34 private: | 38 private: |
| 35 scoped_refptr<base::TestSimpleTaskRunner> ui_task_runner_; | 39 scoped_refptr<base::TestSimpleTaskRunner> ui_task_runner_; |
| 36 scoped_refptr<base::TestSimpleTaskRunner> bluetooth_task_runner_; | 40 scoped_refptr<base::TestSimpleTaskRunner> bluetooth_task_runner_; |
| 37 BluetoothAdapterWin* adapter_win_; | 41 BluetoothAdapterWin* adapter_win_; |
| 38 | 42 |
| 39 win::BluetoothClassicWrapperFake* fake_bt_classic_wrapper_; | 43 win::BluetoothClassicWrapperFake* fake_bt_classic_wrapper_; |
| 40 win::BluetoothLowEnergyWrapperFake* fake_bt_le_wrapper_; | 44 win::BluetoothLowEnergyWrapperFake* fake_bt_le_wrapper_; |
| 41 | 45 |
| 42 void AdapterInitCallback(); | 46 void AdapterInitCallback(); |
| 43 }; | 47 }; |
| 44 | 48 |
| 45 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). | 49 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). |
| 46 typedef BluetoothTestWin BluetoothTest; | 50 typedef BluetoothTestWin BluetoothTest; |
| 47 | 51 |
| 48 } // namespace device | 52 } // namespace device |
| 49 | 53 |
| 50 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_ | 54 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_ |
| OLD | NEW |