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::apiGateway::test::ApiGatewayCapabilityAgentTest Class Reference
Inheritance diagram for alexaClientSDK::capabilityAgents::apiGateway::test::ApiGatewayCapabilityAgentTest:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::capabilityAgents::apiGateway::test::ApiGatewayCapabilityAgentTest:
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...
 
 ApiGatewayCapabilityAgentTest ()
 

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< StrictMock< MockAVSGatewayManager > > m_mockAVSGatewayManager
 A strict mock that allows the test to strictly monitor calls to AVSGatewayManager. 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< ApiGatewayCapabilityAgentm_apiGatewayCA
 A pointer to an instance of ApiGatewayCapabilityAgent that will be instantiated per test. More...
 

Detailed Description

Test harness for ApiGatewayCapabilityAgent class.

Constructor & Destructor Documentation

◆ ApiGatewayCapabilityAgentTest()

alexaClientSDK::capabilityAgents::apiGateway::test::ApiGatewayCapabilityAgentTest::ApiGatewayCapabilityAgentTest ( )
inline

Constructor.

Member Function Documentation

◆ SetUp()

void alexaClientSDK::capabilityAgents::apiGateway::test::ApiGatewayCapabilityAgentTest::SetUp ( )
override

Setup the test harness for running a test.

◆ TearDown()

void alexaClientSDK::capabilityAgents::apiGateway::test::ApiGatewayCapabilityAgentTest::TearDown ( )
override

Clean up the test harness for running a test.

◆ wakeOnSetCompleted()

void alexaClientSDK::capabilityAgents::apiGateway::test::ApiGatewayCapabilityAgentTest::wakeOnSetCompleted ( )

Function to set the promise and wake @ m_wakeSetCompleteFuture.

Member Data Documentation

◆ m_apiGatewayCA

std::shared_ptr<ApiGatewayCapabilityAgent> alexaClientSDK::capabilityAgents::apiGateway::test::ApiGatewayCapabilityAgentTest::m_apiGatewayCA
protected

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

◆ m_mockAVSGatewayManager

std::shared_ptr<StrictMock<MockAVSGatewayManager> > alexaClientSDK::capabilityAgents::apiGateway::test::ApiGatewayCapabilityAgentTest::m_mockAVSGatewayManager
protected

A strict mock that allows the test to strictly monitor calls to AVSGatewayManager.

◆ m_mockDirectiveHandlerResult

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

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

◆ m_wakeSetCompletedFuture

std::future<void> alexaClientSDK::capabilityAgents::apiGateway::test::ApiGatewayCapabilityAgentTest::m_wakeSetCompletedFuture
protected

Future to synchronize directive handling through setCompleted.

◆ m_wakeSetCompletedPromise

std::promise<void> alexaClientSDK::capabilityAgents::apiGateway::test::ApiGatewayCapabilityAgentTest::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