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::alexaPresentation::test::AlexaPresentationTest Class Reference

Test harness for AlexaPresentationTest class. More...

Inheritance diagram for alexaClientSDK::alexaPresentation::test::AlexaPresentationTest:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::alexaPresentation::test::AlexaPresentationTest:
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...
 
 AlexaPresentationTest ()
 Constructor. More...
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 

Protected Attributes

std::shared_ptr< StrictMock< test::MockContextManager > > m_mockContextManager
 A strict mock that allows the test to fetch context. More...
 
std::shared_ptr< StrictMock< test::MockExceptionEncounteredSender > > m_mockExceptionSender
 A strict mock that allows the test to strictly monitor the exceptions being sent. More...
 
std::unique_ptr< StrictMock< test::MockDirectiveHandlerResult > > m_mockDirectiveHandlerResult
 A strict mock that allows the test to strictly monitor the handling of directives. More...
 
std::shared_ptr< StrictMock< test::MockMessageSender > > m_mockMessageSender
 The mock MessageSenderInterface. More...
 
std::mutex m_mutex
 mutex for the conditional variables. More...
 
std::condition_variable m_contextTrigger
 This is the condition variable to be used to control getting of a context in test cases. More...
 
std::shared_ptr< alexaPresentationInterfaces::AlexaPresentationCapabilityAgentInterfacem_AlexaCA
 A pointer to an instance of the AlexaPresentationCapabilityAgentInterface. More...
 
std::shared_ptr< AlexaPresentation > m_AlexaPresentation
 A pointer to an instance of the AlexaPresentation that will be instantiated per test. More...
 
std::shared_ptr< alexaClientSDK::avsCommon::utils::threading::Executorm_executor
 The pointer into the Executor used by the tested object. 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 AlexaPresentationTest class.

Constructor & Destructor Documentation

◆ AlexaPresentationTest()

alexaClientSDK::alexaPresentation::test::AlexaPresentationTest::AlexaPresentationTest ( )
inline

Constructor.

Member Function Documentation

◆ SetUp()

void alexaClientSDK::alexaPresentation::test::AlexaPresentationTest::SetUp ( )
overridevirtual

Set up the test harness for running a test.

Reimplemented from testing::Test.

◆ TearDown()

void alexaClientSDK::alexaPresentation::test::AlexaPresentationTest::TearDown ( )
overridevirtual

Clean up the test harness after running a test.

Reimplemented from testing::Test.

Member Data Documentation

◆ m_AlexaCA

std::shared_ptr<alexaPresentationInterfaces::AlexaPresentationCapabilityAgentInterface> alexaClientSDK::alexaPresentation::test::AlexaPresentationTest::m_AlexaCA
protected

A pointer to an instance of the AlexaPresentationCapabilityAgentInterface.

◆ m_AlexaPresentation

std::shared_ptr<AlexaPresentation> alexaClientSDK::alexaPresentation::test::AlexaPresentationTest::m_AlexaPresentation
protected

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

◆ m_contextTrigger

std::condition_variable alexaClientSDK::alexaPresentation::test::AlexaPresentationTest::m_contextTrigger
protected

This is the condition variable to be used to control getting of a context in test cases.

◆ m_executor

std::shared_ptr<alexaClientSDK::avsCommon::utils::threading::Executor> alexaClientSDK::alexaPresentation::test::AlexaPresentationTest::m_executor
protected

The pointer into the Executor used by the tested object.

◆ m_mockContextManager

std::shared_ptr<StrictMock<test::MockContextManager> > alexaClientSDK::alexaPresentation::test::AlexaPresentationTest::m_mockContextManager
protected

A strict mock that allows the test to fetch context.

◆ m_mockDirectiveHandlerResult

std::unique_ptr<StrictMock<test::MockDirectiveHandlerResult> > alexaClientSDK::alexaPresentation::test::AlexaPresentationTest::m_mockDirectiveHandlerResult
protected

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

◆ m_mockExceptionSender

std::shared_ptr<StrictMock<test::MockExceptionEncounteredSender> > alexaClientSDK::alexaPresentation::test::AlexaPresentationTest::m_mockExceptionSender
protected

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

◆ m_mockMessageSender

std::shared_ptr<StrictMock<test::MockMessageSender> > alexaClientSDK::alexaPresentation::test::AlexaPresentationTest::m_mockMessageSender
protected

The mock MessageSenderInterface.

◆ m_mutex

std::mutex alexaClientSDK::alexaPresentation::test::AlexaPresentationTest::m_mutex
protected

mutex for the conditional variables.


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