AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
List of all members
alexaClientSDK::avsCommon::sdkInterfaces::endpoints::test::MockEndpointBuilder Class Reference

Mocks an endpoint builder. More...

#include <MockEndpointBuilder.h>

Inheritance diagram for alexaClientSDK::avsCommon::sdkInterfaces::endpoints::test::MockEndpointBuilder:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::avsCommon::sdkInterfaces::endpoints::test::MockEndpointBuilder:
Collaboration graph
[legend]

Public Member Functions

@c EndpointBuilderInterface methods to be mocked.
 MOCK_METHOD1 (withDerivedEndpointId, EndpointBuilderInterface &(const std::string &suffix))
 
 MOCK_METHOD0 (withDeviceRegistration, EndpointBuilderInterface &())
 
 MOCK_METHOD1 (withEndpointId, EndpointBuilderInterface &(const EndpointIdentifier &endpointId))
 
 MOCK_METHOD1 (withFriendlyName, EndpointBuilderInterface &(const std::string &friendlyName))
 
 MOCK_METHOD1 (withDescription, EndpointBuilderInterface &(const std::string &description))
 
 MOCK_METHOD1 (withManufacturerName, EndpointBuilderInterface &(const std::string &manufacturerName))
 
 MOCK_METHOD1 (withDisplayCategory, EndpointBuilderInterface &(const std::vector< std::string > &displayCategories))
 
 MOCK_METHOD6 (withAdditionalAttributes, EndpointBuilderInterface &(const std::string &manufacturer, const std::string &model, const std::string &serialNumber, const std::string &firmwareVersion, const std::string &softwareVersion, const std::string &customIdentifier))
 
 MOCK_METHOD1 (withConnections, EndpointBuilderInterface &(const std::vector< std::map< std::string, std::string >> &connections))
 
 MOCK_METHOD1 (withCookies, EndpointBuilderInterface &(const std::map< std::string, std::string > &cookies))
 
 MOCK_METHOD3 (withPowerController, EndpointBuilderInterface &(std::shared_ptr< avsCommon::sdkInterfaces::powerController::PowerControllerInterface > powerController, bool isProactivelyReported, bool isRetrievable))
 
 MOCK_METHOD6 (withToggleController, EndpointBuilderInterface &(std::shared_ptr< avsCommon::sdkInterfaces::toggleController::ToggleControllerInterface > toggleController, const std::string &instance, const avsCommon::sdkInterfaces::toggleController::ToggleControllerAttributes &toggleControllerAttributes, bool isProactivelyReported, bool isRetrievable, bool isNonControllable))
 
 MOCK_METHOD6 (withModeController, EndpointBuilderInterface &(std::shared_ptr< avsCommon::sdkInterfaces::modeController::ModeControllerInterface > modeController, const std::string &instance, const avsCommon::sdkInterfaces::modeController::ModeControllerAttributes &modeControllerAttributes, bool isProactivelyReported, bool isRetrievable, bool isNonControllable))
 
 MOCK_METHOD6 (withRangeController, EndpointBuilderInterface &(std::shared_ptr< avsCommon::sdkInterfaces::rangeController::RangeControllerInterface > rangeController, const std::string &instance, const avsCommon::sdkInterfaces::rangeController::RangeControllerAttributes &rangeControllerAttributes, bool isProactivelyReported, bool isRetrievable, bool isNonControllable))
 
 MOCK_METHOD1 (withEndpointCapabilitiesBuilder, EndpointBuilderInterface &(const std::shared_ptr< avsCommon::sdkInterfaces::endpoints::EndpointCapabilitiesBuilderInterface > &))
 
 MOCK_METHOD0 (build, std::unique_ptr< EndpointInterface >())
 
@c EndpointCapabilitiesRegistrarInterface methods to be mocked.
 MOCK_METHOD2 (withCapability, EndpointCapabilitiesRegistrarInterface &(const avs::CapabilityConfiguration &configuration, std::shared_ptr< DirectiveHandlerInterface > directiveHandler))
 
 MOCK_METHOD2 (withCapability, EndpointCapabilitiesRegistrarInterface &(const std::shared_ptr< avsCommon::sdkInterfaces::CapabilityConfigurationInterface > &configurationInterface, std::shared_ptr< DirectiveHandlerInterface > directiveHandler))
 
 MOCK_METHOD1 (withCapabilityConfiguration, EndpointCapabilitiesRegistrarInterface &(const std::shared_ptr< avsCommon::sdkInterfaces::CapabilityConfigurationInterface > &configurationInterface))
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::endpoints::EndpointBuilderInterface
virtual ~EndpointBuilderInterface ()=default
 
virtual EndpointBuilderInterfacewithDerivedEndpointId (const std::string &suffix)=0
 
virtual EndpointBuilderInterfacewithDeviceRegistration ()=0
 
virtual EndpointBuilderInterfacewithEndpointId (const EndpointIdentifier &endpointId)=0
 
virtual EndpointBuilderInterfacewithFriendlyName (const std::string &friendlyName)=0
 
virtual EndpointBuilderInterfacewithDescription (const std::string &description)=0
 
virtual EndpointBuilderInterfacewithManufacturerName (const std::string &manufacturerName)=0
 
virtual EndpointBuilderInterfacewithDisplayCategory (const std::vector< std::string > &displayCategories)=0
 
virtual EndpointBuilderInterfacewithAdditionalAttributes (const std::string &manufacturer, const std::string &model, const std::string &serialNumber, const std::string &firmwareVersion, const std::string &softwareVersion, const std::string &customIdentifier)=0
 
virtual EndpointBuilderInterfacewithConnections (const std::vector< std::map< std::string, std::string >> &connections)=0
 
virtual EndpointBuilderInterfacewithCookies (const std::map< std::string, std::string > &cookies)=0
 
virtual EndpointBuilderInterfacewithPowerController (std::shared_ptr< avsCommon::sdkInterfaces::powerController::PowerControllerInterface > powerController, bool isProactivelyReported, bool isRetrievable)=0
 
virtual EndpointBuilderInterfacewithToggleController (std::shared_ptr< avsCommon::sdkInterfaces::toggleController::ToggleControllerInterface > toggleController, const std::string &instance, const avsCommon::sdkInterfaces::toggleController::ToggleControllerAttributes &toggleControllerAttributes, bool isProactivelyReported, bool isRetrievable, bool isNonControllable=false)=0
 
virtual EndpointBuilderInterfacewithModeController (std::shared_ptr< avsCommon::sdkInterfaces::modeController::ModeControllerInterface > modeController, const std::string &instance, const avsCommon::sdkInterfaces::modeController::ModeControllerAttributes &modeControllerAttributes, bool isProactivelyReported, bool isRetrievable, bool isNonControllable=false)=0
 
virtual EndpointBuilderInterfacewithRangeController (std::shared_ptr< avsCommon::sdkInterfaces::rangeController::RangeControllerInterface > rangeController, const std::string &instance, const avsCommon::sdkInterfaces::rangeController::RangeControllerAttributes &rangeControllerAttributes, bool isProactivelyReported, bool isRetrievable, bool isNonControllable=false)=0
 
virtual EndpointBuilderInterfacewithEndpointCapabilitiesBuilder (const std::shared_ptr< avsCommon::sdkInterfaces::endpoints::EndpointCapabilitiesBuilderInterface > &endpointCapabilitiesBuilder)=0
 
virtual std::unique_ptr< EndpointInterfacebuild ()=0
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::endpoints::EndpointCapabilitiesRegistrarInterface
virtual ~EndpointCapabilitiesRegistrarInterface ()=default
 
virtual EndpointCapabilitiesRegistrarInterfacewithCapability (const avs::CapabilityConfiguration &configuration, std::shared_ptr< DirectiveHandlerInterface > directiveHandler)=0
 
virtual EndpointCapabilitiesRegistrarInterfacewithCapability (const std::shared_ptr< avsCommon::sdkInterfaces::CapabilityConfigurationInterface > &configurationInterface, std::shared_ptr< DirectiveHandlerInterface > directiveHandler)=0
 
virtual EndpointCapabilitiesRegistrarInterfacewithCapabilityConfiguration (const std::shared_ptr< avsCommon::sdkInterfaces::CapabilityConfigurationInterface > &configurationInterface)=0
 

Detailed Description

Mocks an endpoint builder.

Member Function Documentation

◆ MOCK_METHOD0() [1/2]

alexaClientSDK::avsCommon::sdkInterfaces::endpoints::test::MockEndpointBuilder::MOCK_METHOD0 ( withDeviceRegistration  ,
EndpointBuilderInterface () 
)

◆ MOCK_METHOD0() [2/2]

alexaClientSDK::avsCommon::sdkInterfaces::endpoints::test::MockEndpointBuilder::MOCK_METHOD0 ( build  ,
std::unique_ptr< EndpointInterface () 
)

◆ MOCK_METHOD1() [1/10]

alexaClientSDK::avsCommon::sdkInterfaces::endpoints::test::MockEndpointBuilder::MOCK_METHOD1 ( withDerivedEndpointId  ,
EndpointBuilderInterface const std::string &suffix 
)

◆ MOCK_METHOD1() [2/10]

alexaClientSDK::avsCommon::sdkInterfaces::endpoints::test::MockEndpointBuilder::MOCK_METHOD1 ( withEndpointId  ,
EndpointBuilderInterface const EndpointIdentifier &endpointId 
)

◆ MOCK_METHOD1() [3/10]

alexaClientSDK::avsCommon::sdkInterfaces::endpoints::test::MockEndpointBuilder::MOCK_METHOD1 ( withFriendlyName  ,
EndpointBuilderInterface const std::string &friendlyName 
)

◆ MOCK_METHOD1() [4/10]

alexaClientSDK::avsCommon::sdkInterfaces::endpoints::test::MockEndpointBuilder::MOCK_METHOD1 ( withDescription  ,
EndpointBuilderInterface const std::string &description 
)

◆ MOCK_METHOD1() [5/10]

alexaClientSDK::avsCommon::sdkInterfaces::endpoints::test::MockEndpointBuilder::MOCK_METHOD1 ( withManufacturerName  ,
EndpointBuilderInterface const std::string &manufacturerName 
)

◆ MOCK_METHOD1() [6/10]

alexaClientSDK::avsCommon::sdkInterfaces::endpoints::test::MockEndpointBuilder::MOCK_METHOD1 ( withDisplayCategory  ,
EndpointBuilderInterface const std::vector< std::string > &displayCategories 
)

◆ MOCK_METHOD1() [7/10]

alexaClientSDK::avsCommon::sdkInterfaces::endpoints::test::MockEndpointBuilder::MOCK_METHOD1 ( withConnections  ,
EndpointBuilderInterface const std::vector< std::map< std::string, std::string >> &connections 
)

◆ MOCK_METHOD1() [8/10]

alexaClientSDK::avsCommon::sdkInterfaces::endpoints::test::MockEndpointBuilder::MOCK_METHOD1 ( withCookies  ,
EndpointBuilderInterface const std::map< std::string, std::string > &cookies 
)

◆ MOCK_METHOD1() [9/10]

alexaClientSDK::avsCommon::sdkInterfaces::endpoints::test::MockEndpointBuilder::MOCK_METHOD1 ( withEndpointCapabilitiesBuilder  ,
EndpointBuilderInterface const std::shared_ptr< avsCommon::sdkInterfaces::endpoints::EndpointCapabilitiesBuilderInterface > & 
)

◆ MOCK_METHOD1() [10/10]

alexaClientSDK::avsCommon::sdkInterfaces::endpoints::test::MockEndpointBuilder::MOCK_METHOD1 ( withCapabilityConfiguration  ,
EndpointCapabilitiesRegistrarInterface const std::shared_ptr< avsCommon::sdkInterfaces::CapabilityConfigurationInterface > &configurationInterface 
)

◆ MOCK_METHOD2() [1/2]

alexaClientSDK::avsCommon::sdkInterfaces::endpoints::test::MockEndpointBuilder::MOCK_METHOD2 ( withCapability  ,
EndpointCapabilitiesRegistrarInterface const avs::CapabilityConfiguration &configuration, std::shared_ptr< DirectiveHandlerInterface > directiveHandler 
)

◆ MOCK_METHOD2() [2/2]

alexaClientSDK::avsCommon::sdkInterfaces::endpoints::test::MockEndpointBuilder::MOCK_METHOD2 ( withCapability  ,
EndpointCapabilitiesRegistrarInterface const std::shared_ptr< avsCommon::sdkInterfaces::CapabilityConfigurationInterface > &configurationInterface, std::shared_ptr< DirectiveHandlerInterface > directiveHandler 
)

◆ MOCK_METHOD3()

alexaClientSDK::avsCommon::sdkInterfaces::endpoints::test::MockEndpointBuilder::MOCK_METHOD3 ( withPowerController  ,
EndpointBuilderInterface std::shared_ptr< avsCommon::sdkInterfaces::powerController::PowerControllerInterface > powerController, bool isProactivelyReported, bool isRetrievable 
)

◆ MOCK_METHOD6() [1/4]

alexaClientSDK::avsCommon::sdkInterfaces::endpoints::test::MockEndpointBuilder::MOCK_METHOD6 ( withAdditionalAttributes  ,
EndpointBuilderInterface const std::string &manufacturer, const std::string &model, const std::string &serialNumber, const std::string &firmwareVersion, const std::string &softwareVersion, const std::string &customIdentifier 
)

◆ MOCK_METHOD6() [2/4]

alexaClientSDK::avsCommon::sdkInterfaces::endpoints::test::MockEndpointBuilder::MOCK_METHOD6 ( withToggleController  ,
EndpointBuilderInterface std::shared_ptr< avsCommon::sdkInterfaces::toggleController::ToggleControllerInterface > toggleController, const std::string &instance, const avsCommon::sdkInterfaces::toggleController::ToggleControllerAttributes &toggleControllerAttributes, bool isProactivelyReported, bool isRetrievable, bool isNonControllable 
)

◆ MOCK_METHOD6() [3/4]

alexaClientSDK::avsCommon::sdkInterfaces::endpoints::test::MockEndpointBuilder::MOCK_METHOD6 ( withModeController  ,
EndpointBuilderInterface std::shared_ptr< avsCommon::sdkInterfaces::modeController::ModeControllerInterface > modeController, const std::string &instance, const avsCommon::sdkInterfaces::modeController::ModeControllerAttributes &modeControllerAttributes, bool isProactivelyReported, bool isRetrievable, bool isNonControllable 
)

◆ MOCK_METHOD6() [4/4]

alexaClientSDK::avsCommon::sdkInterfaces::endpoints::test::MockEndpointBuilder::MOCK_METHOD6 ( withRangeController  ,
EndpointBuilderInterface std::shared_ptr< avsCommon::sdkInterfaces::rangeController::RangeControllerInterface > rangeController, const std::string &instance, const avsCommon::sdkInterfaces::rangeController::RangeControllerAttributes &rangeControllerAttributes, bool isProactivelyReported, bool isRetrievable, bool isNonControllable 
)

The documentation for this class was generated from the following file:

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0