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

Protected Member Functions

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

Protected Attributes

std::shared_ptr< StrictMock< MockRecordControllerHandlerInterface > > m_mockRecordController
 A mock RecordControllerInterface 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...
 
bool m_isRecording
 The current recording state. 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

◆ AlexaRecordControllerCapabilityAgentTest()

alexaClientSDK::alexaRecordController::test::AlexaRecordControllerCapabilityAgentTest::AlexaRecordControllerCapabilityAgentTest ( )
inline

Constructor.

Member Function Documentation

◆ createCapabilityAgentAndSetExpects()

std::shared_ptr< AlexaRecordControllerCapabilityAgent > alexaClientSDK::alexaRecordController::test::AlexaRecordControllerCapabilityAgentTest::createCapabilityAgentAndSetExpects ( bool  retrievable)
protected

Function to create AlexaRecordControllerCapabilityAgent based on the reportable flags and sets required ContextManager and AlexaRecordController mocks.

◆ SetUp()

void alexaClientSDK::alexaRecordController::test::AlexaRecordControllerCapabilityAgentTest::SetUp ( )
overridevirtual

SetUp before each test case.

Reimplemented from testing::Test.

◆ TearDown()

void alexaClientSDK::alexaRecordController::test::AlexaRecordControllerCapabilityAgentTest::TearDown ( )
overridevirtual

Clean up the test harness after running a test.

Reimplemented from testing::Test.

Member Data Documentation

◆ m_isRecording

bool alexaClientSDK::alexaRecordController::test::AlexaRecordControllerCapabilityAgentTest::m_isRecording
protected

The current recording state.

◆ m_mockContextManager

std::shared_ptr<StrictMock<avsCommon::sdkInterfaces::test::MockContextManager> > alexaClientSDK::alexaRecordController::test::AlexaRecordControllerCapabilityAgentTest::m_mockContextManager
protected

◆ m_mockDirectiveHandlerResult

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

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

◆ m_mockRecordController

std::shared_ptr<StrictMock<MockRecordControllerHandlerInterface> > alexaClientSDK::alexaRecordController::test::AlexaRecordControllerCapabilityAgentTest::m_mockRecordController
protected

A mock RecordControllerInterface object.

◆ m_mockResponseSender

std::shared_ptr<StrictMock<avsCommon::sdkInterfaces::test::MockAlexaInterfaceMessageSender> > alexaClientSDK::alexaRecordController::test::AlexaRecordControllerCapabilityAgentTest::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