#include "device/bluetooth/test/test_bluetooth_local_gatt_service_delegate.h"
#include "base/functional/callback.h"
#include "device/bluetooth/test/bluetooth_gatt_server_test.h"
namespace device {
TestBluetoothLocalGattServiceDelegate::TestBluetoothLocalGattServiceDelegate()
: … { … }
TestBluetoothLocalGattServiceDelegate::
~TestBluetoothLocalGattServiceDelegate() = default;
void TestBluetoothLocalGattServiceDelegate::OnCharacteristicReadRequest(
const BluetoothDevice* device,
const BluetoothLocalGattCharacteristic* characteristic,
int offset,
ValueCallback callback) { … }
void TestBluetoothLocalGattServiceDelegate::OnCharacteristicWriteRequest(
const BluetoothDevice* device,
const BluetoothLocalGattCharacteristic* characteristic,
const std::vector<uint8_t>& value,
int offset,
base::OnceClosure callback,
ErrorCallback error_callback) { … }
void TestBluetoothLocalGattServiceDelegate::OnCharacteristicPrepareWriteRequest(
const BluetoothDevice* device,
const BluetoothLocalGattCharacteristic* characteristic,
const std::vector<uint8_t>& value,
int offset,
bool has_subsequent_request,
base::OnceClosure callback,
ErrorCallback error_callback) { … }
void TestBluetoothLocalGattServiceDelegate::OnDescriptorReadRequest(
const BluetoothDevice* device,
const BluetoothLocalGattDescriptor* descriptor,
int offset,
ValueCallback callback) { … }
void TestBluetoothLocalGattServiceDelegate::OnDescriptorWriteRequest(
const BluetoothDevice* device,
const BluetoothLocalGattDescriptor* descriptor,
const std::vector<uint8_t>& value,
int offset,
base::OnceClosure callback,
ErrorCallback error_callback) { … }
void TestBluetoothLocalGattServiceDelegate::OnNotificationsStart(
const BluetoothDevice* device,
device::BluetoothGattCharacteristic::NotificationType notification_type,
const BluetoothLocalGattCharacteristic* characteristic) { … }
void TestBluetoothLocalGattServiceDelegate::OnNotificationsStop(
const BluetoothDevice* device,
const BluetoothLocalGattCharacteristic* characteristic) { … }
bool TestBluetoothLocalGattServiceDelegate::NotificationStatusForCharacteristic(
BluetoothLocalGattCharacteristic* characteristic) { … }
}