#include "device/bluetooth/floss/fake_floss_advertiser_client.h"
#include "base/logging.h"
#include "base/observer_list.h"
#include "base/task/single_thread_task_runner.h"
#include "device/bluetooth/floss/floss_dbus_client.h"
namespace floss {
FakeFlossAdvertiserClient::FakeFlossAdvertiserClient() = default;
FakeFlossAdvertiserClient::~FakeFlossAdvertiserClient() = default;
void FakeFlossAdvertiserClient::Init(dbus::Bus* bus,
const std::string& service_name,
const int adapter_index,
base::Version version,
base::OnceClosure on_ready) { … }
void FakeFlossAdvertiserClient::StartAdvertisingSet(
const AdvertisingSetParameters& params,
const AdvertiseData& adv_data,
const std::optional<AdvertiseData> scan_rsp,
const std::optional<PeriodicAdvertisingParameters> periodic_params,
const std::optional<AdvertiseData> periodic_data,
const int32_t duration,
const int32_t max_ext_adv_events,
StartSuccessCallback success_callback,
ErrorCallback error_callback) { … }
void FakeFlossAdvertiserClient::StopAdvertisingSet(
const AdvertiserId adv_id,
StopSuccessCallback success_callback,
ErrorCallback error_callback) { … }
void FakeFlossAdvertiserClient::SetAdvertisingParameters(
const AdvertiserId adv_id,
const AdvertisingSetParameters& params,
SetAdvParamsSuccessCallback success_callback,
ErrorCallback error_callback) { … }
}