| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 void SimulateGattCharacteristicWrite( | 55 void SimulateGattCharacteristicWrite( |
| 56 BluetoothGattCharacteristic* characteristic) override; | 56 BluetoothGattCharacteristic* characteristic) override; |
| 57 void SimulateGattCharacteristicWriteError( | 57 void SimulateGattCharacteristicWriteError( |
| 58 BluetoothGattCharacteristic* characteristic, | 58 BluetoothGattCharacteristic* characteristic, |
| 59 BluetoothGattService::GattErrorCode error_code) override; | 59 BluetoothGattService::GattErrorCode error_code) override; |
| 60 void DeleteDevice(BluetoothDevice* device) override; | 60 void DeleteDevice(BluetoothDevice* device) override; |
| 61 void SimulateGattDescriptor(BluetoothGattCharacteristic* characteristic, | 61 void SimulateGattDescriptor(BluetoothGattCharacteristic* characteristic, |
| 62 const std::string& uuid) override; | 62 const std::string& uuid) override; |
| 63 void SimulateGattNotifySessionStarted( | 63 void SimulateGattNotifySessionStarted( |
| 64 BluetoothGattCharacteristic* characteristic) override; | 64 BluetoothGattCharacteristic* characteristic) override; |
| 65 void SimulateGattCharacteristicSetNotifyWillFailAsynchronouslyOnce( |
| 66 BluetoothGattCharacteristic* characteristic) override; |
| 65 void SimulateGattCharacteristicChanged( | 67 void SimulateGattCharacteristicChanged( |
| 66 BluetoothGattCharacteristic* characteristic, | 68 BluetoothGattCharacteristic* characteristic, |
| 67 const std::vector<uint8_t>& value) override; | 69 const std::vector<uint8_t>& value) override; |
| 68 | 70 |
| 69 // win::BluetoothLowEnergyWrapperFake::Observer overrides. | 71 // win::BluetoothLowEnergyWrapperFake::Observer overrides. |
| 70 void OnReadGattCharacteristicValue() override; | 72 void OnReadGattCharacteristicValue() override; |
| 71 void OnWriteGattCharacteristicValue( | 73 void OnWriteGattCharacteristicValue( |
| 72 const PBTH_LE_GATT_CHARACTERISTIC_VALUE value) override; | 74 const PBTH_LE_GATT_CHARACTERISTIC_VALUE value) override; |
| 73 void OnStartCharacteristicNotification() override; | 75 void OnStartCharacteristicNotification() override; |
| 74 | 76 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 94 void ForceRefreshDevice(); | 96 void ForceRefreshDevice(); |
| 95 void FinishPendingTasks(); | 97 void FinishPendingTasks(); |
| 96 }; | 98 }; |
| 97 | 99 |
| 98 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). | 100 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). |
| 99 typedef BluetoothTestWin BluetoothTest; | 101 typedef BluetoothTestWin BluetoothTest; |
| 100 | 102 |
| 101 } // namespace device | 103 } // namespace device |
| 102 | 104 |
| 103 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_ | 105 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_ |
| OLD | NEW |