| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_SERVICE_PROVIDE
R_H_ | 5 #ifndef DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_SERVICE_PROVIDE
R_H_ |
| 6 #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_SERVICE_PROVIDE
R_H_ | 6 #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_SERVICE_PROVIDE
R_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // GATT characteristic object and is used both in test cases in place of a mock | 23 // GATT characteristic object and is used both in test cases in place of a mock |
| 24 // and on the Linux desktop. | 24 // and on the Linux desktop. |
| 25 class DEVICE_BLUETOOTH_EXPORT FakeBluetoothGattCharacteristicServiceProvider | 25 class DEVICE_BLUETOOTH_EXPORT FakeBluetoothGattCharacteristicServiceProvider |
| 26 : public BluetoothGattCharacteristicServiceProvider { | 26 : public BluetoothGattCharacteristicServiceProvider { |
| 27 public: | 27 public: |
| 28 FakeBluetoothGattCharacteristicServiceProvider( | 28 FakeBluetoothGattCharacteristicServiceProvider( |
| 29 const dbus::ObjectPath& object_path, | 29 const dbus::ObjectPath& object_path, |
| 30 std::unique_ptr<BluetoothGattAttributeValueDelegate> delegate, | 30 std::unique_ptr<BluetoothGattAttributeValueDelegate> delegate, |
| 31 const std::string& uuid, | 31 const std::string& uuid, |
| 32 const std::vector<std::string>& flags, | 32 const std::vector<std::string>& flags, |
| 33 const std::vector<std::string>& permissions, | |
| 34 const dbus::ObjectPath& service_path); | 33 const dbus::ObjectPath& service_path); |
| 35 ~FakeBluetoothGattCharacteristicServiceProvider() override; | 34 ~FakeBluetoothGattCharacteristicServiceProvider() override; |
| 36 | 35 |
| 37 // BluetoothGattCharacteristicServiceProvider override. | 36 // BluetoothGattCharacteristicServiceProvider override. |
| 38 void SendValueChanged(const std::vector<uint8_t>& value) override; | 37 void SendValueChanged(const std::vector<uint8_t>& value) override; |
| 39 | 38 |
| 40 // Methods to simulate value get/set requests issued from a remote device. The | 39 // Methods to simulate value get/set requests issued from a remote device. The |
| 41 // methods do nothing, if the associated service was not registered with the | 40 // methods do nothing, if the associated service was not registered with the |
| 42 // GATT manager. | 41 // GATT manager. |
| 43 void GetValue( | 42 void GetValue( |
| (...skipping 23 matching lines...) Expand all Loading... |
| 67 | 66 |
| 68 // The delegate that method calls are passed on to. | 67 // The delegate that method calls are passed on to. |
| 69 std::unique_ptr<BluetoothGattAttributeValueDelegate> delegate_; | 68 std::unique_ptr<BluetoothGattAttributeValueDelegate> delegate_; |
| 70 | 69 |
| 71 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattCharacteristicServiceProvider); | 70 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattCharacteristicServiceProvider); |
| 72 }; | 71 }; |
| 73 | 72 |
| 74 } // namespace bluez | 73 } // namespace bluez |
| 75 | 74 |
| 76 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_SERVICE_PROV
IDER_H_ | 75 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_SERVICE_PROV
IDER_H_ |
| OLD | NEW |