16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_MOCKCONTEXTMANAGER_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_MOCKCONTEXTMANAGER_H_ 24 namespace sdkInterfaces {
33 void(
const avs::CapabilityTag& namespaceAndName, std::shared_ptr<StateProviderInterface> stateProvider));
40 const unsigned int stateRequestToken));
44 std::shared_ptr<ContextRequesterInterface>,
46 const std::chrono::milliseconds&));
50 std::shared_ptr<ContextRequesterInterface>,
52 const std::chrono::milliseconds&));
64 const unsigned int stateRequestToken));
69 const unsigned int stateRequestToken,
70 bool isEndpointUnreachable));
77 std::shared_ptr<avsCommon::sdkInterfaces::StateProviderInterface> stateProvider));
86 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_MOCKCONTEXTMANAGER_H_ MOCK_METHOD3(getContext, ContextRequestToken(std::shared_ptr< ContextRequesterInterface >, const std::string &, const std::chrono::milliseconds &))
virtual void provideStateUnavailableResponse(const avs::CapabilityTag &capabilityIdentifier, ContextRequestToken stateRequestToken, bool isEndpointUnreachable)=0
virtual void setStateProvider(const avs::CapabilityTag &capabilityIdentifier, std::shared_ptr< StateProviderInterface > stateProvider)=0
virtual void provideStateResponse(const avs::CapabilityTag &capabilityIdentifier, const avs::CapabilityState &capabilityState, ContextRequestToken stateRequestToken)=0
SetStateResult
Definition: ContextManagerInterface.h:39
Definition: CapabilityTag.h:32
virtual ContextRequestToken getContext(std::shared_ptr< ContextRequesterInterface > contextRequester, const std::string &endpointId="", const std::chrono::milliseconds &timeout=std::chrono::seconds(2))=0
Definition: AmdMetricWrapperTest.cpp:24
::std::string string
Definition: gtest-port.h:1097
virtual ContextRequestToken getContextWithoutReportableStateProperties(std::shared_ptr< ContextRequesterInterface > contextRequester, const std::string &endpointId="", const std::chrono::milliseconds &timeout=std::chrono::seconds(2))=0
StateRefreshPolicy
Definition: StateRefreshPolicy.h:31
unsigned int ContextRequestToken
Alias for the token used to identify a context request.
Definition: ContextRequestToken.h:23
AlexaStateChangeCauseType
Definition: AlexaStateChangeCauseType.h:28
virtual void addStateProvider(const avsCommon::avs::CapabilityTag &capabilityIdentifier, std::shared_ptr< avsCommon::sdkInterfaces::StateProviderInterface > stateProvider)=0
virtual void reportStateChange(const avs::CapabilityTag &capabilityIdentifier, const avs::CapabilityState &capabilityState, AlexaStateChangeCauseType cause)=0
virtual void removeStateProvider(const avs::CapabilityTag &capabilityIdentifier)=0
virtual void removeContextManagerObserver(const std::shared_ptr< ContextManagerObserverInterface > &observer)=0
MOCK_METHOD4(setState, SetStateResult(const avs::CapabilityTag &namespaceAndName, const std::string &jsonState, const avs::StateRefreshPolicy &refreshPolicy, const unsigned int stateRequestToken))
Definition: CapabilityState.h:31
Definition: ContextManagerInterface.h:63
MOCK_METHOD1(addContextManagerObserver, void(std::shared_ptr< ContextManagerObserverInterface > observer))
virtual SetStateResult setState(const avs::CapabilityTag &capabilityIdentifier, const std::string &jsonState, const avs::StateRefreshPolicy &refreshPolicy, const ContextRequestToken stateRequestToken=0)=0
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Mock class that implements the ContextManager.
Definition: MockContextManager.h:28
MOCK_METHOD2(setStateProvider, void(const avs::CapabilityTag &namespaceAndName, std::shared_ptr< StateProviderInterface > stateProvider))
MOCK_METHOD0(doShutdown, void())
virtual void addContextManagerObserver(std::shared_ptr< ContextManagerObserverInterface > observer)=0