AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Test harness for TemplateRuntime
class.
More...
Public Member Functions | |
void | SetUp () override |
Set up the test harness for running a test. More... | |
void | TearDown () override |
Clean up the test harness after running a test. More... | |
void | wakeOnSetCompleted () |
Function to set the promise and wake m_wakeSetCompleteFuture . More... | |
void | wakeOnRenderTemplateCard () |
Function to set the promise and wake m_wakeRenderTemplateCardFuture . More... | |
void | wakeOnRenderPlayerInfoCard () |
Function to set the promise and wake m_wakeRenderPlayerInfoCardFuture . More... | |
void | wakeOnClearTemplateCard () |
Function to set the promise and wake m_wakeClearTemplateCardFuture . More... | |
void | wakeOnClearPlayerInfoCard () |
Function to set the promise and wake m_wakeClearPlayerInfoCardFuture . More... | |
void | wakeOnReleaseChannel () |
Function to set the promise and wake m_wakeReleaseChannelFuture . More... | |
TemplateRuntimeTest () | |
A constructor which initializes the promises and futures needed for the test class. More... | |
Protected Attributes | |
std::promise< void > | m_wakeSetCompletedPromise |
Promise to synchronize directive handling through setCompleted. More... | |
std::future< void > | m_wakeSetCompletedFuture |
Future to synchronize directive handling through setCompleted. More... | |
std::promise< void > | m_wakeRenderTemplateCardPromise |
Promise to synchronize directive handling with RenderTemplateCard callback. More... | |
std::future< void > | m_wakeRenderTemplateCardFuture |
Future to synchronize directive handling with RenderTemplateCard callback. More... | |
std::promise< void > | m_wakeRenderPlayerInfoCardPromise |
Promise to synchronize directive handling with RenderPlayerInfoCard callback. More... | |
std::future< void > | m_wakeRenderPlayerInfoCardFuture |
Future to synchronize directive handling with RenderPlayerInfoCard callback. More... | |
std::promise< void > | m_wakeClearTemplateCardPromise |
Promise to synchronize ClearTemplateCard callback. More... | |
std::future< void > | m_wakeClearTemplateCardFuture |
Future to synchronize ClearTemplateCard callback. More... | |
std::promise< void > | m_wakeClearPlayerInfoCardPromise |
Promise to synchronize ClearPlayerInfoCard callback. More... | |
std::future< void > | m_wakeClearPlayerInfoCardFuture |
Future to synchronize ClearPlayerInfoCard callback. More... | |
std::promise< void > | m_wakeReleaseChannelPromise |
Promise to synchronize releaseChannel calls. More... | |
std::future< void > | m_wakeReleaseChannelFuture |
Future to synchronize releaseChannel calls. More... | |
std::shared_ptr< NiceMock< MockRenderInfoCardsPlayer > > | m_mockRenderPlayerInfoCardsProvider |
A nice mock for the RenderInfoCardsInterface calls. More... | |
std::shared_ptr< MockMediaPropertiesFetcher > | m_mediaPropertiesFetcher |
A nice mock for the MediaPropertiesInterface calls. More... | |
std::shared_ptr< StrictMock< MockExceptionEncounteredSender > > | m_mockExceptionSender |
A strict mock that allows the test to strictly monitor the exceptions being sent. More... | |
std::unique_ptr< StrictMock< MockDirectiveHandlerResult > > | m_mockDirectiveHandlerResult |
A strict mock that allows the test to strictly monitor the handling of directives. More... | |
std::shared_ptr< MockFocusManager > | m_mockFocusManager |
FocusManager to request focus to the Visual channel. More... | |
std::shared_ptr< StrictMock< MockGui > > | m_mockGui |
A strict mock to allow testing of the observer callback. More... | |
std::shared_ptr< TemplateRuntime > | m_templateRuntime |
A pointer to an instance of the TemplateRuntime that will be instantiated per test. More... | |
Test harness for TemplateRuntime
class.
|
inline |
A constructor which initializes the promises and futures needed for the test class.
|
override |
Set up the test harness for running a test.
|
override |
Clean up the test harness after running a test.
void alexaClientSDK::capabilityAgents::templateRuntime::test::TemplateRuntimeTest::wakeOnClearPlayerInfoCard | ( | ) |
Function to set the promise and wake m_wakeClearPlayerInfoCardFuture
.
void alexaClientSDK::capabilityAgents::templateRuntime::test::TemplateRuntimeTest::wakeOnClearTemplateCard | ( | ) |
Function to set the promise and wake m_wakeClearTemplateCardFuture
.
void alexaClientSDK::capabilityAgents::templateRuntime::test::TemplateRuntimeTest::wakeOnReleaseChannel | ( | ) |
Function to set the promise and wake m_wakeReleaseChannelFuture
.
void alexaClientSDK::capabilityAgents::templateRuntime::test::TemplateRuntimeTest::wakeOnRenderPlayerInfoCard | ( | ) |
Function to set the promise and wake m_wakeRenderPlayerInfoCardFuture
.
void alexaClientSDK::capabilityAgents::templateRuntime::test::TemplateRuntimeTest::wakeOnRenderTemplateCard | ( | ) |
Function to set the promise and wake m_wakeRenderTemplateCardFuture
.
void alexaClientSDK::capabilityAgents::templateRuntime::test::TemplateRuntimeTest::wakeOnSetCompleted | ( | ) |
Function to set the promise and wake m_wakeSetCompleteFuture
.
|
protected |
A nice mock for the MediaPropertiesInterface calls.
|
protected |
A strict mock that allows the test to strictly monitor the handling of directives.
|
protected |
A strict mock that allows the test to strictly monitor the exceptions being sent.
|
protected |
FocusManager
to request focus to the Visual channel.
|
protected |
A strict mock to allow testing of the observer callback.
|
protected |
A nice mock for the RenderInfoCardsInterface calls.
|
protected |
A pointer to an instance of the TemplateRuntime that will be instantiated per test.
|
protected |
Future to synchronize ClearPlayerInfoCard callback.
|
protected |
Promise to synchronize ClearPlayerInfoCard callback.
|
protected |
Future to synchronize ClearTemplateCard callback.
|
protected |
Promise to synchronize ClearTemplateCard callback.
|
protected |
Future to synchronize releaseChannel calls.
|
protected |
Promise to synchronize releaseChannel calls.
|
protected |
Future to synchronize directive handling with RenderPlayerInfoCard callback.
|
protected |
Promise to synchronize directive handling with RenderPlayerInfoCard callback.
|
protected |
Future to synchronize directive handling with RenderTemplateCard callback.
|
protected |
Promise to synchronize directive handling with RenderTemplateCard callback.
|
protected |
Future to synchronize directive handling through setCompleted.
|
protected |
Promise to synchronize directive handling through setCompleted.
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0