![]() |
AlexaClientSDK
3.0.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... | |
TemplateRuntimeTest () | |
A constructor which initializes the promises and futures needed for the test class. More... | |
![]() | |
virtual | ~Test () |
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< StrictMock< MockGui > > | m_mockGui |
A strict mock to allow testing of the observer callback. More... | |
std::shared_ptr< templateRuntime::TemplateRuntime > | m_templateRuntime |
A pointer to an instance of the TemplateRuntime that will be instantiated per test. 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 () | |
Test harness for TemplateRuntime
class.
|
inline |
A constructor which initializes the promises and futures needed for the test class.
|
overridevirtual |
Set up the test harness for running a test.
Reimplemented from testing::Test.
|
overridevirtual |
Clean up the test harness after running a test.
Reimplemented from testing::Test.
void alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::wakeOnClearPlayerInfoCard | ( | ) |
Function to set the promise and wake m_wakeClearPlayerInfoCardFuture
.
void alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::wakeOnClearTemplateCard | ( | ) |
Function to set the promise and wake m_wakeClearTemplateCardFuture
.
void alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::wakeOnRenderPlayerInfoCard | ( | ) |
Function to set the promise and wake m_wakeRenderPlayerInfoCardFuture
.
void alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::wakeOnRenderTemplateCard | ( | ) |
Function to set the promise and wake m_wakeRenderTemplateCardFuture
.
void alexaClientSDK::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 |
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 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0