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

Public Member Functions

 SpeechSynthesizerTest ()
 
void SetUp () override
 
void TearDown () override
 
SetStateResult wakeOnSetState ()
 
bool wakeOnAcquireChannel ()
 
std::future< bool > wakeOnReleaseChannel ()
 
void wakeOnSetCompleted ()
 
void wakeOnSetFailed ()
 
void wakeOnSendMessage ()
 
void wakeOnStopped ()
 
bool setupPendingSpeech (std::unique_ptr< DirectiveHandlerResultInterface > resultHandler, const SpeakTestInfo &info)
 
bool setupActiveSpeech (std::unique_ptr< DirectiveHandlerResultInterface > resultHandler, const SpeakTestInfo &info)
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 

Public Attributes

std::shared_ptr< SpeechSynthesizerm_speechSynthesizer
 SpeechSynthesizer to test More...
 
std::shared_ptr< MockMediaPlayerm_mockSpeechPlayer
 Player to send the audio to. More...
 
std::shared_ptr< MockContextManagerm_mockContextManager
 ContextManager to provide state and update state. More...
 
std::shared_ptr< MockSpeechSynthesizerObserverm_mockSpeechSynthesizerObserver
 Mock SpeechSynthesizerObserver for testing. More...
 
std::promise< void > m_wakeSetStatePromise
 Promise to be fulfilled when setState is called. More...
 
std::future< void > m_wakeSetStateFuture
 Future to notify when setState is called. More...
 
std::shared_ptr< MockFocusManagerm_mockFocusManager
 FocusManager to request focus to the DIALOG channel. More...
 
std::promise< void > m_wakeAcquireChannelPromise
 Promise to be fulfilled when acquireChannel is called. More...
 
std::future< void > m_wakeAcquireChannelFuture
 Future to notify when acquireChannel is called. More...
 
std::promise< void > m_wakeReleaseChannelPromise
 Promise to be fulfilled when releaseChannel is called. More...
 
std::future< void > m_wakeReleaseChannelFuture
 Future to notify when releaseChannel is called. More...
 
std::unique_ptr< MockDirectiveHandlerResultm_mockDirHandlerResult
 A directive handler result to send the result to. More...
 
std::promise< void > m_wakeSetCompletedPromise
 Promise to be fulfilled when setCompleted is called. More...
 
std::future< void > m_wakeSetCompletedFuture
 Future to notify when setCompleted is called. More...
 
std::promise< void > m_wakeSetFailedPromise
 Promise to be fulfilled when setFailed is called. More...
 
std::future< void > m_wakeSetFailedFuture
 Future to notify when setFailed is called. More...
 
std::shared_ptr< MockMessageSenderm_mockMessageSender
 A message sender used to send events to AVS. More...
 
std::promise< void > m_wakeSendMessagePromise
 Promise to be fulfilled when sendMessage is called. More...
 
std::future< void > m_wakeSendMessageFuture
 Future to notify when sendMessage is called. More...
 
std::promise< void > m_wakeStoppedPromise
 Promise to be fulfilled when stop is called. More...
 
std::future< void > m_wakeStoppedFuture
 Future to notify when stop is called. More...
 
std::shared_ptr< MockExceptionEncounteredSenderm_mockExceptionSender
 An exception sender used to send exception encountered events to AVS. More...
 
std::shared_ptr< AttachmentManagerm_attachmentManager
 Attachment manager used to create a reader. More...
 
std::shared_ptr< MetricRecorderInterfacem_metricRecorder
 Metric recorder used to record metric. More...
 
std::shared_ptr< avsCommon::avs::DialogUXStateAggregatorm_dialogUXStateAggregator
 The DialogUXStateAggregator to test with. More...
 
std::shared_ptr< MockCaptionManagerm_mockCaptionManager
 A mock CaptionManager instance to handle captions parsing. More...
 
std::shared_ptr< avsCommon::sdkInterfaces::test::MockPowerResourceManagerm_mockPowerResourceManager
 The mock PowerResourceManagerInterface. More...
 
std::shared_ptr< acsdkApplicationAudioPipelineFactoryInterfaces::test::MockApplicationAudioPipelineFactorym_mockAudioPipelineFactory
 The mock ApplicationAudioPipelineFactoryInterface. More...
 

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
- Static Public Member Functions inherited from testing::Test
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 

Constructor & Destructor Documentation

◆ SpeechSynthesizerTest()

alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::SpeechSynthesizerTest ( )

Member Function Documentation

◆ SetUp()

void alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::SetUp ( )
overridevirtual

Reimplemented from testing::Test.

◆ setupActiveSpeech()

bool alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::setupActiveSpeech ( std::unique_ptr< DirectiveHandlerResultInterface resultHandler,
const SpeakTestInfo info 
)

Setup speech synthesizer to have an active speech directive.

Parameters
resultHandlerthe result handler for the new speech directive.
infoInformation used to generate and activate the new speech directive.
Returns
true if it succeed; false otherwise.

◆ setupPendingSpeech()

bool alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::setupPendingSpeech ( std::unique_ptr< DirectiveHandlerResultInterface resultHandler,
const SpeakTestInfo info 
)

Setup speech synthesizer to have a pending speech directive.

Parameters
resultHandlerthe result handler for the new speech directive.
infoInformation used to generate the new speech directive.
Returns
true if it succeed; false otherwise.

◆ TearDown()

void alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::TearDown ( )
overridevirtual

Reimplemented from testing::Test.

◆ wakeOnAcquireChannel()

bool alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::wakeOnAcquireChannel ( )

Fulfills the m_wakeAcquireChannelPromise. This is invoked in response to a acquireChannel call.

Returns
true

◆ wakeOnReleaseChannel()

std::future< bool > alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::wakeOnReleaseChannel ( )

Fulfills the m_wakeReleaseChannelPromise. This is invoked in response to a releaseChannel call.

Returns
true

◆ wakeOnSendMessage()

void alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::wakeOnSendMessage ( )

Fulfills the m_wakeSendMessagePromise. This is invoked in response to a sendMessage call.

◆ wakeOnSetCompleted()

void alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::wakeOnSetCompleted ( )

Fulfills the m_wakeSetCompletedPromise. This is invoked in response to a setCompleted call.

◆ wakeOnSetFailed()

void alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::wakeOnSetFailed ( )

Fulfills the m_wakeSetFailedPromise. This is invoked in response to a setFailed call.

◆ wakeOnSetState()

SetStateResult alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::wakeOnSetState ( )

Fulfills the m_wakeSetStatePromise. This is invoked in response to a setState call.

Returns
SUCCESS.

◆ wakeOnStopped()

void alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::wakeOnStopped ( )

Fulfills the m_wakeStoppedPromise. This is invoked in response to a stop call.

Member Data Documentation

◆ m_attachmentManager

std::shared_ptr<AttachmentManager> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_attachmentManager

Attachment manager used to create a reader.

◆ m_dialogUXStateAggregator

std::shared_ptr<avsCommon::avs::DialogUXStateAggregator> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_dialogUXStateAggregator

The DialogUXStateAggregator to test with.

◆ m_metricRecorder

std::shared_ptr<MetricRecorderInterface> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_metricRecorder

Metric recorder used to record metric.

◆ m_mockAudioPipelineFactory

std::shared_ptr<acsdkApplicationAudioPipelineFactoryInterfaces::test::MockApplicationAudioPipelineFactory> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_mockAudioPipelineFactory

The mock ApplicationAudioPipelineFactoryInterface.

◆ m_mockCaptionManager

std::shared_ptr<MockCaptionManager> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_mockCaptionManager

A mock CaptionManager instance to handle captions parsing.

◆ m_mockContextManager

std::shared_ptr<MockContextManager> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_mockContextManager

ContextManager to provide state and update state.

◆ m_mockDirHandlerResult

std::unique_ptr<MockDirectiveHandlerResult> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_mockDirHandlerResult

A directive handler result to send the result to.

◆ m_mockExceptionSender

std::shared_ptr<MockExceptionEncounteredSender> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_mockExceptionSender

An exception sender used to send exception encountered events to AVS.

◆ m_mockFocusManager

std::shared_ptr<MockFocusManager> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_mockFocusManager

FocusManager to request focus to the DIALOG channel.

◆ m_mockMessageSender

std::shared_ptr<MockMessageSender> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_mockMessageSender

A message sender used to send events to AVS.

◆ m_mockPowerResourceManager

std::shared_ptr<avsCommon::sdkInterfaces::test::MockPowerResourceManager> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_mockPowerResourceManager

The mock PowerResourceManagerInterface.

◆ m_mockSpeechPlayer

std::shared_ptr<MockMediaPlayer> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_mockSpeechPlayer

Player to send the audio to.

◆ m_mockSpeechSynthesizerObserver

std::shared_ptr<MockSpeechSynthesizerObserver> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_mockSpeechSynthesizerObserver

Mock SpeechSynthesizerObserver for testing.

◆ m_speechSynthesizer

std::shared_ptr<SpeechSynthesizer> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_speechSynthesizer

◆ m_wakeAcquireChannelFuture

std::future<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeAcquireChannelFuture

Future to notify when acquireChannel is called.

◆ m_wakeAcquireChannelPromise

std::promise<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeAcquireChannelPromise

Promise to be fulfilled when acquireChannel is called.

◆ m_wakeReleaseChannelFuture

std::future<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeReleaseChannelFuture

Future to notify when releaseChannel is called.

◆ m_wakeReleaseChannelPromise

std::promise<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeReleaseChannelPromise

Promise to be fulfilled when releaseChannel is called.

◆ m_wakeSendMessageFuture

std::future<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeSendMessageFuture

Future to notify when sendMessage is called.

◆ m_wakeSendMessagePromise

std::promise<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeSendMessagePromise

Promise to be fulfilled when sendMessage is called.

◆ m_wakeSetCompletedFuture

std::future<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeSetCompletedFuture

Future to notify when setCompleted is called.

◆ m_wakeSetCompletedPromise

std::promise<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeSetCompletedPromise

Promise to be fulfilled when setCompleted is called.

◆ m_wakeSetFailedFuture

std::future<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeSetFailedFuture

Future to notify when setFailed is called.

◆ m_wakeSetFailedPromise

std::promise<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeSetFailedPromise

Promise to be fulfilled when setFailed is called.

◆ m_wakeSetStateFuture

std::future<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeSetStateFuture

Future to notify when setState is called.

◆ m_wakeSetStatePromise

std::promise<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeSetStatePromise

Promise to be fulfilled when setState is called.

◆ m_wakeStoppedFuture

std::future<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeStoppedFuture

Future to notify when stop is called.

◆ m_wakeStoppedPromise

std::promise<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeStoppedPromise

Promise to be fulfilled when stop is called.


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