#include "device/bluetooth/emulation/fake_remote_gatt_service.h"
#include <map>
#include <memory>
#include <utility>
#include <vector>
#include "base/memory/ptr_util.h"
#include "base/ranges/algorithm.h"
#include "base/strings/stringprintf.h"
#include "device/bluetooth/bluetooth_device.h"
#include "device/bluetooth/emulation/fake_remote_gatt_characteristic.h"
#include "device/bluetooth/public/cpp/bluetooth_uuid.h"
#include "device/bluetooth/public/mojom/emulation/fake_bluetooth.mojom.h"
namespace bluetooth {
FakeRemoteGattService::FakeRemoteGattService(
const std::string& service_id,
const device::BluetoothUUID& service_uuid,
bool is_primary,
device::BluetoothDevice* device)
: … { … }
FakeRemoteGattService::~FakeRemoteGattService() = default;
bool FakeRemoteGattService::AllResponsesConsumed() { … }
std::string FakeRemoteGattService::AddFakeCharacteristic(
const device::BluetoothUUID& characteristic_uuid,
mojom::CharacteristicPropertiesPtr properties) { … }
bool FakeRemoteGattService::RemoveFakeCharacteristic(
const std::string& identifier) { … }
std::string FakeRemoteGattService::GetIdentifier() const { … }
device::BluetoothUUID FakeRemoteGattService::GetUUID() const { … }
bool FakeRemoteGattService::IsPrimary() const { … }
device::BluetoothDevice* FakeRemoteGattService::GetDevice() const { … }
std::vector<device::BluetoothRemoteGattService*>
FakeRemoteGattService::GetIncludedServices() const { … }
}