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

Public Member Functions

bool waitOnRPS ()
 
bool waitOnRPC ()
 
InteractionModelRequestProcessingObserverInterface Functions
void onRequestProcessingStarted () override
 
void onRequestProcessingCompleted () override
 
- Public Member Functions inherited from alexaClientSDK::acsdkInteractionModelInterfaces::InteractionModelRequestProcessingObserverInterface
virtual ~InteractionModelRequestProcessingObserverInterface ()=default
 Destructor. More...
 

Protected Attributes

std::mutex m_mutex
 
std::condition_variable m_cond
 
bool m_rpcCalled
 
bool m_rpsCalled
 

Member Function Documentation

◆ onRequestProcessingCompleted()

void alexaClientSDK::acsdkInteractionModel::test::MockObserver::onRequestProcessingCompleted ( )
overridevirtual

Used to notify the observer that a Request Processing Completed was received.

Implements alexaClientSDK::acsdkInteractionModelInterfaces::InteractionModelRequestProcessingObserverInterface.

◆ onRequestProcessingStarted()

void alexaClientSDK::acsdkInteractionModel::test::MockObserver::onRequestProcessingStarted ( )
overridevirtual

Used to notify the observer that a Request Processing Started was received.

Implements alexaClientSDK::acsdkInteractionModelInterfaces::InteractionModelRequestProcessingObserverInterface.

◆ waitOnRPC()

bool alexaClientSDK::acsdkInteractionModel::test::MockObserver::waitOnRPC ( )

Waits for the onRequestProcessingCompleted() function to be called.

Returns
Whether or not onRequestProcessingCompleted() was called before the timeout.

◆ waitOnRPS()

bool alexaClientSDK::acsdkInteractionModel::test::MockObserver::waitOnRPS ( )

Waits for the onRequestProcessingStarted() function to be called.

Returns
Whether or not onRequestProcessingStarted() was called before the timeout.

Member Data Documentation

◆ m_cond

std::condition_variable alexaClientSDK::acsdkInteractionModel::test::MockObserver::m_cond
protected

◆ m_mutex

std::mutex alexaClientSDK::acsdkInteractionModel::test::MockObserver::m_mutex
protected

◆ m_rpcCalled

bool alexaClientSDK::acsdkInteractionModel::test::MockObserver::m_rpcCalled
protected

◆ m_rpsCalled

bool alexaClientSDK::acsdkInteractionModel::test::MockObserver::m_rpsCalled
protected

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