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::capabilityAgents::doNotDisturb::test::DoNotDisturbCapabilityAgentTest Class Reference

Test harness for DoNotDisturbCapabilityAgent class. More...

Inheritance diagram for alexaClientSDK::capabilityAgents::doNotDisturb::test::DoNotDisturbCapabilityAgentTest:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::capabilityAgents::doNotDisturb::test::DoNotDisturbCapabilityAgentTest:
Collaboration graph
[legend]

Public Member Functions

void SetUp () override
 Set up the test harness for running a test. More...
 
bool expectEventSend (const std::string &eventName, MessageRequestObserverInterface::Status statusReported, std::function< void()> triggerOperation)
 Helper method to set up mocks for an upcoming event. More...
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 

Protected Member Functions

void TearDown () override
 
- Protected Member Functions inherited from testing::Test
 Test ()
 

Protected Attributes

std::shared_ptr< DoNotDisturbCapabilityAgentm_dndCA
 The InteractionModelCapabilityAgent instance to be tested. More...
 
std::shared_ptr< MockMessageSenderm_messageSender
 Message sender mock to track messages being sent. More...
 
std::shared_ptr< avsCommon::sdkInterfaces::test::MockExceptionEncounteredSenderm_mockExceptionEncounteredSender
 The mock ExceptionEncounteredSenderInterface. More...
 
std::shared_ptr< MockDeviceSettingStoragem_settingsStorage
 Storage for the settings. 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)
 

Detailed Description

Test harness for DoNotDisturbCapabilityAgent class.

Member Function Documentation

◆ expectEventSend()

bool alexaClientSDK::capabilityAgents::doNotDisturb::test::DoNotDisturbCapabilityAgentTest::expectEventSend ( const std::string &  eventName,
MessageRequestObserverInterface::Status  statusReported,
std::function< void()>  triggerOperation 
)

Helper method to set up mocks for an upcoming event.

◆ SetUp()

void alexaClientSDK::capabilityAgents::doNotDisturb::test::DoNotDisturbCapabilityAgentTest::SetUp ( )
overridevirtual

Set up the test harness for running a test.

Reimplemented from testing::Test.

◆ TearDown()

void alexaClientSDK::capabilityAgents::doNotDisturb::test::DoNotDisturbCapabilityAgentTest::TearDown ( )
overrideprotectedvirtual

Reimplemented from testing::Test.

Member Data Documentation

◆ m_dndCA

std::shared_ptr<DoNotDisturbCapabilityAgent> alexaClientSDK::capabilityAgents::doNotDisturb::test::DoNotDisturbCapabilityAgentTest::m_dndCA
protected

The InteractionModelCapabilityAgent instance to be tested.

◆ m_messageSender

std::shared_ptr<MockMessageSender> alexaClientSDK::capabilityAgents::doNotDisturb::test::DoNotDisturbCapabilityAgentTest::m_messageSender
protected

Message sender mock to track messages being sent.

◆ m_mockExceptionEncounteredSender

std::shared_ptr<avsCommon::sdkInterfaces::test::MockExceptionEncounteredSender> alexaClientSDK::capabilityAgents::doNotDisturb::test::DoNotDisturbCapabilityAgentTest::m_mockExceptionEncounteredSender
protected

The mock ExceptionEncounteredSenderInterface.

◆ m_settingsStorage

std::shared_ptr<MockDeviceSettingStorage> alexaClientSDK::capabilityAgents::doNotDisturb::test::DoNotDisturbCapabilityAgentTest::m_settingsStorage
protected

Storage for the settings.


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