AlexaClientSDK
1.19.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Classes | |
class | AlarmAlertTest |
class | AlertsCapabilityAgentTest |
class | AlertSchedulerTest |
class | AlertTest |
class | MockAlert |
class | MockAlertStorage |
class | MockRenderer |
class | ReminderAlertTest |
class | StubAlertStorage |
class | StubMessageStorage |
class | StubRenderer |
class | TestAlert |
class | TestAlertObserver |
class | TestMessageSender |
class | TimerAlertTest |
Functions | |
TEST_F (AlarmAlertTest, test_defaultAudio) | |
TEST_F (AlarmAlertTest, test_shortAudio) | |
TEST_F (AlarmAlertTest, test_getTypeName) | |
TEST_F (AlertsCapabilityAgentTest, test_localAlertVolumeChangeNoAlert) | |
TEST_F (AlertsCapabilityAgentTest, testTimer_localAlertVolumeChangeAlertPlaying) | |
TEST_F (AlertsCapabilityAgentTest, test_avsAlertVolumeChangeNoAlert) | |
TEST_F (AlertsCapabilityAgentTest, test_avsAlertVolumeChangeAlertPlaying) | |
TEST_F (AlertsCapabilityAgentTest, test_startAlertWithContentChannelLowerVolume) | |
TEST_F (AlertsCapabilityAgentTest, test_startAlertWithContentChannelHigherVolume) | |
TEST_F (AlertsCapabilityAgentTest, test_startAlertWithCommsChannelLowerVolume) | |
TEST_F (AlertsCapabilityAgentTest, test_startAlertWithCommsChannelHigherVolume) | |
TEST_F (AlertsCapabilityAgentTest, test_startAlertWithDialogChannelLowerVolume) | |
TEST_F (AlertsCapabilityAgentTest, test_startAlertWithDialogChannelHigherVolume) | |
TEST_F (AlertsCapabilityAgentTest, test_invalidVolumeValuesMax) | |
TEST_F (AlertsCapabilityAgentTest, test_invalidVolumeValuesMin) | |
TEST_F (AlertsCapabilityAgentTest, test_SetAlarmVolumeRampDirective) | |
TEST_F (AlertsCapabilityAgentTest, test_SetAlarmVolumeRampDirectiveInvalid) | |
static std::string | getFutureInstant (int yearsPlus) |
static std::string | getTimeNow () |
TEST_F (AlertSchedulerTest, test_initialize) | |
TEST_F (AlertSchedulerTest, test_updateGetFocus) | |
TEST_F (AlertSchedulerTest, test_scheduleAlert) | |
TEST_F (AlertSchedulerTest, test_rescheduleAlert) | |
TEST_F (AlertSchedulerTest, test_rescheduleAlertNow) | |
TEST_F (AlertSchedulerTest, test_rescheduleAlertFails) | |
TEST_F (AlertSchedulerTest, test_snoozeAlert) | |
TEST_F (AlertSchedulerTest, test_deleteAlertSingle) | |
TEST_F (AlertSchedulerTest, test_bulkDeleteAlertsSingle) | |
TEST_F (AlertSchedulerTest, test_bulkDeleteAlertsMultipleExisting) | |
TEST_F (AlertSchedulerTest, test_bulkDeleteAlertsMultipleMixed) | |
TEST_F (AlertSchedulerTest, test_bulkDeleteAlertsMultipleMissing) | |
TEST_F (AlertSchedulerTest, test_bulkDeleteAlertsMultipleSame) | |
TEST_F (AlertSchedulerTest, test_bulkDeleteAlertsMultipleEmpty) | |
TEST_F (AlertSchedulerTest, test_isAlertActive) | |
TEST_F (AlertSchedulerTest, test_getContextInfo) | |
TEST_F (AlertSchedulerTest, test_onLocalStop) | |
TEST_F (AlertSchedulerTest, test_clearData) | |
TEST_F (AlertSchedulerTest, test_clearDataLogout) | |
TEST_F (AlertSchedulerTest, test_shutdown) | |
TEST_F (AlertSchedulerTest, test_onAlertStateChangeStartedInactiveAlert) | |
TEST_F (AlertSchedulerTest, test_onAlertStateChangeStartedActiveAlert) | |
TEST_F (AlertSchedulerTest, test_onAlertStateChangeStopped) | |
TEST_F (AlertSchedulerTest, test_onAlertStateChangeCompleted) | |
TEST_F (AlertSchedulerTest, test_onAlertStateChangeSnoozed) | |
TEST_F (AlertSchedulerTest, test_onAlertStateChangeErrorActiveAlert) | |
TEST_F (AlertSchedulerTest, test_onAlertStateChangeErrorInactiveAlert) | |
static const std::string | TOKEN_TEST ("Token_Test") |
Token for testing. More... | |
static const std::string | ASSET_ID1 ("assetId1") |
static const std::string | ASSET_ID2 ("assetId2") |
static const std::string | ASSET_PLAY_ORDER ("[\ssetId1\\ssetId2\") |
static const std::string | BACKGROUND_ALERT_ASSET ("assetId2") |
static const std::string | ASSET_URL1 ("cid:Test1") |
static const std::string | ASSET_URL2 ("cid:Test2") |
static const std::string | ALERT_TYPE ("MOCK_ALERT_TYPE") |
Alert type. More... | |
const std::string | getPayloadJson (bool inclToken, bool inclSchedTime, const std::string &schedTime) |
TEST_F (AlertTest, test_defaultAudio) | |
TEST_F (AlertTest, test_defaultShortAudio) | |
TEST_F (AlertTest, test_parseFromJsonHappyCase) | |
TEST_F (AlertTest, test_parseFromJsonMissingToken) | |
TEST_F (AlertTest, test_parseFromJsonMissingSchedTime) | |
TEST_F (AlertTest, test_parseFromJsonBadSchedTimeFormat) | |
TEST_F (AlertTest, test_setStateActive) | |
TEST_F (AlertTest, test_deactivate) | |
TEST_F (AlertTest, test_setTimeISO8601) | |
TEST_F (AlertTest, test_updateScheduleActiveFailed) | |
TEST_F (AlertTest, test_updateScheduleBadTime) | |
TEST_F (AlertTest, test_updateScheduleHappyCase) | |
TEST_F (AlertTest, test_snoozeBadTime) | |
TEST_F (AlertTest, test_snoozeHappyCase) | |
TEST_F (AlertTest, test_setLoopCountNegative) | |
TEST_F (AlertTest, test_setLoopCountHappyCase) | |
TEST_F (AlertTest, test_setLoopPause) | |
TEST_F (AlertTest, test_setBackgroundAssetId) | |
TEST_F (AlertTest, test_isPastDue) | |
TEST_F (AlertTest, test_stateToString) | |
TEST_F (AlertTest, test_stopReasonToString) | |
TEST_F (AlertTest, test_parseFromJsonStatusToString) | |
TEST_F (AlertTest, test_hasAssetHappy) | |
TEST_F (AlertTest, test_hasAssetBgAssetIdNotFoundOnAssets) | |
TEST_F (AlertTest, test_hasAssetOrderItemNotFoundOnAssets) | |
TEST_F (ReminderAlertTest, test_defaultAudio) | |
TEST_F (ReminderAlertTest, test_shortAudio) | |
TEST_F (ReminderAlertTest, test_getTypeName) | |
TEST_F (TimerAlertTest, test_defaultAudio) | |
TEST_F (TimerAlertTest, test_shortAudio) | |
TEST_F (TimerAlertTest, test_getTypeName) | |
Variables | |
static const std::string | ALARM_DEFAULT_DATA = "alarm default data" |
static const std::string | ALARM_SHORT_DATA = "alarm short data" |
constexpr int | MAX_WAIT_TIME_MS = 200 |
Maximum time to wait for operation result. More... | |
constexpr char | SET_VOLUME_DIRECTIVE_NAME [] = "SetVolume" |
Alerts.SetVolume Directive name. More... | |
static constexpr char | SET_ALARM_VOLUME_RAMP_DIRECTIVE_NAME [] = "SetAlarmVolumeRamp" |
Alerts.SetAlarmVolumeRamp Directive name. More... | |
static constexpr char | ALERTS_NAMESPACE [] = "Alerts" |
Alerts namespace. More... | |
constexpr char | SET_VOLUME_NAMESPACE_NAME [] = "Alerts" |
Alerts.SetVolume Namespace name. More... | |
constexpr char | MESSAGE_ID [] = "1" |
Crafted message ID. More... | |
constexpr int | TEST_VOLUME_VALUE = 33 |
General test value for alerts volume. More... | |
constexpr int | HIGHER_VOLUME_VALUE = 100 |
Higher test volume value. More... | |
constexpr int | LOWER_VOLUME_VALUE = 50 |
Lower test volume value. More... | |
static const auto | TEST_TIMEOUT = std::chrono::seconds(5) |
The timeout used throughout the tests. More... | |
static const std::string | VOLUME_PAYLOAD |
General test directive payload. More... | |
static const std::string | VOLUME_PAYLOAD_ABOVE_MAX |
Test directive payload with volume too high. More... | |
static const std::string | VOLUME_PAYLOAD_BELOW_MIN |
Test directive payload with volume too low. More... | |
static const std::string | ALARM_VOLUME_RAMP_PAYLOAD_ENABLED = R"({"alarmVolumeRamp":"ASCENDING"})" |
Test directive payload for alarm volume ramp true. More... | |
static const std::string | ALARM_VOLUME_RAMP_PAYLOAD_INVALID = R"({"ascendingAlarm":"ASCENDING"})" |
Test directive payload for alarm volume ramp with an invalid setting name. More... | |
static const std::string | ALARM_VOLUME_RAMP_JSON_NAME = R"("name":"AlarmVolumeRampReport")" |
Expected header for alarm volume ramp report. More... | |
static const std::string | ALARM_VOLUME_RAMP_JSON_VALUE = R"("ASCENDING")" |
The json string expected for TONE value. More... | |
static const std::string | ALERT1_TOKEN = "token1" |
Tokens for alerts. More... | |
static const std::string | ALERT2_TOKEN = "token2" |
static const std::string | ALERT3_TOKEN = "token3" |
static const std::string | ALERT4_TOKEN = "token4" |
static const std::string | ALERT_TYPE = "TEST_ALERT_TYPE" |
Test alert type. More... | |
static const std::string | PAST_INSTANT = "2000-01-01T12:34:56+0000" |
A schedule instant in the past for alerts. More... | |
static const std::string | FUTURE_INSTANT_SUFFIX = "-01-01T12:34:56+0000" |
A schedule instant in the future for alerts. More... | |
static const std::chrono::milliseconds | TEST_TIMEOUT {100} |
Amount of time that the alert observer should wait for a task to finish. More... | |
static const std::chrono::seconds | ALERT_PAST_DUE_TIME_LIMIT {10} |
Alert past due time limit. More... | |
static const size_t | NUM_ASSETS {2} |
Assets for testing. More... | |
static const std::string | SCHED_TIME {"2030-01-01T12:34:56+0000"} |
Scheduled time. More... | |
static const std::string | INVALID_FORMAT_SCHED_TIME {"abc"} |
static const std::string | TEST_DATE_IN_THE_PAST {"2000-02-02T12:56:34+0000"} |
A test date in the past with which to compare regular Alert timestamps. More... | |
static const std::string | TEST_DATE_IN_THE_FUTURE {"2030-02-02T12:56:34+0000"} |
A test date in the future with which to compare regular Alert timestamps. More... | |
static const long | LOOP_COUNT {2} |
Loop info. More... | |
static const long | LOOP_PAUSE_MS {300} |
static const std::string | DEFAULT_AUDIO {"default audio"} |
Data to be made into a stringstream for testing purposes. More... | |
static const std::string | SHORT_AUDIO {"short audio"} |
static const std::string | REMINDER_DEFAULT_DATA = "reminder default data" |
static const std::string | REMINDER_SHORT_DATA = "reminder short data" |
static const std::string | TIMER_DEFAULT_DATA = "timer default data" |
static const std::string | TIMER_SHORT_DATA = "timer short data" |
|
static |
Alert type.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
const std::string alexaClientSDK::capabilityAgents::alerts::test::getPayloadJson | ( | bool | inclToken, |
bool | inclSchedTime, | ||
const std::string & | schedTime | ||
) |
|
static |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | ReminderAlertTest | , |
test_defaultAudio | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | TimerAlertTest | , |
test_defaultAudio | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlarmAlertTest | , |
test_defaultAudio | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | ReminderAlertTest | , |
test_shortAudio | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | TimerAlertTest | , |
test_shortAudio | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlarmAlertTest | , |
test_shortAudio | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | ReminderAlertTest | , |
test_getTypeName | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | TimerAlertTest | , |
test_getTypeName | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlarmAlertTest | , |
test_getTypeName | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_defaultAudio | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_defaultShortAudio | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_parseFromJsonHappyCase | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_parseFromJsonMissingToken | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_parseFromJsonMissingSchedTime | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_parseFromJsonBadSchedTimeFormat | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_setStateActive | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_deactivate | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_setTimeISO8601 | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_updateScheduleActiveFailed | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_updateScheduleBadTime | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_updateScheduleHappyCase | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_snoozeBadTime | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_snoozeHappyCase | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_setLoopCountNegative | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_setLoopCountHappyCase | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_setLoopPause | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_initialize | |||
) |
Test initializing AlertScheduler
check if init fails if scheduler is not available
check if init fails if a database for alerts cant be created
check if init succeeds. Pass in 3 alerts of which 1 is expired. Only 2 should actually remain in the end.
past alert
future active alert
future inactive alert
past alert should get removed
active alert should get modified
only the 2 future alerts remain
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_setBackgroundAssetId | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_isPastDue | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_stateToString | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_updateGetFocus | |||
) |
Test AlertScheduler getting focus
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_stopReasonToString | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_parseFromJsonStatusToString | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_hasAssetHappy | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_scheduleAlert | |||
) |
Test scheduling alerts
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_rescheduleAlert | |||
) |
Test update alert scheduled time.
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_hasAssetBgAssetIdNotFoundOnAssets | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_rescheduleAlertNow | |||
) |
Test update alert scheduled time to now will start rendering the alert.
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertTest | , |
test_hasAssetOrderItemNotFoundOnAssets | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_rescheduleAlertFails | |||
) |
Test update alert scheduled time fails.
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_snoozeAlert | |||
) |
Test snoozing alerts
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_deleteAlertSingle | |||
) |
Test deleting single alert
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertsCapabilityAgentTest | , |
test_localAlertVolumeChangeNoAlert | |||
) |
Test local alert volume changes. Without alert sounding. Must send event.
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertsCapabilityAgentTest | , |
testTimer_localAlertVolumeChangeAlertPlaying | |||
) |
Test local alert volume changes. With alert sounding. Must not send event, volume is treated as local.
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_bulkDeleteAlertsSingle | |||
) |
Test deleting multiple alerts - one at a time
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertsCapabilityAgentTest | , |
test_avsAlertVolumeChangeNoAlert | |||
) |
Test volume changes originated from AVS
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_bulkDeleteAlertsMultipleExisting | |||
) |
Test deleting multiple existing alerts
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertsCapabilityAgentTest | , |
test_avsAlertVolumeChangeAlertPlaying | |||
) |
Test if AVS alerts volume directive results in a proper event when alert is already playing.
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_bulkDeleteAlertsMultipleMixed | |||
) |
Test deleting multiple alerts, both existing and not
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_bulkDeleteAlertsMultipleMissing | |||
) |
Test deleting multiple non-existing alerts
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertsCapabilityAgentTest | , |
test_startAlertWithContentChannelLowerVolume | |||
) |
Test use cases when alert is going to start when content is being played on Content channel with lower volume.
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertsCapabilityAgentTest | , |
test_startAlertWithContentChannelHigherVolume | |||
) |
Test use cases when alert is going to start when content is being played on Content channel with higher volume.
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertsCapabilityAgentTest | , |
test_startAlertWithCommsChannelLowerVolume | |||
) |
Test use cases when alert is going to start when content is being played on Comms channel with lower volume.
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_bulkDeleteAlertsMultipleSame | |||
) |
Test deleting same alerts multiple times
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertsCapabilityAgentTest | , |
test_startAlertWithCommsChannelHigherVolume | |||
) |
Test use cases when alert is going to start when content is being played on Comms channel with higher volume.
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertsCapabilityAgentTest | , |
test_startAlertWithDialogChannelLowerVolume | |||
) |
Test use cases when alert is going to start when content is being played on Dialog channel with lower volume.
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_bulkDeleteAlertsMultipleEmpty | |||
) |
Test bulk deleting with empty list
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertsCapabilityAgentTest | , |
test_startAlertWithDialogChannelHigherVolume | |||
) |
Test use cases when alert is going to start when content is being played on Dialog channel with higher volume.
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertsCapabilityAgentTest | , |
test_invalidVolumeValuesMax | |||
) |
Test invalid volume value handling.
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_isAlertActive | |||
) |
Test method that checks if an alert is active
active alert
inactive alert
Success expected for active alert
Failure expected for inactive alert
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertsCapabilityAgentTest | , |
test_invalidVolumeValuesMin | |||
) |
Test invalid volume value handling.
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_getContextInfo | |||
) |
Test to see if the correct context about the scheduler is obtained
Schedule 2 alerts one of which is active.
Check that 2 alerts were scheduled, one of which is active.
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_onLocalStop | |||
) |
Test local stop on AlertScheduler
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertsCapabilityAgentTest | , |
test_SetAlarmVolumeRampDirective | |||
) |
Test that alerts CA can correctly parse and apply alarm volume ramp value correctly.
Wait till last expectation is met.
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_clearData | |||
) |
Test if AlertScheduler clears data
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_clearDataLogout | |||
) |
Test if AlertScheduler clears data
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertsCapabilityAgentTest | , |
test_SetAlarmVolumeRampDirectiveInvalid | |||
) |
Test that alerts CA will send exception for invalid SetAlarmVolumeRamp.
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_shutdown | |||
) |
Test if AlertScheduler shuts down appropriately
check if all scheduled alerts are cleared out
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_onAlertStateChangeStartedInactiveAlert | |||
) |
Test Alert state change to Active on an inactive alert
check that we ignore inactive alerts
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_onAlertStateChangeStartedActiveAlert | |||
) |
Test Alert state change to Active on an active alert
active alerts should be handled
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_onAlertStateChangeStopped | |||
) |
Test Alert state change to Stopped
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_onAlertStateChangeCompleted | |||
) |
Test Alert state change to Completed
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_onAlertStateChangeSnoozed | |||
) |
Test Alert state change to Snoozed
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_onAlertStateChangeErrorActiveAlert | |||
) |
Test Alert state change to Error on an active alert
alexaClientSDK::capabilityAgents::alerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_onAlertStateChangeErrorInactiveAlert | |||
) |
Test Alert state change to Error on an inactive alert
|
static |
Token for testing.
|
static |
|
static |
|
static |
Expected header for alarm volume ramp report.
|
static |
The json string expected for TONE value.
|
static |
Test directive payload for alarm volume ramp true.
|
static |
Test directive payload for alarm volume ramp with an invalid setting name.
|
static |
Tokens for alerts.
|
static |
|
static |
|
static |
|
static |
Alert past due time limit.
|
static |
Test alert type.
|
static |
Alerts namespace.
|
static |
Data to be made into a stringstream for testing purposes.
|
static |
A schedule instant in the future for alerts.
constexpr int alexaClientSDK::capabilityAgents::alerts::test::HIGHER_VOLUME_VALUE = 100 |
Higher test volume value.
|
static |
|
static |
Loop info.
|
static |
constexpr int alexaClientSDK::capabilityAgents::alerts::test::LOWER_VOLUME_VALUE = 50 |
Lower test volume value.
constexpr int alexaClientSDK::capabilityAgents::alerts::test::MAX_WAIT_TIME_MS = 200 |
Maximum time to wait for operation result.
constexpr char alexaClientSDK::capabilityAgents::alerts::test::MESSAGE_ID[] = "1" |
Crafted message ID.
|
static |
Assets for testing.
|
static |
A schedule instant in the past for alerts.
|
static |
|
static |
|
static |
Scheduled time.
|
static |
Alerts.SetAlarmVolumeRamp Directive name.
constexpr char alexaClientSDK::capabilityAgents::alerts::test::SET_VOLUME_DIRECTIVE_NAME[] = "SetVolume" |
Alerts.SetVolume Directive name.
constexpr char alexaClientSDK::capabilityAgents::alerts::test::SET_VOLUME_NAMESPACE_NAME[] = "Alerts" |
Alerts.SetVolume Namespace name.
|
static |
|
static |
A test date in the future with which to compare regular Alert timestamps.
|
static |
A test date in the past with which to compare regular Alert timestamps.
|
static |
Amount of time that the alert observer should wait for a task to finish.
|
static |
The timeout used throughout the tests.
constexpr int alexaClientSDK::capabilityAgents::alerts::test::TEST_VOLUME_VALUE = 33 |
General test value for alerts volume.
|
static |
|
static |
|
static |
General test directive payload.
|
static |
Test directive payload with volume too high.
|
static |
Test directive payload with volume too low.
AlexaClientSDK 1.19.0 - Copyright 2016-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0