AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
alexaClientSDK::alexaChannelController::test::AlexaChannelControllerCapabilityAgentTest Class Reference
Inheritance diagram for alexaClientSDK::alexaChannelController::test::AlexaChannelControllerCapabilityAgentTest:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::alexaChannelController::test::AlexaChannelControllerCapabilityAgentTest:
Collaboration graph
[legend]

Public Member Functions

void SetUp () override
 SetUp before each test case. More...
 
void TearDown () override
 Clean up the test harness after running a test. More...
 
 AlexaChannelControllerCapabilityAgentTest ()
 Constructor. More...
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 

Protected Member Functions

std::shared_ptr< AlexaChannelControllerCapabilityAgent > createCapabilityAgentAndSetExpects (bool proactivelyReported, bool retrievable)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 

Protected Attributes

std::shared_ptr< StrictMock< MockAlexaChannelControllerInterface > > m_mockChannelController
 A mock AlexaChannelControllerHandlerInterface object. More...
 
std::weak_ptr< ChannelControllerObserverInterfacem_observer
 A mock AlexaChannelControllerObserverInterface object. More...
 
std::shared_ptr< StrictMock< avsCommon::sdkInterfaces::test::MockContextManager > > m_mockContextManager
 
std::shared_ptr< StrictMock< avsCommon::sdkInterfaces::test::MockAlexaInterfaceMessageSender > > m_mockResponseSender
 The mock MessageSenderInterface. More...
 
std::shared_ptr< StrictMock< avsCommon::sdkInterfaces::test::MockExceptionEncounteredSender > > m_mockExceptionSender
 A strict mock that allows the test to strictly monitor the exceptions being sent. More...
 
std::unique_ptr< StrictMock< avsCommon::sdkInterfaces::test::MockDirectiveHandlerResult > > m_mockDirectiveHandlerResult
 A strict mock that allows the test to strictly monitor the handling of directives. More...
 
std::unique_ptr< Channelm_channel
 
std::unique_ptr< Channelm_channelState
 The test ChannelState. 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)
 

Constructor & Destructor Documentation

◆ AlexaChannelControllerCapabilityAgentTest()

alexaClientSDK::alexaChannelController::test::AlexaChannelControllerCapabilityAgentTest::AlexaChannelControllerCapabilityAgentTest ( )
inline

Constructor.

Member Function Documentation

◆ createCapabilityAgentAndSetExpects()

std::shared_ptr< AlexaChannelControllerCapabilityAgent > alexaClientSDK::alexaChannelController::test::AlexaChannelControllerCapabilityAgentTest::createCapabilityAgentAndSetExpects ( bool  proactivelyReported,
bool  retrievable 
)
protected

Function to create AlexaChannelControllerCapabilityAgent based on the reportable flags and sets required ContextManager and ChannelController mocks.

◆ SetUp()

void alexaClientSDK::alexaChannelController::test::AlexaChannelControllerCapabilityAgentTest::SetUp ( )
overridevirtual

SetUp before each test case.

Reimplemented from testing::Test.

◆ TearDown()

void alexaClientSDK::alexaChannelController::test::AlexaChannelControllerCapabilityAgentTest::TearDown ( )
overridevirtual

Clean up the test harness after running a test.

Reimplemented from testing::Test.

Member Data Documentation

◆ m_channel

std::unique_ptr<Channel> alexaClientSDK::alexaChannelController::test::AlexaChannelControllerCapabilityAgentTest::m_channel
protected

◆ m_channelState

std::unique_ptr<Channel> alexaClientSDK::alexaChannelController::test::AlexaChannelControllerCapabilityAgentTest::m_channelState
protected

The test ChannelState.

◆ m_mockChannelController

std::shared_ptr<StrictMock<MockAlexaChannelControllerInterface> > alexaClientSDK::alexaChannelController::test::AlexaChannelControllerCapabilityAgentTest::m_mockChannelController
protected

A mock AlexaChannelControllerHandlerInterface object.

◆ m_mockContextManager

std::shared_ptr<StrictMock<avsCommon::sdkInterfaces::test::MockContextManager> > alexaClientSDK::alexaChannelController::test::AlexaChannelControllerCapabilityAgentTest::m_mockContextManager
protected

◆ m_mockDirectiveHandlerResult

std::unique_ptr<StrictMock<avsCommon::sdkInterfaces::test::MockDirectiveHandlerResult> > alexaClientSDK::alexaChannelController::test::AlexaChannelControllerCapabilityAgentTest::m_mockDirectiveHandlerResult
protected

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

◆ m_mockExceptionSender

std::shared_ptr<StrictMock<avsCommon::sdkInterfaces::test::MockExceptionEncounteredSender> > alexaClientSDK::alexaChannelController::test::AlexaChannelControllerCapabilityAgentTest::m_mockExceptionSender
protected

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

◆ m_mockResponseSender

std::shared_ptr<StrictMock<avsCommon::sdkInterfaces::test::MockAlexaInterfaceMessageSender> > alexaClientSDK::alexaChannelController::test::AlexaChannelControllerCapabilityAgentTest::m_mockResponseSender
protected

The mock MessageSenderInterface.

◆ m_observer

std::weak_ptr<ChannelControllerObserverInterface> alexaClientSDK::alexaChannelController::test::AlexaChannelControllerCapabilityAgentTest::m_observer
protected

A mock AlexaChannelControllerObserverInterface object.


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