| 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_BLUEZ_H_ | 5 #ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_BLUEZ_H_ |
| 6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_BLUEZ_H_ | 6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_BLUEZ_H_ |
| 7 | 7 |
| 8 #include <cstdint> | 8 #include <cstdint> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 const base::Closure& error_callback) override; | 52 const base::Closure& error_callback) override; |
| 53 void SimulateLocalGattDescriptorValueWriteRequest( | 53 void SimulateLocalGattDescriptorValueWriteRequest( |
| 54 BluetoothDevice* from_device, | 54 BluetoothDevice* from_device, |
| 55 BluetoothLocalGattDescriptor* descriptor, | 55 BluetoothLocalGattDescriptor* descriptor, |
| 56 const std::vector<uint8_t>& value_to_write, | 56 const std::vector<uint8_t>& value_to_write, |
| 57 const base::Closure& success_callback, | 57 const base::Closure& success_callback, |
| 58 const base::Closure& error_callback) override; | 58 const base::Closure& error_callback) override; |
| 59 bool SimulateLocalGattCharacteristicNotificationsRequest( | 59 bool SimulateLocalGattCharacteristicNotificationsRequest( |
| 60 BluetoothLocalGattCharacteristic* characteristic, | 60 BluetoothLocalGattCharacteristic* characteristic, |
| 61 bool start) override; | 61 bool start) override; |
| 62 NotificationType LastNotifactionValueForCharacteristic( | 62 std::vector<uint8_t> LastNotifactionValueForCharacteristic( |
| 63 BluetoothLocalGattCharacteristic* characteristic) override; | 63 BluetoothLocalGattCharacteristic* characteristic) override; |
| 64 std::vector<BluetoothLocalGattService*> RegisteredGattServices() override; | 64 std::vector<BluetoothLocalGattService*> RegisteredGattServices() override; |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 bluez::FakeBluetoothDeviceClient* fake_bluetooth_device_client_; | 67 bluez::FakeBluetoothDeviceClient* fake_bluetooth_device_client_; |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). | 70 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). |
| 71 using BluetoothTest = BluetoothTestBlueZ; | 71 using BluetoothTest = BluetoothTestBlueZ; |
| 72 | 72 |
| 73 } // namespace device | 73 } // namespace device |
| 74 | 74 |
| 75 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_BLUEZ_H_ | 75 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_BLUEZ_H_ |
| OLD | NEW |