AlexaClientSDK
3.0.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 | MockAlertObserverInterface |
class | MockAlertStorage |
class | MockRenderer |
class | ReminderAlertTest |
class | SQLiteAlertStorageTest |
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, DISABLED_test_scheduleAlert) | |
TEST_F (AlertSchedulerTest, DISABLED_test_reloadAlertsFromDatabaseWithScheduling) | |
TEST_F (AlertSchedulerTest, test_reloadAlertsFromDatabaseWithoutScheduling) | |
TEST_F (AlertSchedulerTest, test_updateAlertTime) | |
TEST_F (AlertSchedulerTest, test_updateAlertAssets) | |
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... | |
static const std::string | LABEL_TEST ("Test label") |
Label for testing. More... | |
static const std::string | ORIGINAL_TIME_TEST ("17:00:00.000") |
Original time for testing. More... | |
static const std::string | INTERRUPTED ("interrupted") |
reason for alert state change More... | |
const std::string | getPayloadJson (bool inclToken, bool inclSchedTime, const std::string &schedTime, const std::string &label="", const std::string &originalTime="") |
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_parseFromJsonInvalidOriginalTime) | |
TEST_F (AlertTest, test_parseFromJsonEmptyOriginalTimeAndLabel) | |
TEST_F (AlertTest, test_setStateActiveValid) | |
TEST_F (AlertTest, test_setStateActiveInvalid) | |
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, DISABLED_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 (AlertTest, test_focusChangeDuringActivation) | |
TEST_F (ReminderAlertTest, test_defaultAudio) | |
TEST_F (ReminderAlertTest, test_shortAudio) | |
TEST_F (ReminderAlertTest, test_getTypeName) | |
static const std::string | TAG ("SQLiteAlertStorageTest") |
String to identify log entries originating from this file. More... | |
TEST_F (SQLiteAlertStorageTest, test_emptyDbConfiguration) | |
TEST_F (SQLiteAlertStorageTest, test_invalidDbConfiguration) | |
TEST_F (SQLiteAlertStorageTest, test_nullAlertsAudioFactory) | |
TEST_F (SQLiteAlertStorageTest, test_nullMetricRecorder) | |
TEST_F (SQLiteAlertStorageTest, test_openExistingDatabaseSucceeds) | |
TEST_F (SQLiteAlertStorageTest, test_createExistingDatabaseFails) | |
TEST_F (SQLiteAlertStorageTest, test_openDatabaseWhenAlertsTableIsMissing) | |
TEST_F (SQLiteAlertStorageTest, test_openDatabaseWhenOfflineAlertsTableIsMissing) | |
TEST_F (SQLiteAlertStorageTest, test_openDatabaseWhenAssetTablesAreMissing) | |
TEST_F (SQLiteAlertStorageTest, test_migrateAlertFromV2ToV3) | |
TEST_F (SQLiteAlertStorageTest, test_migrateOfflineAlertFromV1ToV2) | |
TEST_F (SQLiteAlertStorageTest, test_storeAndLoadAlerts) | |
TEST_F (SQLiteAlertStorageTest, test_modifyAlerts) | |
TEST_F (SQLiteAlertStorageTest, test_eraseAlert) | |
TEST_F (SQLiteAlertStorageTest, test_bulkEraseAlert) | |
TEST_F (SQLiteAlertStorageTest, test_storeAndLoadOfflineAlerts) | |
TEST_F (SQLiteAlertStorageTest, test_eraseOfflineAlerts) | |
TEST_F (SQLiteAlertStorageTest, test_clearDatabase) | |
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... | |
AlertObserverInterface::Type | TYPE_ALARM = AlertObserverInterface::Type::ALARM |
The alert type. 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 | TYPE_ALARM_STRING = AlertObserverInterface::typeToString(TYPE_ALARM) |
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 | INVALID_ORIGINAL_TIME_TEST {"-1:00:00.000"} |
static const std::string | REMINDER_DEFAULT_DATA = "reminder default data" |
static const std::string | REMINDER_SHORT_DATA = "reminder short data" |
static const std::string | TEST_DATABASE_FILE_NAME = "SQLiteAlertStorageTest.db" |
The name of database file for testing. More... | |
static const std::string | VALID_ALERTS_DB_CONFIG_JSON |
static const std::string | INVALID_ALERTS_DB_CONFIG_JSON |
static const std::string | ALERTS_V2_TABLE_NAME = "alerts_v2" |
The name of the alerts (v2) table. More... | |
static const std::string | ALERTS_V3_TABLE_NAME = "alerts_v3" |
The name of the alerts (v3) table. More... | |
static const std::string | CREATE_ALERTS_V2_TABLE_SQL_STRING |
The SQL string to create the alerts table. More... | |
static const std::string | CREATE_ALERTS_V3_TABLE_SQL_STRING |
static const std::string | ALERT_ASSETS_TABLE_NAME = "alertAssets" |
The name of the alertAssets table. More... | |
static const std::string | CREATE_ALERT_ASSETS_TABLE_SQL_STRING |
The SQL string to create the alertAssets table. More... | |
static const std::string | OFFLINE_ALERTS_TABLE_NAME = "offlineAlerts" |
The name of the offline alerts (v1) table. More... | |
static const std::string | OFFLINE_ALERTS_V2_TABLE_NAME = "offlineAlerts_v2" |
The name of the offline alerts (v2) table. More... | |
static const std::string | CREATE_OFFLINE_ALERTS_V1_TABLE_SQL_STRING |
The SQL string to create the offline alerts table. More... | |
static const std::string | CREATE_OFFLINE_ALERTS_V2_TABLE_SQL_STRING |
static const std::string | ALERT_ASSET_PLAY_ORDER_ITEMS_TABLE_NAME = "alertAssetPlayOrderItems" |
The name of the alertAssetPlayOrderItems table. More... | |
static const std::string | CREATE_ALERT_ASSET_PLAY_ORDER_ITEMS_TABLE_SQL_STRING |
The SQL string to create the alertAssetPlayOrderItems table. More... | |
static const std::string | TEST_ALERT_TYPE_ALARM = "ALARM" |
static const std::string | TEST_ALERT_TYPE_TIMER = "TIMER" |
static const std::string | TEST_ALERT_TYPE_REMINDER = "REMINDER" |
static const std::string | SCHEDULED_TIME_ISO_STRING = "2008-08-08T08:00:00+0000" |
Schduled time string in ISO 8601 format. More... | |
static const std::string | SCHEDULED_TIME_ISO_STRING_ALARM = "2020-08-08T08:00:00+0000" |
static const std::string | SCHEDULED_TIME_ISO_STRING_TIMER = "2020-08-09T08:00:00+0000" |
static const std::string | SCHEDULED_TIME_ISO_STRING_REMINDER = "2020-08-10T08:00:00+0000" |
static const std::string | TOKEN_ALARM = "token-alarm" |
Alerts token. More... | |
static const std::string | TOKEN_TIMER = "token-timer" |
static const std::string | TOKEN_REMINDER = "token-reminder" |
static const std::string | ORIGINAL_TIME_ALARM = "16:00:00.000" |
Original time. More... | |
static const std::string | ORIGINAL_TIME_REMINDER = "18:00:00.000" |
static const std::string | LABEL_TIMER = "coffee" |
Label for the alerts. More... | |
static const std::string | LABEL_REMINDER = "walk the dog" |
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::acsdkAlerts::test::getPayloadJson | ( | bool | inclToken, |
bool | inclSchedTime, | ||
const std::string & | schedTime, | ||
const std::string & | label = "" , |
||
const std::string & | originalTime = "" |
||
) |
|
static |
|
static |
reason for alert state change
|
static |
Label for testing.
|
static |
Original time for testing.
|
static |
String to identify log entries originating from this file.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | ReminderAlertTest | , |
test_defaultAudio | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | TimerAlertTest | , |
test_defaultAudio | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlarmAlertTest | , |
test_defaultAudio | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | ReminderAlertTest | , |
test_shortAudio | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | TimerAlertTest | , |
test_shortAudio | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlarmAlertTest | , |
test_shortAudio | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | ReminderAlertTest | , |
test_getTypeName | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | TimerAlertTest | , |
test_getTypeName | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlarmAlertTest | , |
test_getTypeName | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_defaultAudio | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_defaultShortAudio | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_parseFromJsonHappyCase | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_parseFromJsonMissingToken | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_parseFromJsonMissingSchedTime | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_parseFromJsonBadSchedTimeFormat | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_parseFromJsonInvalidOriginalTime | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_parseFromJsonEmptyOriginalTimeAndLabel | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_setStateActiveValid | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_setStateActiveInvalid | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_deactivate | |||
) |
alexaClientSDK::acsdkAlerts::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.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_setTimeISO8601 | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | SQLiteAlertStorageTest | , |
test_emptyDbConfiguration | |||
) |
Test create with empty ConfigurationNode
.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_updateGetFocus | |||
) |
Test AlertScheduler getting focus
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_updateScheduleActiveFailed | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | SQLiteAlertStorageTest | , |
test_invalidDbConfiguration | |||
) |
Test create with invalid alerts database configuration.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_updateScheduleBadTime | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | SQLiteAlertStorageTest | , |
test_nullAlertsAudioFactory | |||
) |
Test create with null AlertsAudioFactoryInterface
.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
DISABLED_test_scheduleAlert | |||
) |
Test scheduling alerts
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_updateScheduleHappyCase | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | SQLiteAlertStorageTest | , |
test_nullMetricRecorder | |||
) |
Test create with null MetricRecorderInterface
. It's okay if metric recorder instance is not provided.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_snoozeBadTime | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | SQLiteAlertStorageTest | , |
test_openExistingDatabaseSucceeds | |||
) |
Test if open existing database succeeds.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_snoozeHappyCase | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_setLoopCountNegative | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
DISABLED_test_reloadAlertsFromDatabaseWithScheduling | |||
) |
Test reloading alerts from the database and simultaneously scheduling them.
check if reload with shouldScheduleAlerts set to true succeeds. Pass in 3 alerts of which 1 is expired. Only 2 should actually remain in the end.
initialize the alert scheduler
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::acsdkAlerts::test::TEST_F | ( | SQLiteAlertStorageTest | , |
test_createExistingDatabaseFails | |||
) |
Test if create existing database fails.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_setLoopCountHappyCase | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | SQLiteAlertStorageTest | , |
test_openDatabaseWhenAlertsTableIsMissing | |||
) |
Test if open succeeds when latest alerts table does not exist yet.
missing table will be created on open.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_setLoopPause | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_setBackgroundAssetId | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | SQLiteAlertStorageTest | , |
test_openDatabaseWhenOfflineAlertsTableIsMissing | |||
) |
Test if open succeeds when latest offline alerts table does not exist yet.
missing table will be created on open.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
DISABLED_test_isPastDue | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | SQLiteAlertStorageTest | , |
test_openDatabaseWhenAssetTablesAreMissing | |||
) |
Test if open succeeds when 'alertAsset' and 'alertAssetPlayOrderItems' tables do not exist yet.
missing tables will be created on open.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_reloadAlertsFromDatabaseWithoutScheduling | |||
) |
Test reloading alerts from the database without scheduling.
check if reload with shouldScheduleAlerts set to false succeeds. Pass in 3 alerts of which 1 is expired. All alerts should remain in the end.
initialize the alert scheduler
past alert
future active alert
future inactive alert
no alerts should be modified or erased
all alerts should remain
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_stateToString | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | SQLiteAlertStorageTest | , |
test_migrateAlertFromV2ToV3 | |||
) |
Test data migration from alerts v2 table to v3.
create alerts v2 table.
data migration happens on open.
verify if the alert has been migrated successfully from table v2 to v3.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_stopReasonToString | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertsCapabilityAgentTest | , |
test_localAlertVolumeChangeNoAlert | |||
) |
Test local alert volume changes. Without alert sounding. Must send event.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_parseFromJsonStatusToString | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_hasAssetHappy | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_updateAlertTime | |||
) |
Test update alert scheduled time.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertsCapabilityAgentTest | , |
testTimer_localAlertVolumeChangeAlertPlaying | |||
) |
Test local alert volume changes. With alert sounding. Must not send event, volume is treated as local.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_updateAlertAssets | |||
) |
Test update alert for new assets.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_hasAssetBgAssetIdNotFoundOnAssets | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertsCapabilityAgentTest | , |
test_avsAlertVolumeChangeNoAlert | |||
) |
Test volume changes originated from AVS
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_hasAssetOrderItemNotFoundOnAssets | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertsCapabilityAgentTest | , |
test_avsAlertVolumeChangeAlertPlaying | |||
) |
Test if AVS alerts volume directive results in a proper event when alert is already playing.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | SQLiteAlertStorageTest | , |
test_migrateOfflineAlertFromV1ToV2 | |||
) |
Test data migration from offline alerts v1 table to v2.
create offline alerts v1 table.
data migration happens on open.
verify if the offline alert has been migrated successfully from table v1 to v2.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_rescheduleAlertNow | |||
) |
Test update alert scheduled time to now will start rendering the alert.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertTest | , |
test_focusChangeDuringActivation | |||
) |
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_rescheduleAlertFails | |||
) |
Test update alert scheduled time fails.
alexaClientSDK::acsdkAlerts::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::acsdkAlerts::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::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_snoozeAlert | |||
) |
Test snoozing alerts
alexaClientSDK::acsdkAlerts::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::acsdkAlerts::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::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_deleteAlertSingle | |||
) |
Test deleting single alert
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | SQLiteAlertStorageTest | , |
test_storeAndLoadAlerts | |||
) |
Test store and load alerts.
store alerts
load alerts
verify
alexaClientSDK::acsdkAlerts::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::acsdkAlerts::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::acsdkAlerts::test::TEST_F | ( | AlertsCapabilityAgentTest | , |
test_invalidVolumeValuesMax | |||
) |
Test invalid volume value handling.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_bulkDeleteAlertsSingle | |||
) |
Test deleting multiple alerts - one at a time
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | SQLiteAlertStorageTest | , |
test_modifyAlerts | |||
) |
Test modify an alert.
update schedule time.
verify the value after modification.
modify should fail if the alert does not exist.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertsCapabilityAgentTest | , |
test_invalidVolumeValuesMin | |||
) |
Test invalid volume value handling.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_bulkDeleteAlertsMultipleExisting | |||
) |
Test deleting multiple existing alerts
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_bulkDeleteAlertsMultipleMixed | |||
) |
Test deleting multiple alerts, both existing and not
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | SQLiteAlertStorageTest | , |
test_eraseAlert | |||
) |
Test erase an alert.
start to erase
alexaClientSDK::acsdkAlerts::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::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_bulkDeleteAlertsMultipleMissing | |||
) |
Test deleting multiple non-existing alerts
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | SQLiteAlertStorageTest | , |
test_bulkEraseAlert | |||
) |
Test bulkErase alerts.
start to bulkErase
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertsCapabilityAgentTest | , |
test_SetAlarmVolumeRampDirectiveInvalid | |||
) |
Test that alerts CA will send exception for invalid SetAlarmVolumeRamp.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_bulkDeleteAlertsMultipleSame | |||
) |
Test deleting same alerts multiple times
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | SQLiteAlertStorageTest | , |
test_storeAndLoadOfflineAlerts | |||
) |
Test store and load offline alerts.
store offline alerts.
load offline alerts.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_bulkDeleteAlertsMultipleEmpty | |||
) |
Test bulk deleting with empty list
alexaClientSDK::acsdkAlerts::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::acsdkAlerts::test::TEST_F | ( | SQLiteAlertStorageTest | , |
test_eraseOfflineAlerts | |||
) |
Test erase offline alerts.
store offline alerts.
erase the offline alert.
load offline alerts.
erase the offline alert.
alexaClientSDK::acsdkAlerts::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::acsdkAlerts::test::TEST_F | ( | SQLiteAlertStorageTest | , |
test_clearDatabase | |||
) |
Test clear databse.
store alerts.
check alerts exist.
clear database.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_onLocalStop | |||
) |
Test local stop on AlertScheduler
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_clearData | |||
) |
Test if AlertScheduler clears data
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_clearDataLogout | |||
) |
Test if AlertScheduler clears data
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_shutdown | |||
) |
Test if AlertScheduler shuts down appropriately
check if all scheduled alerts are cleared out
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_onAlertStateChangeStartedInactiveAlert | |||
) |
Test Alert state change to Active on an inactive alert
check that we ignore inactive alerts
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_onAlertStateChangeStartedActiveAlert | |||
) |
Test Alert state change to Active on an active alert
active alerts should be handled
when an alert starts, we wait for an Alert to send a STARTED event followed by the focus state FOCUS_ENTERED_FOREGROUND. So we'll check that the state gets changed to FOCUS_ENTERED_FOREGROUND, then check that the previous state was STARTED.
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_onAlertStateChangeStopped | |||
) |
Test Alert state change to Stopped
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_onAlertStateChangeCompleted | |||
) |
Test Alert state change to Completed
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_onAlertStateChangeSnoozed | |||
) |
Test Alert state change to Snoozed
alexaClientSDK::acsdkAlerts::test::TEST_F | ( | AlertSchedulerTest | , |
test_onAlertStateChangeErrorActiveAlert | |||
) |
Test Alert state change to Error on an active alert
alexaClientSDK::acsdkAlerts::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 |
The name of the alertAssetPlayOrderItems table.
|
static |
The name of the alertAssets table.
|
static |
Alert past due time limit.
|
static |
Alerts namespace.
|
static |
The name of the alerts (v2) table.
|
static |
The name of the alerts (v3) table.
|
static |
The SQL string to create the alertAssetPlayOrderItems table.
|
static |
The SQL string to create the alertAssets table.
|
static |
The SQL string to create the alerts table.
|
static |
|
static |
The SQL string to create the offline alerts table.
|
static |
|
static |
Data to be made into a stringstream for testing purposes.
|
static |
A schedule instant in the future for alerts.
constexpr int alexaClientSDK::acsdkAlerts::test::HIGHER_VOLUME_VALUE = 100 |
Higher test volume value.
|
static |
|
static |
|
static |
|
static |
|
static |
Label for the alerts.
|
static |
Loop info.
|
static |
constexpr int alexaClientSDK::acsdkAlerts::test::LOWER_VOLUME_VALUE = 50 |
Lower test volume value.
constexpr int alexaClientSDK::acsdkAlerts::test::MAX_WAIT_TIME_MS = 200 |
Maximum time to wait for operation result.
constexpr char alexaClientSDK::acsdkAlerts::test::MESSAGE_ID[] = "1" |
Crafted message ID.
|
static |
Assets for testing.
|
static |
The name of the offline alerts (v1) table.
|
static |
The name of the offline alerts (v2) table.
|
static |
Original time.
|
static |
|
static |
A schedule instant in the past for alerts.
|
static |
|
static |
|
static |
Scheduled time.
|
static |
Schduled time string in ISO 8601 format.
|
static |
|
static |
|
static |
|
static |
Alerts.SetAlarmVolumeRamp Directive name.
constexpr char alexaClientSDK::acsdkAlerts::test::SET_VOLUME_DIRECTIVE_NAME[] = "SetVolume" |
Alerts.SetVolume Directive name.
constexpr char alexaClientSDK::acsdkAlerts::test::SET_VOLUME_NAMESPACE_NAME[] = "Alerts" |
Alerts.SetVolume Namespace name.
|
static |
|
static |
Constants for Alerts. Type of the alert for testing.
|
static |
|
static |
|
static |
The name of database file for testing.
|
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::acsdkAlerts::test::TEST_VOLUME_VALUE = 33 |
General test value for alerts volume.
|
static |
|
static |
|
static |
Alerts token.
|
static |
|
static |
AlertObserverInterface::Type alexaClientSDK::acsdkAlerts::test::TYPE_ALARM = AlertObserverInterface::Type::ALARM |
The alert type.
Test alert type.
|
static |
|
static |
|
static |
General test directive payload.
|
static |
Test directive payload with volume too high.
|
static |
Test directive payload with volume too low.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0