AlexaClientSDK  1.23.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Protected Attributes | List of all members
alexaClientSDK::capabilityAgents::interactionModel::test::MockObserver Class Reference
Inheritance diagram for alexaClientSDK::capabilityAgents::interactionModel::test::MockObserver:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::capabilityAgents::interactionModel::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::avsCommon::sdkInterfaces::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::capabilityAgents::interactionModel::test::MockObserver::onRequestProcessingCompleted ( )
overridevirtual

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

Implements alexaClientSDK::avsCommon::sdkInterfaces::InteractionModelRequestProcessingObserverInterface.

◆ onRequestProcessingStarted()

void alexaClientSDK::capabilityAgents::interactionModel::test::MockObserver::onRequestProcessingStarted ( )
overridevirtual

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

Implements alexaClientSDK::avsCommon::sdkInterfaces::InteractionModelRequestProcessingObserverInterface.

◆ waitOnRPC()

bool alexaClientSDK::capabilityAgents::interactionModel::test::MockObserver::waitOnRPC ( )

Waits for the onRequestProcessingCompleted() function to be called.

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

◆ waitOnRPS()

bool alexaClientSDK::capabilityAgents::interactionModel::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::capabilityAgents::interactionModel::test::MockObserver::m_cond
protected

◆ m_mutex

std::mutex alexaClientSDK::capabilityAgents::interactionModel::test::MockObserver::m_mutex
protected

◆ m_rpcCalled

bool alexaClientSDK::capabilityAgents::interactionModel::test::MockObserver::m_rpcCalled
protected

◆ m_rpsCalled

bool alexaClientSDK::capabilityAgents::interactionModel::test::MockObserver::m_rpsCalled
protected

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

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