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