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::aplCapabilityCommon::test::BaseAPLCapabilityAgentTest Class Reference

Test harness for BaseAPLCapabilityAgent class. More...

Inheritance diagram for alexaClientSDK::aplCapabilityCommon::test::BaseAPLCapabilityAgentTest:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::aplCapabilityCommon::test::BaseAPLCapabilityAgentTest:
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...
 
 BaseAPLCapabilityAgentTest ()
 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::condition_variable m_contextTrigger
 This is the condition variable to be used to control getting of a context in test cases. More...
 
std::mutex m_mutex
 mutex for the conditional variables. More...
 
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< NiceMock< MockAPLCapabilityAgentObserver > > m_mockAPLObserver
 A strict mock to allow testing of the observer callback. More...
 
std::shared_ptr< APLCATestm_APLCATest
 A pointer to an instance of the APLCATest that will be instantiated per test. More...
 
std::shared_ptr< aplCapabilityCommonInterfaces::APLCapabilityAgentInterfacem_aplCA
 A pointer to an instance of the APLCapabilityAgentInterface that will be instantiated per test. More...
 
std::shared_ptr< StrictMock< test::MockMessageSender > > m_mockMessageSender
 The mock MessageSenderInterface. More...
 
std::shared_ptr< StrictMock< MockVisualStateProvider > > m_mockVisualStateProvider
 A strict mock to allow testing for visual state provider. More...
 
std::shared_ptr< alexaClientSDK::avsCommon::utils::threading::Executorm_executor
 

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 BaseAPLCapabilityAgent class.

Constructor & Destructor Documentation

◆ BaseAPLCapabilityAgentTest()

alexaClientSDK::aplCapabilityCommon::test::BaseAPLCapabilityAgentTest::BaseAPLCapabilityAgentTest ( )
inline

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

Member Function Documentation

◆ SetUp()

void alexaClientSDK::aplCapabilityCommon::test::BaseAPLCapabilityAgentTest::SetUp ( )
overridevirtual

Set up the test harness for running a test.

Reimplemented from testing::Test.

◆ TearDown()

void alexaClientSDK::aplCapabilityCommon::test::BaseAPLCapabilityAgentTest::TearDown ( )
overridevirtual

Clean up the test harness after running a test.

Reimplemented from testing::Test.

Member Data Documentation

◆ m_aplCA

std::shared_ptr<aplCapabilityCommonInterfaces::APLCapabilityAgentInterface> alexaClientSDK::aplCapabilityCommon::test::BaseAPLCapabilityAgentTest::m_aplCA
protected

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

◆ m_APLCATest

std::shared_ptr<APLCATest> alexaClientSDK::aplCapabilityCommon::test::BaseAPLCapabilityAgentTest::m_APLCATest
protected

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

◆ m_contextTrigger

std::condition_variable alexaClientSDK::aplCapabilityCommon::test::BaseAPLCapabilityAgentTest::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::aplCapabilityCommon::test::BaseAPLCapabilityAgentTest::m_executor
protected

◆ m_mockAPLObserver

std::shared_ptr<NiceMock<MockAPLCapabilityAgentObserver> > alexaClientSDK::aplCapabilityCommon::test::BaseAPLCapabilityAgentTest::m_mockAPLObserver
protected

A strict mock to allow testing of the observer callback.

◆ m_mockContextManager

std::shared_ptr<StrictMock<test::MockContextManager> > alexaClientSDK::aplCapabilityCommon::test::BaseAPLCapabilityAgentTest::m_mockContextManager
protected

A strict mock that allows the test to fetch context.

◆ m_mockDirectiveHandlerResult

std::unique_ptr<StrictMock<test::MockDirectiveHandlerResult> > alexaClientSDK::aplCapabilityCommon::test::BaseAPLCapabilityAgentTest::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::aplCapabilityCommon::test::BaseAPLCapabilityAgentTest::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::aplCapabilityCommon::test::BaseAPLCapabilityAgentTest::m_mockMessageSender
protected

The mock MessageSenderInterface.

◆ m_mockVisualStateProvider

std::shared_ptr<StrictMock<MockVisualStateProvider> > alexaClientSDK::aplCapabilityCommon::test::BaseAPLCapabilityAgentTest::m_mockVisualStateProvider
protected

A strict mock to allow testing for visual state provider.

◆ m_mutex

std::mutex alexaClientSDK::aplCapabilityCommon::test::BaseAPLCapabilityAgentTest::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