AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Types | Public Member Functions | List of all members
alexaClientSDK::capabilityAgents::modeController::test::MockModeControllerInterface Class Reference
Inheritance diagram for alexaClientSDK::capabilityAgents::modeController::test::MockModeControllerInterface:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::capabilityAgents::modeController::test::MockModeControllerInterface:
Collaboration graph
[legend]

Public Types

using ModeResult = std::pair< AlexaResponseType, std::string >
 
using GetModeResult = std::pair< AlexaResponseType, avsCommon::utils::Optional< ModeState > >
 
- Public Types inherited from alexaClientSDK::avsCommon::sdkInterfaces::modeController::ModeControllerInterface
using ModeState = avsCommon::sdkInterfaces::modeController::ModeControllerObserverInterface::ModeState
 Alias to improve readability. More...
 
using ModeControllerConfiguration = std::vector< std::string >
 

Public Member Functions

 MOCK_METHOD0 (getConfiguration, ModeControllerConfiguration())
 
 MOCK_METHOD2 (setMode, ModeResult(const std::string &mode, const AlexaStateChangeCauseType cause))
 
 MOCK_METHOD2 (adjustMode, ModeResult(const int modeDelta, const AlexaStateChangeCauseType cause))
 
 MOCK_METHOD0 (getMode, GetModeResult())
 
 MOCK_METHOD1 (addObserver, bool(std::shared_ptr< ModeControllerObserverInterface >))
 
 MOCK_METHOD1 (removeObserver, void(const std::shared_ptr< ModeControllerObserverInterface > &))
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::modeController::ModeControllerInterface
virtual ~ModeControllerInterface ()=default
 
virtual ModeControllerConfiguration getConfiguration ()=0
 
virtual std::pair< avsCommon::avs::AlexaResponseType, std::string > setMode (const std::string &mode, AlexaStateChangeCauseType cause)=0
 
virtual std::pair< avsCommon::avs::AlexaResponseType, std::string > adjustMode (int modeDelta, AlexaStateChangeCauseType cause)=0
 
virtual std::pair< avsCommon::avs::AlexaResponseType, utils::Optional< ModeState > > getMode ()=0
 
virtual bool addObserver (std::shared_ptr< ModeControllerObserverInterface > observer)=0
 
virtual void removeObserver (const std::shared_ptr< ModeControllerObserverInterface > &observer)=0
 

Member Typedef Documentation

◆ GetModeResult

◆ ModeResult

Member Function Documentation

◆ MOCK_METHOD0() [1/2]

alexaClientSDK::capabilityAgents::modeController::test::MockModeControllerInterface::MOCK_METHOD0 ( getConfiguration  ,
ModeControllerConfiguration()   
)

◆ MOCK_METHOD0() [2/2]

alexaClientSDK::capabilityAgents::modeController::test::MockModeControllerInterface::MOCK_METHOD0 ( getMode  ,
GetModeResult()   
)

◆ MOCK_METHOD1() [1/2]

alexaClientSDK::capabilityAgents::modeController::test::MockModeControllerInterface::MOCK_METHOD1 ( addObserver  ,
bool(std::shared_ptr< ModeControllerObserverInterface >)   
)

◆ MOCK_METHOD1() [2/2]

alexaClientSDK::capabilityAgents::modeController::test::MockModeControllerInterface::MOCK_METHOD1 ( removeObserver  ,
void(const std::shared_ptr< ModeControllerObserverInterface > &)   
)

◆ MOCK_METHOD2() [1/2]

alexaClientSDK::capabilityAgents::modeController::test::MockModeControllerInterface::MOCK_METHOD2 ( setMode  ,
ModeResult(const std::string &mode, const AlexaStateChangeCauseType cause)   
)

◆ MOCK_METHOD2() [2/2]

alexaClientSDK::capabilityAgents::modeController::test::MockModeControllerInterface::MOCK_METHOD2 ( adjustMode  ,
ModeResult(const int modeDelta, const AlexaStateChangeCauseType cause)   
)

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