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::capabilityAgents::alexa::test::AlexaInterfaceCapabilityAgentTest Class Reference
Inheritance diagram for alexaClientSDK::capabilityAgents::alexa::test::AlexaInterfaceCapabilityAgentTest:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::capabilityAgents::alexa::test::AlexaInterfaceCapabilityAgentTest:
Collaboration graph
[legend]

Public Member Functions

void SetUp () override
 Setup the test harness for running a test. More...
 
void TearDown () override
 Clean up the test harness for running a test. More...
 
void wakeOnSetCompleted ()
 Function to set the promise and wake @ m_wakeSetCompleteFuture. More...
 
 AlexaInterfaceCapabilityAgentTest ()
 

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::unique_ptr< StrictMock< MockDirectiveHandlerResult > > m_mockDirectiveHandlerResult
 A strict mock that allows the test to strictly monitor the handling of directives. More...
 
std::shared_ptr< avsCommon::utils::DeviceInfom_deviceInfo
 Device info object to pass to the CA. More...
 
std::shared_ptr< StrictMock< MockExceptionEncounteredSender > > m_mockExceptionSender
 A strict mock that allows the test to strictly monitor the exceptions being sent. More...
 
std::shared_ptr< MockAlexaInterfaceMessageSenderInternalm_mockAlexaMessageSender
 A mock that allows the test to monitor calls to MockAlexaInterfaceMessageSenderInternal. More...
 
std::shared_ptr< AlexaInterfaceCapabilityAgentm_alexaInterfaceCapabilityAgent
 A pointer to an instance of AlexaInterfaceCapabilityAgent that will be instantiated per test. More...
 

Detailed Description

Test harness for EventProcessedHandler class.

Constructor & Destructor Documentation

◆ AlexaInterfaceCapabilityAgentTest()

alexaClientSDK::capabilityAgents::alexa::test::AlexaInterfaceCapabilityAgentTest::AlexaInterfaceCapabilityAgentTest ( )
inline

Constructor.

Member Function Documentation

◆ SetUp()

void alexaClientSDK::capabilityAgents::alexa::test::AlexaInterfaceCapabilityAgentTest::SetUp ( )
override

Setup the test harness for running a test.

◆ TearDown()

void alexaClientSDK::capabilityAgents::alexa::test::AlexaInterfaceCapabilityAgentTest::TearDown ( )
override

Clean up the test harness for running a test.

◆ wakeOnSetCompleted()

void alexaClientSDK::capabilityAgents::alexa::test::AlexaInterfaceCapabilityAgentTest::wakeOnSetCompleted ( )

Function to set the promise and wake @ m_wakeSetCompleteFuture.

Member Data Documentation

◆ m_alexaInterfaceCapabilityAgent

std::shared_ptr<AlexaInterfaceCapabilityAgent> alexaClientSDK::capabilityAgents::alexa::test::AlexaInterfaceCapabilityAgentTest::m_alexaInterfaceCapabilityAgent
protected

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

◆ m_deviceInfo

std::shared_ptr<avsCommon::utils::DeviceInfo> alexaClientSDK::capabilityAgents::alexa::test::AlexaInterfaceCapabilityAgentTest::m_deviceInfo
protected

Device info object to pass to the CA.

◆ m_mockAlexaMessageSender

std::shared_ptr<MockAlexaInterfaceMessageSenderInternal> alexaClientSDK::capabilityAgents::alexa::test::AlexaInterfaceCapabilityAgentTest::m_mockAlexaMessageSender
protected

A mock that allows the test to monitor calls to MockAlexaInterfaceMessageSenderInternal.

◆ m_mockDirectiveHandlerResult

std::unique_ptr<StrictMock<MockDirectiveHandlerResult> > alexaClientSDK::capabilityAgents::alexa::test::AlexaInterfaceCapabilityAgentTest::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::capabilityAgents::alexa::test::AlexaInterfaceCapabilityAgentTest::m_mockExceptionSender
protected

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

◆ m_wakeSetCompletedFuture

std::future<void> alexaClientSDK::capabilityAgents::alexa::test::AlexaInterfaceCapabilityAgentTest::m_wakeSetCompletedFuture
protected

Future to synchronize directive handling through setCompleted.

◆ m_wakeSetCompletedPromise

std::promise<void> alexaClientSDK::capabilityAgents::alexa::test::AlexaInterfaceCapabilityAgentTest::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