| 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" |
| 11 #include "base/test/test_pending_task.h" | 11 #include "base/test/test_pending_task.h" |
| 12 #include "base/test/test_simple_task_runner.h" | 12 #include "base/test/test_simple_task_runner.h" |
| 13 #include "device/bluetooth/bluetooth_classic_win_fake.h" | 13 #include "device/bluetooth/bluetooth_classic_win_fake.h" |
| 14 #include "device/bluetooth/bluetooth_low_energy_win_fake.h" | 14 #include "device/bluetooth/bluetooth_low_energy_win_fake.h" |
| 15 #include "device/bluetooth/bluetooth_task_manager_win.h" | 15 #include "device/bluetooth/bluetooth_task_manager_win.h" |
| 16 | 16 |
| 17 namespace device { | 17 namespace device { |
| 18 class BluetoothAdapterWin; | 18 class BluetoothAdapterWin; |
| 19 class BluetoothRemoteGattCharacteristicWin; | |
| 20 | 19 |
| 21 // Windows implementation of BluetoothTestBase. | 20 // Windows implementation of BluetoothTestBase. |
| 22 class BluetoothTestWin : public BluetoothTestBase, | 21 class BluetoothTestWin : public BluetoothTestBase, |
| 23 public win::BluetoothLowEnergyWrapperFake::Observer { | 22 public win::BluetoothLowEnergyWrapperFake::Observer { |
| 24 public: | 23 public: |
| 25 BluetoothTestWin(); | 24 BluetoothTestWin(); |
| 26 ~BluetoothTestWin() override; | 25 ~BluetoothTestWin() override; |
| 27 | 26 |
| 28 // BluetoothTestBase overrides | 27 // BluetoothTestBase overrides |
| 29 bool PlatformSupportsLowEnergy() override; | 28 bool PlatformSupportsLowEnergy() override; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 void ForceRefreshDevice(); | 95 void ForceRefreshDevice(); |
| 97 void FinishPendingTasks(); | 96 void FinishPendingTasks(); |
| 98 }; | 97 }; |
| 99 | 98 |
| 100 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). | 99 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). |
| 101 typedef BluetoothTestWin BluetoothTest; | 100 typedef BluetoothTestWin BluetoothTest; |
| 102 | 101 |
| 103 } // namespace device | 102 } // namespace device |
| 104 | 103 |
| 105 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_ | 104 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_ |
| OLD | NEW |