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

Protected Member Functions

std::shared_ptr< AlexaKeypadControllerCapabilityAgent > createCapabilityAgentAndSetExpects ()
 
- Protected Member Functions inherited from testing::Test
 Test ()
 

Protected Attributes

std::shared_ptr< StrictMock< MockAlexaKeypadControllerInterface > > m_mockKeypadController
 A mock AlexaKeypadControllerInterface object. More...
 
std::shared_ptr< StrictMock< avsCommon::sdkInterfaces::test::MockContextManager > > m_mockContextManager
 The mock MockContextManager. More...
 
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::shared_ptr< AlexaKeypadControllerCapabilityAgent > m_KeypadControllerCapablityAgent
 A pointer to an instance of the KeypadController that will be instantiated per test. 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

◆ AlexaKeypadControllerCapabilityAgentTest()

alexaClientSDK::acsdkAlexaKeypadController::test::AlexaKeypadControllerCapabilityAgentTest::AlexaKeypadControllerCapabilityAgentTest ( )
inline

Constructor.

Member Function Documentation

◆ createCapabilityAgentAndSetExpects()

std::shared_ptr<AlexaKeypadControllerCapabilityAgent> alexaClientSDK::acsdkAlexaKeypadController::test::AlexaKeypadControllerCapabilityAgentTest::createCapabilityAgentAndSetExpects ( )
protected

Function to create AlexaKeypadControllerCapabilityAgent based on the reportable flags and sets required ContextManager and KeypadController mocks.

◆ SetUp()

void alexaClientSDK::acsdkAlexaKeypadController::test::AlexaKeypadControllerCapabilityAgentTest::SetUp ( )
overridevirtual

SetUp before each test case.

Reimplemented from testing::Test.

◆ TearDown()

void alexaClientSDK::acsdkAlexaKeypadController::test::AlexaKeypadControllerCapabilityAgentTest::TearDown ( )
overridevirtual

Clean up the test harness after running a test.

Reimplemented from testing::Test.

Member Data Documentation

◆ m_KeypadControllerCapablityAgent

std::shared_ptr<AlexaKeypadControllerCapabilityAgent> alexaClientSDK::acsdkAlexaKeypadController::test::AlexaKeypadControllerCapabilityAgentTest::m_KeypadControllerCapablityAgent
protected

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

◆ m_mockContextManager

std::shared_ptr<StrictMock<avsCommon::sdkInterfaces::test::MockContextManager> > alexaClientSDK::acsdkAlexaKeypadController::test::AlexaKeypadControllerCapabilityAgentTest::m_mockContextManager
protected

The mock MockContextManager.

◆ m_mockDirectiveHandlerResult

std::unique_ptr<StrictMock<avsCommon::sdkInterfaces::test::MockDirectiveHandlerResult> > alexaClientSDK::acsdkAlexaKeypadController::test::AlexaKeypadControllerCapabilityAgentTest::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::acsdkAlexaKeypadController::test::AlexaKeypadControllerCapabilityAgentTest::m_mockExceptionSender
protected

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

◆ m_mockKeypadController

std::shared_ptr<StrictMock<MockAlexaKeypadControllerInterface> > alexaClientSDK::acsdkAlexaKeypadController::test::AlexaKeypadControllerCapabilityAgentTest::m_mockKeypadController
protected

A mock AlexaKeypadControllerInterface object.

◆ m_mockResponseSender

std::shared_ptr<StrictMock<avsCommon::sdkInterfaces::test::MockAlexaInterfaceMessageSender> > alexaClientSDK::acsdkAlexaKeypadController::test::AlexaKeypadControllerCapabilityAgentTest::m_mockResponseSender
protected

The mock MessageSenderInterface.


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