AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
AlertSchedulerTest.cpp File Reference
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <gmock/gmock-actions.h>
#include <AVSCommon/Utils/Metrics/MetricRecorderInterface.h>
#include <AVSCommon/Utils/Metrics/MockMetricRecorder.h>
#include <AVSCommon/Utils/Timing/TimeUtils.h>
#include <RegistrationManager/MockCustomerDataManager.h>
#include <Settings/DeviceSettingsManager.h>
#include "acsdkAlerts/AlertScheduler.h"
Include dependency graph for AlertSchedulerTest.cpp:

Classes

class  alexaClientSDK::acsdkAlerts::test::MockRenderer
 
class  alexaClientSDK::acsdkAlerts::test::TestAlert
 
class  alexaClientSDK::acsdkAlerts::test::MockAlertStorage
 
class  alexaClientSDK::acsdkAlerts::test::TestAlertObserver
 
class  alexaClientSDK::acsdkAlerts::test::AlertSchedulerTest
 

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::acsdkAlerts
 
 alexaClientSDK::acsdkAlerts::test
 

Functions

static std::string alexaClientSDK::acsdkAlerts::test::getFutureInstant (int yearsPlus)
 
static std::string alexaClientSDK::acsdkAlerts::test::getTimeNow ()
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_initialize)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_updateGetFocus)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, DISABLED_test_scheduleAlert)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, DISABLED_test_reloadAlertsFromDatabaseWithScheduling)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_reloadAlertsFromDatabaseWithoutScheduling)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_updateAlertTime)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_updateAlertAssets)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_rescheduleAlertNow)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_rescheduleAlertFails)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_snoozeAlert)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_deleteAlertSingle)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_bulkDeleteAlertsSingle)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_bulkDeleteAlertsMultipleExisting)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_bulkDeleteAlertsMultipleMixed)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_bulkDeleteAlertsMultipleMissing)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_bulkDeleteAlertsMultipleSame)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_bulkDeleteAlertsMultipleEmpty)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_isAlertActive)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_getContextInfo)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_onLocalStop)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_clearData)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_clearDataLogout)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_shutdown)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_onAlertStateChangeStartedInactiveAlert)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_onAlertStateChangeStartedActiveAlert)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_onAlertStateChangeStopped)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_onAlertStateChangeCompleted)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_onAlertStateChangeSnoozed)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_onAlertStateChangeErrorActiveAlert)
 
 alexaClientSDK::acsdkAlerts::test::TEST_F (AlertSchedulerTest, test_onAlertStateChangeErrorInactiveAlert)
 

Variables

static const std::string alexaClientSDK::acsdkAlerts::test::ALERT1_TOKEN = "token1"
 Tokens for alerts. More...
 
static const std::string alexaClientSDK::acsdkAlerts::test::ALERT2_TOKEN = "token2"
 
static const std::string alexaClientSDK::acsdkAlerts::test::ALERT3_TOKEN = "token3"
 
static const std::string alexaClientSDK::acsdkAlerts::test::ALERT4_TOKEN = "token4"
 
static const std::string alexaClientSDK::acsdkAlerts::test::TYPE_ALARM_STRING = AlertObserverInterface::typeToString(TYPE_ALARM)
 
static const std::string alexaClientSDK::acsdkAlerts::test::PAST_INSTANT = "2000-01-01T12:34:56+0000"
 A schedule instant in the past for alerts. More...
 
static const std::string alexaClientSDK::acsdkAlerts::test::FUTURE_INSTANT_SUFFIX = "-01-01T12:34:56+0000"
 A schedule instant in the future for alerts. More...
 
static const std::chrono::milliseconds alexaClientSDK::acsdkAlerts::test::TEST_TIMEOUT {100}
 Amount of time that the alert observer should wait for a task to finish. More...
 
static const std::chrono::seconds alexaClientSDK::acsdkAlerts::test::ALERT_PAST_DUE_TIME_LIMIT {10}
 Alert past due time limit. More...
 

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0