#include <MockBluetoothDevice.h>
Mock class that implements BluetoothDeviceInterface. Please note that MockBluetoothDevice doesn't support sending any BluetoothEvent
to BluetoothEventBus
, any BluetoothEvent
based logic will need to be tested separately.
◆ MockBluetoothDevice()
alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDevice::MockBluetoothDevice |
( |
const std::string & |
mac, |
|
|
const std::string |
friendlyName, |
|
|
MetaData |
metaData, |
|
|
std::vector< std::shared_ptr< services::BluetoothServiceInterface >> |
supportedServices |
|
) |
| |
◆ connect()
std::future< bool > alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDevice::connect |
( |
| ) |
|
|
inlineoverridevirtual |
◆ disconnect()
std::future< bool > alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDevice::disconnect |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getDeviceMetaData()
◆ getDeviceState()
DeviceState alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDevice::getDeviceState |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getFriendlyName()
std::string alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDevice::getFriendlyName |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getMac()
std::string alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDevice::getMac |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getService()
◆ getStreamingState()
◆ getSupportedServices()
std::vector< std::shared_ptr< services::SDPRecordInterface > > alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDevice::getSupportedServices |
( |
| ) |
|
|
inlineoverridevirtual |
◆ isConnected()
bool alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDevice::isConnected |
( |
| ) |
|
|
inlineoverridevirtual |
◆ isPaired()
bool alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDevice::isPaired |
( |
| ) |
|
|
inlineoverridevirtual |
◆ pair()
std::future< bool > alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDevice::pair |
( |
| ) |
|
|
inlineoverridevirtual |
◆ setPairingPin()
bool alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDevice::setPairingPin |
( |
const std::string & |
pin | ) |
|
|
inlineoverridevirtual |
◆ toggleServiceConnection()
bool alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDevice::toggleServiceConnection |
( |
bool |
enabled, |
|
|
std::shared_ptr< services::BluetoothServiceInterface > |
service |
|
) |
| |
|
inlineoverridevirtual |
◆ unpair()
std::future< bool > alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDevice::unpair |
( |
| ) |
|
|
inlineoverridevirtual |
◆ m_deviceState
DeviceState alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDevice::m_deviceState |
|
protected |
Represent the Bluetooth device state.
◆ m_friendlyName
const std::string alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDevice::m_friendlyName |
|
protected |
Represent the Bluetooth device friendly name.
◆ m_isConnected
bool alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDevice::m_isConnected |
|
protected |
Represent the connection status.
◆ m_isPaired
bool alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDevice::m_isPaired |
|
protected |
Represent the pair status.
◆ m_mac
const std::string alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDevice::m_mac |
|
protected |
Represent the Bluetooth device mac address.
◆ m_metaData
Represent the Bluetooth device meta data.
◆ m_supportedServices
std::unordered_map<std::string, std::shared_ptr<services::BluetoothServiceInterface> > alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDevice::m_supportedServices |
|
protected |
Represent the Bluetooth device supported Services.
The documentation for this class was generated from the following file:
- /workplace/avs-device-sdk/AVSCommon/SDKInterfaces/test/AVSCommon/SDKInterfaces/Bluetooth/MockBluetoothDevice.h
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0