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

Protected Member Functions

virtual void SetUp () override
 
void sendEvent (const std::string &jsonContent, std::shared_ptr< avsCommon::avs::attachment::AttachmentReader > attachmentReader, avsCommon::sdkInterfaces::MessageRequestObserverInterface::Status expectedStatus, std::chrono::seconds timeout)
 
void setupMessageAndSend (const std::string &json, avsCommon::sdkInterfaces::MessageRequestObserverInterface::Status expectedStatus, std::chrono::seconds timeout)
 
void setupMessageWithAttachmentAndSend (const std::string &json, std::string &file, avsCommon::sdkInterfaces::MessageRequestObserverInterface::Status expectedStatus, std::chrono::seconds timeout)
 
FocusState waitForFocusChange (std::chrono::milliseconds timeout)
 
void TearDown () override
 
void connect ()
 
void disconnect ()
 
bool checkSentEventName (TestMessageSender::SendParams sendParams, std::string expectedName)
 

Protected Attributes

std::unique_ptr< ACLTestContextm_context
 Context for running ACL based tests. More...
 
std::shared_ptr< TestMessageSenderm_avsConnectionManager
 
std::shared_ptr< TestExceptionEncounteredSenderm_exceptionEncounteredSender
 
std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterfacem_metricRecorder
 
std::shared_ptr< TestDirectiveHandlerm_directiveHandler
 
std::shared_ptr< DirectiveSequencerInterfacem_directiveSequencer
 
std::shared_ptr< MessageInterpreterm_messageInterpreter
 
std::shared_ptr< TestSpeechSynthesizerObserverm_speechSynthesizerObserver
 
std::shared_ptr< SpeechSynthesizerm_speechSynthesizer
 
std::shared_ptr< acsdkInteractionModelInterfaces::InteractionModelNotifierInterfacem_interactionModelNotifier
 
std::shared_ptr< InteractionModelCapabilityAgentm_interactionModelCA
 
acsdkManufactory::Annotated< DefaultEndpointAnnotation, EndpointCapabilitiesRegistrarInterfacem_endpointCapabilitiesRegistrar
 
std::shared_ptr< avsCommon::avs::DialogUXStateAggregatorm_dialogUXStateAggregator
 
std::shared_ptr< FocusManagerm_focusManager
 
std::shared_ptr< TestClientm_testClient
 
FocusState m_focusState
 
std::mutex m_mutex
 
std::condition_variable m_focusChanged
 
bool m_focusChangeOccurred
 
std::shared_ptr< TestMediaPlayerm_mediaPlayer
 

Member Function Documentation

◆ checkSentEventName()

bool alexaClientSDK::integration::test::SpeechSynthesizerTest::checkSentEventName ( TestMessageSender::SendParams  sendParams,
std::string  expectedName 
)
inlineprotected

◆ connect()

void alexaClientSDK::integration::test::SpeechSynthesizerTest::connect ( )
inlineprotected

Connect to AVS.

◆ disconnect()

void alexaClientSDK::integration::test::SpeechSynthesizerTest::disconnect ( )
inlineprotected

Disconnect from AVS.

◆ sendEvent()

void alexaClientSDK::integration::test::SpeechSynthesizerTest::sendEvent ( const std::string &  jsonContent,
std::shared_ptr< avsCommon::avs::attachment::AttachmentReader attachmentReader,
avsCommon::sdkInterfaces::MessageRequestObserverInterface::Status  expectedStatus,
std::chrono::seconds  timeout 
)
inlineprotected

Send and event to AVS. Blocks until a status is received.

Parameters
messageThe message to send.
expectStatusThe status to expect from the call to send the message.
timeoutHow long to wait for a result from delivering the message.

◆ SetUp()

virtual void alexaClientSDK::integration::test::SpeechSynthesizerTest::SetUp ( )
inlineoverrideprotectedvirtual

◆ setupMessageAndSend()

void alexaClientSDK::integration::test::SpeechSynthesizerTest::setupMessageAndSend ( const std::string &  json,
avsCommon::sdkInterfaces::MessageRequestObserverInterface::Status  expectedStatus,
std::chrono::seconds  timeout 
)
inlineprotected

Function to setup a message and send it to AVS.

Parameters
jsonA JSON string containing the message to send.
expectStatusThe status to expect from the call to send the message.
timeoutHow long to wait for a result from delivering the message.

◆ setupMessageWithAttachmentAndSend()

void alexaClientSDK::integration::test::SpeechSynthesizerTest::setupMessageWithAttachmentAndSend ( const std::string &  json,
std::string &  file,
avsCommon::sdkInterfaces::MessageRequestObserverInterface::Status  expectedStatus,
std::chrono::seconds  timeout 
)
inlineprotected

Function to setup a message with an attachment and send it to AVS.

Parameters
jsonA JSON string containing the message to send.
fileName of the file to read the attachment from.
expectStatusThe status to expect from the call to send the message.
timeoutHow long to wait for a result from delivering the message.

◆ TearDown()

void alexaClientSDK::integration::test::SpeechSynthesizerTest::TearDown ( )
inlineoverrideprotected

◆ waitForFocusChange()

FocusState alexaClientSDK::integration::test::SpeechSynthesizerTest::waitForFocusChange ( std::chrono::milliseconds  timeout)
inlineprotected

Waits for the ChannelObserverInterface##onFocusChanged() callback.

Parameters
timeoutThe amount of time to wait for the callback.
focusChangedAn output parameter that notifies the caller whether a callback occurred.
Returns
Returns true if the callback occured within the timeout period and false otherwise.

Member Data Documentation

◆ m_avsConnectionManager

std::shared_ptr<TestMessageSender> alexaClientSDK::integration::test::SpeechSynthesizerTest::m_avsConnectionManager
protected

◆ m_context

std::unique_ptr<ACLTestContext> alexaClientSDK::integration::test::SpeechSynthesizerTest::m_context
protected

Context for running ACL based tests.

◆ m_dialogUXStateAggregator

std::shared_ptr<avsCommon::avs::DialogUXStateAggregator> alexaClientSDK::integration::test::SpeechSynthesizerTest::m_dialogUXStateAggregator
protected

◆ m_directiveHandler

std::shared_ptr<TestDirectiveHandler> alexaClientSDK::integration::test::SpeechSynthesizerTest::m_directiveHandler
protected

◆ m_directiveSequencer

std::shared_ptr<DirectiveSequencerInterface> alexaClientSDK::integration::test::SpeechSynthesizerTest::m_directiveSequencer
protected

◆ m_endpointCapabilitiesRegistrar

acsdkManufactory::Annotated<DefaultEndpointAnnotation, EndpointCapabilitiesRegistrarInterface> alexaClientSDK::integration::test::SpeechSynthesizerTest::m_endpointCapabilitiesRegistrar
protected

◆ m_exceptionEncounteredSender

std::shared_ptr<TestExceptionEncounteredSender> alexaClientSDK::integration::test::SpeechSynthesizerTest::m_exceptionEncounteredSender
protected

◆ m_focusChanged

std::condition_variable alexaClientSDK::integration::test::SpeechSynthesizerTest::m_focusChanged
protected

◆ m_focusChangeOccurred

bool alexaClientSDK::integration::test::SpeechSynthesizerTest::m_focusChangeOccurred
protected

◆ m_focusManager

std::shared_ptr<FocusManager> alexaClientSDK::integration::test::SpeechSynthesizerTest::m_focusManager
protected

◆ m_focusState

FocusState alexaClientSDK::integration::test::SpeechSynthesizerTest::m_focusState
protected

◆ m_interactionModelCA

std::shared_ptr<InteractionModelCapabilityAgent> alexaClientSDK::integration::test::SpeechSynthesizerTest::m_interactionModelCA
protected

◆ m_interactionModelNotifier

std::shared_ptr<acsdkInteractionModelInterfaces::InteractionModelNotifierInterface> alexaClientSDK::integration::test::SpeechSynthesizerTest::m_interactionModelNotifier
protected

◆ m_mediaPlayer

std::shared_ptr<TestMediaPlayer> alexaClientSDK::integration::test::SpeechSynthesizerTest::m_mediaPlayer
protected

◆ m_messageInterpreter

std::shared_ptr<MessageInterpreter> alexaClientSDK::integration::test::SpeechSynthesizerTest::m_messageInterpreter
protected

◆ m_metricRecorder

std::shared_ptr<avsCommon::utils::metrics::MetricRecorderInterface> alexaClientSDK::integration::test::SpeechSynthesizerTest::m_metricRecorder
protected

◆ m_mutex

std::mutex alexaClientSDK::integration::test::SpeechSynthesizerTest::m_mutex
protected

◆ m_speechSynthesizer

std::shared_ptr<SpeechSynthesizer> alexaClientSDK::integration::test::SpeechSynthesizerTest::m_speechSynthesizer
protected

◆ m_speechSynthesizerObserver

std::shared_ptr<TestSpeechSynthesizerObserver> alexaClientSDK::integration::test::SpeechSynthesizerTest::m_speechSynthesizerObserver
protected

◆ m_testClient

std::shared_ptr<TestClient> alexaClientSDK::integration::test::SpeechSynthesizerTest::m_testClient
protected

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

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