| Index: device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_client.cc
|
| diff --git a/device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_client.cc b/device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_client.cc
|
| index c0dfc3b752c565f7d0f92ef4163a55cc4dbb5d21..88922dc505c65c9d78bbd9497a280cefc734bb47 100644
|
| --- a/device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_client.cc
|
| +++ b/device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_client.cc
|
| @@ -4,8 +4,14 @@
|
|
|
| #include "device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_client.h"
|
|
|
| +#include <vector>
|
| +
|
| #include "base/bind.h"
|
| +#include "base/callback.h"
|
| +#include "base/callback_forward.h"
|
| #include "base/logging.h"
|
| +#include "dbus/bus.h"
|
| +#include "dbus/property.h"
|
| #include "device/bluetooth/dbus/bluetooth_gatt_characteristic_client.h"
|
| #include "device/bluetooth/dbus/bluez_dbus_manager.h"
|
| #include "third_party/cros_system_api/dbus/service_constants.h"
|
| @@ -130,7 +136,7 @@ void FakeBluetoothGattDescriptorClient::WriteValue(
|
|
|
| // Since the only fake descriptor is "Client Characteristic Configuration"
|
| // and BlueZ doesn't allow writing to it, return failure.
|
| - error_callback.Run("org.bluez.Error.NotPermitted",
|
| + error_callback.Run(bluetooth_gatt_service::kErrorWriteNotPermitted,
|
| "Writing to the Client Characteristic Configuration "
|
| "descriptor not allowed");
|
| }
|
|
|