| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_ANDROID_H_ | 5 #ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ |
| 6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ | 6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 int properties) override; | 45 int properties) override; |
| 46 void RememberCharacteristicForSubsequentAction( | 46 void RememberCharacteristicForSubsequentAction( |
| 47 BluetoothRemoteGattCharacteristic* characteristic) override; | 47 BluetoothRemoteGattCharacteristic* characteristic) override; |
| 48 void RememberCCCDescriptorForSubsequentAction( | 48 void RememberCCCDescriptorForSubsequentAction( |
| 49 BluetoothRemoteGattCharacteristic* characteristic) override; | 49 BluetoothRemoteGattCharacteristic* characteristic) override; |
| 50 void SimulateGattNotifySessionStarted( | 50 void SimulateGattNotifySessionStarted( |
| 51 BluetoothRemoteGattCharacteristic* characteristic) override; | 51 BluetoothRemoteGattCharacteristic* characteristic) override; |
| 52 void SimulateGattNotifySessionStartError( | 52 void SimulateGattNotifySessionStartError( |
| 53 BluetoothRemoteGattCharacteristic* characteristic, | 53 BluetoothRemoteGattCharacteristic* characteristic, |
| 54 BluetoothRemoteGattService::GattErrorCode error_code) override; | 54 BluetoothRemoteGattService::GattErrorCode error_code) override; |
| 55 void SimulateGattNotifySessionStopped( | |
| 56 BluetoothRemoteGattCharacteristic* characteristic) override; | |
| 57 void SimulateGattNotifySessionStopError( | |
| 58 BluetoothRemoteGattCharacteristic* characteristic, | |
| 59 BluetoothRemoteGattService::GattErrorCode error_code) override; | |
| 60 void SimulateGattCharacteristicSetNotifyWillFailSynchronouslyOnce( | 55 void SimulateGattCharacteristicSetNotifyWillFailSynchronouslyOnce( |
| 61 BluetoothRemoteGattCharacteristic* characteristic) override; | 56 BluetoothRemoteGattCharacteristic* characteristic) override; |
| 62 void SimulateGattCharacteristicChanged( | 57 void SimulateGattCharacteristicChanged( |
| 63 BluetoothRemoteGattCharacteristic* characteristic, | 58 BluetoothRemoteGattCharacteristic* characteristic, |
| 64 const std::vector<uint8_t>& value) override; | 59 const std::vector<uint8_t>& value) override; |
| 65 | 60 |
| 66 void SimulateGattCharacteristicRead( | 61 void SimulateGattCharacteristicRead( |
| 67 BluetoothRemoteGattCharacteristic* characteristic, | 62 BluetoothRemoteGattCharacteristic* characteristic, |
| 68 const std::vector<uint8_t>& value) override; | 63 const std::vector<uint8_t>& value) override; |
| 69 void SimulateGattCharacteristicReadError( | 64 void SimulateGattCharacteristicReadError( |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 int gatt_open_connections_ = 0; | 163 int gatt_open_connections_ = 0; |
| 169 BluetoothRemoteGattDescriptor* remembered_ccc_descriptor_ = nullptr; | 164 BluetoothRemoteGattDescriptor* remembered_ccc_descriptor_ = nullptr; |
| 170 }; | 165 }; |
| 171 | 166 |
| 172 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). | 167 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). |
| 173 typedef BluetoothTestAndroid BluetoothTest; | 168 typedef BluetoothTestAndroid BluetoothTest; |
| 174 | 169 |
| 175 } // namespace device | 170 } // namespace device |
| 176 | 171 |
| 177 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ | 172 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ |
| OLD | NEW |