AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Protected Attributes | List of all members
alexaClientSDK::templateRuntime::test::TemplateRuntimeTest Class Reference

Test harness for TemplateRuntime class. More...

Inheritance diagram for alexaClientSDK::templateRuntime::test::TemplateRuntimeTest:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::templateRuntime::test::TemplateRuntimeTest:
Collaboration graph
[legend]

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...
 
- Public Member Functions inherited from testing::Test
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< MockMediaPropertiesFetcherm_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

- 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 ()
 

Detailed Description

Test harness for TemplateRuntime class.

Constructor & Destructor Documentation

◆ TemplateRuntimeTest()

alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::TemplateRuntimeTest ( )
inline

A constructor which initializes the promises and futures needed for the test class.

Member Function Documentation

◆ SetUp()

void alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::SetUp ( )
overridevirtual

Set up the test harness for running a test.

Reimplemented from testing::Test.

◆ TearDown()

void alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::TearDown ( )
overridevirtual

Clean up the test harness after running a test.

Reimplemented from testing::Test.

◆ wakeOnClearPlayerInfoCard()

void alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::wakeOnClearPlayerInfoCard ( )

Function to set the promise and wake m_wakeClearPlayerInfoCardFuture.

◆ wakeOnClearTemplateCard()

void alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::wakeOnClearTemplateCard ( )

Function to set the promise and wake m_wakeClearTemplateCardFuture.

◆ wakeOnRenderPlayerInfoCard()

void alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::wakeOnRenderPlayerInfoCard ( )

Function to set the promise and wake m_wakeRenderPlayerInfoCardFuture.

◆ wakeOnRenderTemplateCard()

void alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::wakeOnRenderTemplateCard ( )

Function to set the promise and wake m_wakeRenderTemplateCardFuture.

◆ wakeOnSetCompleted()

void alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::wakeOnSetCompleted ( )

Function to set the promise and wake m_wakeSetCompleteFuture.

Member Data Documentation

◆ m_mediaPropertiesFetcher

std::shared_ptr<MockMediaPropertiesFetcher> alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::m_mediaPropertiesFetcher
protected

A nice mock for the MediaPropertiesInterface calls.

◆ m_mockDirectiveHandlerResult

std::unique_ptr<StrictMock<MockDirectiveHandlerResult> > alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::m_mockDirectiveHandlerResult
protected

A strict mock that allows the test to strictly monitor the handling of directives.

◆ m_mockExceptionSender

std::shared_ptr<StrictMock<MockExceptionEncounteredSender> > alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::m_mockExceptionSender
protected

A strict mock that allows the test to strictly monitor the exceptions being sent.

◆ m_mockGui

std::shared_ptr<StrictMock<MockGui> > alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::m_mockGui
protected

A strict mock to allow testing of the observer callback.

◆ m_mockRenderPlayerInfoCardsProvider

std::shared_ptr<NiceMock<MockRenderInfoCardsPlayer> > alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::m_mockRenderPlayerInfoCardsProvider
protected

A nice mock for the RenderInfoCardsInterface calls.

◆ m_templateRuntime

std::shared_ptr<templateRuntime::TemplateRuntime> alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::m_templateRuntime
protected

A pointer to an instance of the TemplateRuntime that will be instantiated per test.

◆ m_wakeClearPlayerInfoCardFuture

std::future<void> alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::m_wakeClearPlayerInfoCardFuture
protected

Future to synchronize ClearPlayerInfoCard callback.

◆ m_wakeClearPlayerInfoCardPromise

std::promise<void> alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::m_wakeClearPlayerInfoCardPromise
protected

Promise to synchronize ClearPlayerInfoCard callback.

◆ m_wakeClearTemplateCardFuture

std::future<void> alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::m_wakeClearTemplateCardFuture
protected

Future to synchronize ClearTemplateCard callback.

◆ m_wakeClearTemplateCardPromise

std::promise<void> alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::m_wakeClearTemplateCardPromise
protected

Promise to synchronize ClearTemplateCard callback.

◆ m_wakeReleaseChannelFuture

std::future<void> alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::m_wakeReleaseChannelFuture
protected

Future to synchronize releaseChannel calls.

◆ m_wakeReleaseChannelPromise

std::promise<void> alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::m_wakeReleaseChannelPromise
protected

Promise to synchronize releaseChannel calls.

◆ m_wakeRenderPlayerInfoCardFuture

std::future<void> alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::m_wakeRenderPlayerInfoCardFuture
protected

Future to synchronize directive handling with RenderPlayerInfoCard callback.

◆ m_wakeRenderPlayerInfoCardPromise

std::promise<void> alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::m_wakeRenderPlayerInfoCardPromise
protected

Promise to synchronize directive handling with RenderPlayerInfoCard callback.

◆ m_wakeRenderTemplateCardFuture

std::future<void> alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::m_wakeRenderTemplateCardFuture
protected

Future to synchronize directive handling with RenderTemplateCard callback.

◆ m_wakeRenderTemplateCardPromise

std::promise<void> alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::m_wakeRenderTemplateCardPromise
protected

Promise to synchronize directive handling with RenderTemplateCard callback.

◆ m_wakeSetCompletedFuture

std::future<void> alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::m_wakeSetCompletedFuture
protected

Future to synchronize directive handling through setCompleted.

◆ m_wakeSetCompletedPromise

std::promise<void> alexaClientSDK::templateRuntime::test::TemplateRuntimeTest::m_wakeSetCompletedPromise
protected

Promise to synchronize directive handling through setCompleted.


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