 |
AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Go to the documentation of this file.
15 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_BLUETOOTH_MOCKBLUETOOTHDEVICECONNECTIONRULE_H_
16 #define ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_BLUETOOTH_MOCKBLUETOOTHDEVICECONNECTIONRULE_H_
18 #include <gmock/gmock.h>
24 namespace sdkInterfaces {
37 std::map<
DeviceCategory, std::set<std::shared_ptr<BluetoothDeviceInterface>>> connectedDevices)
override;
75 std::set<DeviceCategory> categories,
76 std::set<std::string> profiles) :
77 m_categories{categories},
79 m_explicitlyConnect{
false},
80 m_explicitlyDisconnect{
false} {
100 std::map<
DeviceCategory, std::set<std::shared_ptr<BluetoothDeviceInterface>>> connectedDevices) {
113 std::set<std::shared_ptr<BluetoothDeviceInterface>> devices) {
123 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_BLUETOOTH_MOCKBLUETOOTHDEVICECONNECTIONRULE_H_
MockBluetoothDeviceConnectionRule(std::set< DeviceCategory > categories, std::set< std::string > profiles)
Definition: MockBluetoothDeviceConnectionRule.h:74
std::set< DeviceCategory > getDeviceCategories() override
Definition: MockBluetoothDeviceConnectionRule.h:83
void setExplicitlyConnect(bool explicitlyConnect)
Definition: MockBluetoothDeviceConnectionRule.h:104
void setDevicesToDisconnect(std::set< std::shared_ptr< BluetoothDeviceInterface >> devices)
Definition: MockBluetoothDeviceConnectionRule.h:112
std::set< std::shared_ptr< BluetoothDeviceInterface > > m_disconnectedDevices
Definition: MockBluetoothDeviceConnectionRule.h:71
bool m_explicitlyConnect
Definition: MockBluetoothDeviceConnectionRule.h:67
Definition: MockBluetoothDeviceConnectionRule.h:31
Definition: AmdMetricWrapperTest.cpp:24
void setExplicitlyDisconnect(bool explicitlyDisconnect)
Definition: MockBluetoothDeviceConnectionRule.h:108
std::set< DeviceCategory > m_categories
Definition: MockBluetoothDeviceConnectionRule.h:63
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
std::set< std::string > getDependentProfiles() override
Definition: MockBluetoothDeviceConnectionRule.h:87
std::set< std::string > m_profiles
Definition: MockBluetoothDeviceConnectionRule.h:65
bool shouldExplicitlyDisconnect() override
Definition: MockBluetoothDeviceConnectionRule.h:95
Definition: BluetoothDeviceConnectionRuleInterface.h:33
std::set< std::shared_ptr< BluetoothDeviceInterface > > devicesToDisconnect(std::map< DeviceCategory, std::set< std::shared_ptr< BluetoothDeviceInterface >>> connectedDevices) override
Definition: MockBluetoothDeviceConnectionRule.h:99
bool shouldExplicitlyConnect() override
Definition: MockBluetoothDeviceConnectionRule.h:91
DeviceCategory
Definition: DeviceCategory.h:24
bool m_explicitlyDisconnect
Definition: MockBluetoothDeviceConnectionRule.h:69
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0