![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
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) |
![]() | |
virtual | ~Test () |
Public Attributes | |
std::shared_ptr< SpeechSynthesizer > | m_speechSynthesizer |
SpeechSynthesizer to test More... | |
std::shared_ptr< MockMediaPlayer > | m_mockSpeechPlayer |
Player to send the audio to. More... | |
std::shared_ptr< MockContextManager > | m_mockContextManager |
ContextManager to provide state and update state. More... | |
std::shared_ptr< MockSpeechSynthesizerObserver > | m_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< MockFocusManager > | m_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< MockDirectiveHandlerResult > | m_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< MockMessageSender > | m_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< MockExceptionEncounteredSender > | m_mockExceptionSender |
An exception sender used to send exception encountered events to AVS. More... | |
std::shared_ptr< AttachmentManager > | m_attachmentManager |
Attachment manager used to create a reader. More... | |
std::shared_ptr< MetricRecorderInterface > | m_metricRecorder |
Metric recorder used to record metric. More... | |
std::shared_ptr< avsCommon::avs::DialogUXStateAggregator > | m_dialogUXStateAggregator |
The DialogUXStateAggregator to test with. More... | |
std::shared_ptr< MockCaptionManager > | m_mockCaptionManager |
A mock CaptionManager instance to handle captions parsing. More... | |
std::shared_ptr< avsCommon::sdkInterfaces::test::MockPowerResourceManager > | m_mockPowerResourceManager |
The mock PowerResourceManagerInterface . More... | |
std::shared_ptr< acsdkApplicationAudioPipelineFactoryInterfaces::test::MockApplicationAudioPipelineFactory > | m_mockAudioPipelineFactory |
The mock ApplicationAudioPipelineFactoryInterface . More... | |
Additional Inherited Members | |
![]() | |
typedef internal::SetUpTestCaseFunc | SetUpTestCaseFunc |
typedef internal::TearDownTestCaseFunc | TearDownTestCaseFunc |
![]() | |
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) |
![]() | |
Test () | |
alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::SpeechSynthesizerTest | ( | ) |
|
overridevirtual |
Reimplemented from testing::Test.
bool alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::setupActiveSpeech | ( | std::unique_ptr< DirectiveHandlerResultInterface > | resultHandler, |
const SpeakTestInfo & | info | ||
) |
Setup speech synthesizer to have an active speech directive.
resultHandler | the result handler for the new speech directive. |
info | Information used to generate and activate the new speech directive. |
true
if it succeed; false
otherwise. bool alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::setupPendingSpeech | ( | std::unique_ptr< DirectiveHandlerResultInterface > | resultHandler, |
const SpeakTestInfo & | info | ||
) |
Setup speech synthesizer to have a pending speech directive.
resultHandler | the result handler for the new speech directive. |
info | Information used to generate the new speech directive. |
true
if it succeed; false
otherwise.
|
overridevirtual |
Reimplemented from testing::Test.
bool alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::wakeOnAcquireChannel | ( | ) |
Fulfills the m_wakeAcquireChannelPromise
. This is invoked in response to a acquireChannel
call.
true
std::future< bool > alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::wakeOnReleaseChannel | ( | ) |
Fulfills the m_wakeReleaseChannelPromise
. This is invoked in response to a releaseChannel
call.
true
void alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::wakeOnSendMessage | ( | ) |
Fulfills the m_wakeSendMessagePromise
. This is invoked in response to a sendMessage
call.
void alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::wakeOnSetCompleted | ( | ) |
Fulfills the m_wakeSetCompletedPromise
. This is invoked in response to a setCompleted
call.
void alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::wakeOnSetFailed | ( | ) |
Fulfills the m_wakeSetFailedPromise
. This is invoked in response to a setFailed
call.
SetStateResult alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::wakeOnSetState | ( | ) |
Fulfills the m_wakeSetStatePromise
. This is invoked in response to a setState
call.
SUCCESS
. void alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::wakeOnStopped | ( | ) |
Fulfills the m_wakeStoppedPromise
. This is invoked in response to a stop
call.
std::shared_ptr<AttachmentManager> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_attachmentManager |
Attachment manager used to create a reader.
std::shared_ptr<avsCommon::avs::DialogUXStateAggregator> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_dialogUXStateAggregator |
The DialogUXStateAggregator
to test with.
std::shared_ptr<MetricRecorderInterface> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_metricRecorder |
Metric recorder used to record metric.
std::shared_ptr<acsdkApplicationAudioPipelineFactoryInterfaces::test::MockApplicationAudioPipelineFactory> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_mockAudioPipelineFactory |
The mock ApplicationAudioPipelineFactoryInterface
.
std::shared_ptr<MockCaptionManager> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_mockCaptionManager |
A mock CaptionManager
instance to handle captions parsing.
std::shared_ptr<MockContextManager> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_mockContextManager |
ContextManager
to provide state and update state.
std::unique_ptr<MockDirectiveHandlerResult> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_mockDirHandlerResult |
A directive handler result to send the result to.
std::shared_ptr<MockExceptionEncounteredSender> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_mockExceptionSender |
An exception sender used to send exception encountered events to AVS.
std::shared_ptr<MockFocusManager> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_mockFocusManager |
FocusManager
to request focus to the DIALOG channel.
std::shared_ptr<MockMessageSender> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_mockMessageSender |
A message sender used to send events to AVS.
std::shared_ptr<avsCommon::sdkInterfaces::test::MockPowerResourceManager> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_mockPowerResourceManager |
The mock PowerResourceManagerInterface
.
std::shared_ptr<MockMediaPlayer> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_mockSpeechPlayer |
Player to send the audio to.
std::shared_ptr<MockSpeechSynthesizerObserver> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_mockSpeechSynthesizerObserver |
Mock SpeechSynthesizerObserver for testing.
std::shared_ptr<SpeechSynthesizer> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_speechSynthesizer |
SpeechSynthesizer
to test
std::future<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeAcquireChannelFuture |
Future to notify when acquireChannel
is called.
std::promise<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeAcquireChannelPromise |
Promise to be fulfilled when acquireChannel
is called.
std::future<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeReleaseChannelFuture |
Future to notify when releaseChannel
is called.
std::promise<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeReleaseChannelPromise |
Promise to be fulfilled when releaseChannel
is called.
std::future<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeSendMessageFuture |
Future to notify when sendMessage
is called.
std::promise<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeSendMessagePromise |
Promise to be fulfilled when sendMessage
is called.
std::future<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeSetCompletedFuture |
Future to notify when setCompleted
is called.
std::promise<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeSetCompletedPromise |
Promise to be fulfilled when setCompleted
is called.
std::future<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeSetFailedFuture |
Future to notify when setFailed
is called.
std::promise<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeSetFailedPromise |
Promise to be fulfilled when setFailed
is called.
std::future<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeSetStateFuture |
Future to notify when setState
is called.
std::promise<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeSetStatePromise |
Promise to be fulfilled when setState
is called.
std::future<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeStoppedFuture |
Future to notify when stop
is called.
std::promise<void> alexaClientSDK::capabilityAgents::speechSynthesizer::test::SpeechSynthesizerTest::m_wakeStoppedPromise |
Promise to be fulfilled when stop
is called.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0