#include "device/bluetooth/test/mock_bluetooth_adapter.h"
#include <memory>
#include <utility>
#include "build/build_config.h"
#include "device/bluetooth/test/mock_bluetooth_advertisement.h"
namespace device {
Invoke;
_;
MockBluetoothAdapter::Observer::Observer(
scoped_refptr<BluetoothAdapter> adapter)
: … { … }
MockBluetoothAdapter::Observer::~Observer() { … }
MockBluetoothAdapter::MockBluetoothAdapter() { … }
MockBluetoothAdapter::~MockBluetoothAdapter() = default;
void MockBluetoothAdapter::Initialize(base::OnceClosure callback) { … }
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
void MockBluetoothAdapter::Shutdown() { … }
#endif
base::WeakPtr<BluetoothAdapter> MockBluetoothAdapter::GetWeakPtr() { … }
bool MockBluetoothAdapter::SetPoweredImpl(bool powered) { … }
void MockBluetoothAdapter::StartScanWithFilter(
std::unique_ptr<BluetoothDiscoveryFilter> discovery_filter,
DiscoverySessionResultCallback callback) { … }
void MockBluetoothAdapter::UpdateFilter(
std::unique_ptr<BluetoothDiscoveryFilter> discovery_filter,
DiscoverySessionResultCallback callback) { … }
void MockBluetoothAdapter::AddMockDevice(
std::unique_ptr<MockBluetoothDevice> mock_device) { … }
std::unique_ptr<MockBluetoothDevice> MockBluetoothAdapter::RemoveMockDevice(
const std::string& address) { … }
BluetoothAdapter::ConstDeviceList MockBluetoothAdapter::GetConstMockDevices() { … }
BluetoothAdapter::DeviceList MockBluetoothAdapter::GetMockDevices() { … }
void MockBluetoothAdapter::RegisterAdvertisement(
std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data,
CreateAdvertisementCallback callback,
AdvertisementErrorCallback error_callback) { … }
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
void MockBluetoothAdapter::SetAdvertisingInterval(
const base::TimeDelta& min,
const base::TimeDelta& max,
base::OnceClosure callback,
AdvertisementErrorCallback error_callback) { … }
void MockBluetoothAdapter::ResetAdvertising(
base::OnceClosure callback,
AdvertisementErrorCallback error_callback) { … }
#endif
}