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

Public Member Functions

 AlertSchedulerTest ()
 
void SetUp () override
 
std::shared_ptr< TestAlertdoSimpleTestSetup (bool activateAlert=false, bool initWithAlertObserver=false)
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 

Protected Attributes

std::shared_ptr< MockAlertStoragem_alertStorage
 
std::shared_ptr< MockRendererm_alertRenderer
 
std::chrono::seconds m_alertPastDueTimeLimit
 
std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterfacem_metricRecorder
 
std::shared_ptr< AlertSchedulerm_alertScheduler
 
std::shared_ptr< TestAlertObserverm_testAlertObserver
 
std::shared_ptr< settings::DeviceSettingsManagerm_settingsManager
 

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)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void TearDown ()
 

Constructor & Destructor Documentation

◆ AlertSchedulerTest()

alexaClientSDK::acsdkAlerts::test::AlertSchedulerTest::AlertSchedulerTest ( )

Member Function Documentation

◆ doSimpleTestSetup()

std::shared_ptr< TestAlert > alexaClientSDK::acsdkAlerts::test::AlertSchedulerTest::doSimpleTestSetup ( bool  activateAlert = false,
bool  initWithAlertObserver = false 
)

Helper method that does a basic setup for tests. The method performs the following functions: 1 - Creates a test alert and adds it to be scheduled 2 - If initializing with alert scheduler observer, then creates alert scheduler observer 3 - Initializes the alert scheduler 4 - Based on the argument, may initialize the alert

The method will return the scheduled alert

◆ SetUp()

void alexaClientSDK::acsdkAlerts::test::AlertSchedulerTest::SetUp ( )
overridevirtual

Reimplemented from testing::Test.

Member Data Documentation

◆ m_alertPastDueTimeLimit

std::chrono::seconds alexaClientSDK::acsdkAlerts::test::AlertSchedulerTest::m_alertPastDueTimeLimit
protected

◆ m_alertRenderer

std::shared_ptr<MockRenderer> alexaClientSDK::acsdkAlerts::test::AlertSchedulerTest::m_alertRenderer
protected

◆ m_alertScheduler

std::shared_ptr<AlertScheduler> alexaClientSDK::acsdkAlerts::test::AlertSchedulerTest::m_alertScheduler
protected

◆ m_alertStorage

std::shared_ptr<MockAlertStorage> alexaClientSDK::acsdkAlerts::test::AlertSchedulerTest::m_alertStorage
protected

◆ m_metricRecorder

std::shared_ptr<avsCommon::utils::metrics::MetricRecorderInterface> alexaClientSDK::acsdkAlerts::test::AlertSchedulerTest::m_metricRecorder
protected

◆ m_settingsManager

std::shared_ptr<settings::DeviceSettingsManager> alexaClientSDK::acsdkAlerts::test::AlertSchedulerTest::m_settingsManager
protected

◆ m_testAlertObserver

std::shared_ptr<TestAlertObserver> alexaClientSDK::acsdkAlerts::test::AlertSchedulerTest::m_testAlertObserver
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