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; |
55 void SimulateGattCharacteristicSetNotifyWillFailSynchronouslyOnce( | 60 void SimulateGattCharacteristicSetNotifyWillFailSynchronouslyOnce( |
56 BluetoothRemoteGattCharacteristic* characteristic) override; | 61 BluetoothRemoteGattCharacteristic* characteristic) override; |
57 void SimulateGattCharacteristicChanged( | 62 void SimulateGattCharacteristicChanged( |
58 BluetoothRemoteGattCharacteristic* characteristic, | 63 BluetoothRemoteGattCharacteristic* characteristic, |
59 const std::vector<uint8_t>& value) override; | 64 const std::vector<uint8_t>& value) override; |
60 | 65 |
61 void SimulateGattCharacteristicRead( | 66 void SimulateGattCharacteristicRead( |
62 BluetoothRemoteGattCharacteristic* characteristic, | 67 BluetoothRemoteGattCharacteristic* characteristic, |
63 const std::vector<uint8_t>& value) override; | 68 const std::vector<uint8_t>& value) override; |
64 void SimulateGattCharacteristicReadError( | 69 void SimulateGattCharacteristicReadError( |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 int gatt_open_connections_ = 0; | 168 int gatt_open_connections_ = 0; |
164 BluetoothRemoteGattDescriptor* remembered_ccc_descriptor_ = nullptr; | 169 BluetoothRemoteGattDescriptor* remembered_ccc_descriptor_ = nullptr; |
165 }; | 170 }; |
166 | 171 |
167 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). | 172 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). |
168 typedef BluetoothTestAndroid BluetoothTest; | 173 typedef BluetoothTestAndroid BluetoothTest; |
169 | 174 |
170 } // namespace device | 175 } // namespace device |
171 | 176 |
172 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ | 177 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ |
OLD | NEW |