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 CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_SERVICE_PROVIDER_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_SERVICE_PROVIDER_H_ |
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_SERVICE_PROVIDER_H_ | 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_SERVICE_PROVIDER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 FakeBluetoothGattCharacteristicServiceProvider( | 23 FakeBluetoothGattCharacteristicServiceProvider( |
24 const dbus::ObjectPath& object_path, | 24 const dbus::ObjectPath& object_path, |
25 Delegate* delegate, | 25 Delegate* delegate, |
26 const std::string& uuid, | 26 const std::string& uuid, |
27 const std::vector<std::string>& flags, | 27 const std::vector<std::string>& flags, |
28 const std::vector<std::string>& permissions, | 28 const std::vector<std::string>& permissions, |
29 const dbus::ObjectPath& service_path); | 29 const dbus::ObjectPath& service_path); |
30 virtual ~FakeBluetoothGattCharacteristicServiceProvider(); | 30 virtual ~FakeBluetoothGattCharacteristicServiceProvider(); |
31 | 31 |
32 // BluetoothGattCharacteristicServiceProvider override. | 32 // BluetoothGattCharacteristicServiceProvider override. |
33 virtual void SendValueChanged(const std::vector<uint8>& value) OVERRIDE; | 33 virtual void SendValueChanged(const std::vector<uint8>& value) override; |
34 | 34 |
35 // Methods to simulate value get/set requests issued from a remote device. The | 35 // Methods to simulate value get/set requests issued from a remote device. The |
36 // methods do nothing, if the associated service was not registered with the | 36 // methods do nothing, if the associated service was not registered with the |
37 // GATT manager. | 37 // GATT manager. |
38 void GetValue(const Delegate::ValueCallback& callback, | 38 void GetValue(const Delegate::ValueCallback& callback, |
39 const Delegate::ErrorCallback& error_callback); | 39 const Delegate::ErrorCallback& error_callback); |
40 void SetValue(const std::vector<uint8>& value, | 40 void SetValue(const std::vector<uint8>& value, |
41 const base::Closure& callback, | 41 const base::Closure& callback, |
42 const Delegate::ErrorCallback& error_callback); | 42 const Delegate::ErrorCallback& error_callback); |
43 | 43 |
(...skipping 13 matching lines...) Expand all Loading... |
57 | 57 |
58 // The delegate that method calls are passed on to. | 58 // The delegate that method calls are passed on to. |
59 Delegate* delegate_; | 59 Delegate* delegate_; |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattCharacteristicServiceProvider); | 61 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattCharacteristicServiceProvider); |
62 }; | 62 }; |
63 | 63 |
64 } // namespace chromeos | 64 } // namespace chromeos |
65 | 65 |
66 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_SERVICE_PROVIDER_H_ | 66 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_SERVICE_PROVIDER_H_ |
OLD | NEW |