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

Protected Member Functions

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

Protected Attributes

std::shared_ptr< StrictMock< MockAlexaLauncherInterface > > m_mockLauncher
 A mock AlexaLauncherInterface 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...
 
acsdkAlexaLauncherInterfaces::TargetState m_targetState
 The test acsdkAlexaLauncherInterfaces::TargetState. 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

◆ AlexaLauncherCapabilityAgentTest()

alexaClientSDK::acsdkAlexaLauncher::test::AlexaLauncherCapabilityAgentTest::AlexaLauncherCapabilityAgentTest ( )
inline

Constructor.

Member Function Documentation

◆ createCapabilityAgentAndSetExpects()

std::shared_ptr< AlexaLauncherCapabilityAgent > alexaClientSDK::acsdkAlexaLauncher::test::AlexaLauncherCapabilityAgentTest::createCapabilityAgentAndSetExpects ( bool  provideState)
protected

Function to create AlexaLauncherCapabilityAgent based on the reportable flags and sets required ContextManager and Launcher mocks.

◆ SetUp()

void alexaClientSDK::acsdkAlexaLauncher::test::AlexaLauncherCapabilityAgentTest::SetUp ( )
overridevirtual

SetUp before each test case.

Reimplemented from testing::Test.

◆ TearDown()

void alexaClientSDK::acsdkAlexaLauncher::test::AlexaLauncherCapabilityAgentTest::TearDown ( )
overridevirtual

Clean up the test harness after running a test.

Reimplemented from testing::Test.

Member Data Documentation

◆ m_mockContextManager

std::shared_ptr<StrictMock<avsCommon::sdkInterfaces::test::MockContextManager> > alexaClientSDK::acsdkAlexaLauncher::test::AlexaLauncherCapabilityAgentTest::m_mockContextManager
protected

◆ m_mockDirectiveHandlerResult

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

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

◆ m_mockLauncher

std::shared_ptr<StrictMock<MockAlexaLauncherInterface> > alexaClientSDK::acsdkAlexaLauncher::test::AlexaLauncherCapabilityAgentTest::m_mockLauncher
protected

A mock AlexaLauncherInterface object.

◆ m_mockResponseSender

std::shared_ptr<StrictMock<avsCommon::sdkInterfaces::test::MockAlexaInterfaceMessageSender> > alexaClientSDK::acsdkAlexaLauncher::test::AlexaLauncherCapabilityAgentTest::m_mockResponseSender
protected

The mock MessageSenderInterface.

◆ m_targetState

acsdkAlexaLauncherInterfaces::TargetState alexaClientSDK::acsdkAlexaLauncher::test::AlexaLauncherCapabilityAgentTest::m_targetState
protected

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