AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::avsCommon::sdkInterfaces::test::MockContextManager Class Reference

Mock class that implements the ContextManager. More...

#include <MockContextManager.h>

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

Public Member Functions

 MOCK_METHOD0 (doShutdown, void())
 
 MOCK_METHOD2 (setStateProvider, void(const avs::CapabilityTag &namespaceAndName, std::shared_ptr< StateProviderInterface > stateProvider))
 
 MOCK_METHOD4 (setState, SetStateResult(const avs::CapabilityTag &namespaceAndName, const std::string &jsonState, const avs::StateRefreshPolicy &refreshPolicy, const unsigned int stateRequestToken))
 
 MOCK_METHOD3 (getContext, ContextRequestToken(std::shared_ptr< ContextRequesterInterface >, const std::string &, const std::chrono::milliseconds &))
 
 MOCK_METHOD3 (getContextWithoutReportableStateProperties, ContextRequestToken(std::shared_ptr< ContextRequesterInterface >, const std::string &, const std::chrono::milliseconds &))
 
 MOCK_METHOD3 (reportStateChange, void(const avs::CapabilityTag &capabilityIdentifier, const avs::CapabilityState &capabilityState, AlexaStateChangeCauseType cause))
 
 MOCK_METHOD3 (provideStateResponse, void(const avsCommon::avs::CapabilityTag &capabilityIdentifier, const avsCommon::avs::CapabilityState &capabilityState, const unsigned int stateRequestToken))
 
 MOCK_METHOD3 (provideStateUnavailableResponse, void(const avsCommon::avs::CapabilityTag &capabilityIdentifier, const unsigned int stateRequestToken, bool isEndpointUnreachable))
 
 MOCK_METHOD1 (addContextManagerObserver, void(std::shared_ptr< ContextManagerObserverInterface > observer))
 
 MOCK_METHOD1 (removeContextManagerObserver, void(const std::shared_ptr< ContextManagerObserverInterface > &observer))
 
 MOCK_METHOD2 (addStateProvider, void(const avsCommon::avs::CapabilityTag &capabilityIdentifier, std::shared_ptr< avsCommon::sdkInterfaces::StateProviderInterface > stateProvider))
 
 MOCK_METHOD1 (removeStateProvider, void(const avs::CapabilityTag &capabilityIdentifier))
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::ContextManagerInterface
virtual ~ContextManagerInterface ()=default
 
virtual void setStateProvider (const avs::CapabilityTag &capabilityIdentifier, std::shared_ptr< StateProviderInterface > stateProvider)=0
 
virtual void addStateProvider (const avsCommon::avs::CapabilityTag &capabilityIdentifier, std::shared_ptr< avsCommon::sdkInterfaces::StateProviderInterface > stateProvider)=0
 
virtual void removeStateProvider (const avs::CapabilityTag &capabilityIdentifier)=0
 
virtual SetStateResult setState (const avs::CapabilityTag &capabilityIdentifier, const std::string &jsonState, const avs::StateRefreshPolicy &refreshPolicy, const ContextRequestToken stateRequestToken=0)=0
 
virtual void reportStateChange (const avs::CapabilityTag &capabilityIdentifier, const avs::CapabilityState &capabilityState, AlexaStateChangeCauseType cause)=0
 
virtual void provideStateResponse (const avs::CapabilityTag &capabilityIdentifier, const avs::CapabilityState &capabilityState, ContextRequestToken stateRequestToken)=0
 
virtual void provideStateUnavailableResponse (const avs::CapabilityTag &capabilityIdentifier, ContextRequestToken stateRequestToken, bool isEndpointUnreachable)=0
 
virtual ContextRequestToken getContext (std::shared_ptr< ContextRequesterInterface > contextRequester, const std::string &endpointId="", const std::chrono::milliseconds &timeout=std::chrono::seconds(2))=0
 
virtual ContextRequestToken getContextWithoutReportableStateProperties (std::shared_ptr< ContextRequesterInterface > contextRequester, const std::string &endpointId="", const std::chrono::milliseconds &timeout=std::chrono::seconds(2))=0
 
virtual void addContextManagerObserver (std::shared_ptr< ContextManagerObserverInterface > observer)=0
 
virtual void removeContextManagerObserver (const std::shared_ptr< ContextManagerObserverInterface > &observer)=0
 

Detailed Description

Mock class that implements the ContextManager.

Member Function Documentation

◆ MOCK_METHOD0()

alexaClientSDK::avsCommon::sdkInterfaces::test::MockContextManager::MOCK_METHOD0 ( doShutdown  ,
void()   
)

◆ MOCK_METHOD1() [1/3]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockContextManager::MOCK_METHOD1 ( addContextManagerObserver  ,
void(std::shared_ptr< ContextManagerObserverInterface > observer)   
)

◆ MOCK_METHOD1() [2/3]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockContextManager::MOCK_METHOD1 ( removeContextManagerObserver  ,
void(const std::shared_ptr< ContextManagerObserverInterface > &observer)   
)

◆ MOCK_METHOD1() [3/3]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockContextManager::MOCK_METHOD1 ( removeStateProvider  ,
void(const avs::CapabilityTag &capabilityIdentifier)   
)

◆ MOCK_METHOD2() [1/2]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockContextManager::MOCK_METHOD2 ( setStateProvider  ,
void(const avs::CapabilityTag &namespaceAndName, std::shared_ptr< StateProviderInterface > stateProvider)   
)

◆ MOCK_METHOD2() [2/2]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockContextManager::MOCK_METHOD2 ( addStateProvider  ,
void(const avsCommon::avs::CapabilityTag &capabilityIdentifier, std::shared_ptr< avsCommon::sdkInterfaces::StateProviderInterface > stateProvider)   
)

◆ MOCK_METHOD3() [1/5]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockContextManager::MOCK_METHOD3 ( getContext  ,
ContextRequestToken(std::shared_ptr< ContextRequesterInterface >, const std::string &, const std::chrono::milliseconds &)   
)

◆ MOCK_METHOD3() [2/5]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockContextManager::MOCK_METHOD3 ( getContextWithoutReportableStateProperties  ,
ContextRequestToken(std::shared_ptr< ContextRequesterInterface >, const std::string &, const std::chrono::milliseconds &)   
)

◆ MOCK_METHOD3() [3/5]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockContextManager::MOCK_METHOD3 ( reportStateChange  ,
void(const avs::CapabilityTag &capabilityIdentifier, const avs::CapabilityState &capabilityState, AlexaStateChangeCauseType cause)   
)

◆ MOCK_METHOD3() [4/5]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockContextManager::MOCK_METHOD3 ( provideStateResponse  ,
void(const avsCommon::avs::CapabilityTag &capabilityIdentifier, const avsCommon::avs::CapabilityState &capabilityState, const unsigned int stateRequestToken)   
)

◆ MOCK_METHOD3() [5/5]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockContextManager::MOCK_METHOD3 ( provideStateUnavailableResponse  ,
void(const avsCommon::avs::CapabilityTag &capabilityIdentifier, const unsigned int stateRequestToken, bool isEndpointUnreachable)   
)

◆ MOCK_METHOD4()

alexaClientSDK::avsCommon::sdkInterfaces::test::MockContextManager::MOCK_METHOD4 ( setState  ,
SetStateResult(const avs::CapabilityTag &namespaceAndName, const std::string &jsonState, const avs::StateRefreshPolicy &refreshPolicy, const unsigned int stateRequestToken)   
)

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