| 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 28 matching lines...) Expand all Loading... |
| 39 BluetoothDevice* device, | 39 BluetoothDevice* device, |
| 40 const std::vector<std::string>& uuids) override; | 40 const std::vector<std::string>& uuids) override; |
| 41 void SimulateGattServicesDiscoveryError(BluetoothDevice* device) override; | 41 void SimulateGattServicesDiscoveryError(BluetoothDevice* device) override; |
| 42 void SimulateGattCharacteristic(BluetoothGattService* service, | 42 void SimulateGattCharacteristic(BluetoothGattService* service, |
| 43 const std::string& uuid, | 43 const std::string& uuid, |
| 44 int properties) override; | 44 int properties) override; |
| 45 void RememberCharacteristicForSubsequentAction( | 45 void RememberCharacteristicForSubsequentAction( |
| 46 BluetoothGattCharacteristic* characteristic) override; | 46 BluetoothGattCharacteristic* characteristic) override; |
| 47 void SimulateGattNotifySessionStarted( | 47 void SimulateGattNotifySessionStarted( |
| 48 BluetoothGattCharacteristic* characteristic) override; | 48 BluetoothGattCharacteristic* characteristic) override; |
| 49 void SimulateGattNotifySessionStartError( |
| 50 BluetoothGattCharacteristic* characteristic, |
| 51 BluetoothGattService::GattErrorCode error_code) override; |
| 49 void SimulateGattCharacteristicSetNotifyWillFailSynchronouslyOnce( | 52 void SimulateGattCharacteristicSetNotifyWillFailSynchronouslyOnce( |
| 50 BluetoothGattCharacteristic* characteristic) override; | 53 BluetoothGattCharacteristic* characteristic) override; |
| 51 void SimulateGattCharacteristicChanged( | 54 void SimulateGattCharacteristicChanged( |
| 52 BluetoothGattCharacteristic* characteristic, | 55 BluetoothGattCharacteristic* characteristic, |
| 53 const std::vector<uint8_t>& value) override; | 56 const std::vector<uint8_t>& value) override; |
| 54 | 57 |
| 55 void SimulateGattCharacteristicRead( | 58 void SimulateGattCharacteristicRead( |
| 56 BluetoothGattCharacteristic* characteristic, | 59 BluetoothGattCharacteristic* characteristic, |
| 57 const std::vector<uint8_t>& value) override; | 60 const std::vector<uint8_t>& value) override; |
| 58 void SimulateGattCharacteristicReadError( | 61 void SimulateGattCharacteristicReadError( |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 155 |
| 153 int gatt_open_connections_ = 0; | 156 int gatt_open_connections_ = 0; |
| 154 }; | 157 }; |
| 155 | 158 |
| 156 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). | 159 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). |
| 157 typedef BluetoothTestAndroid BluetoothTest; | 160 typedef BluetoothTestAndroid BluetoothTest; |
| 158 | 161 |
| 159 } // namespace device | 162 } // namespace device |
| 160 | 163 |
| 161 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ | 164 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ |
| OLD | NEW |