AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Classes | |
class | HelloClass |
class | LocaleWakeWordsSettingTest |
class | MockCallbacks |
class | MockSetting |
class | MockSettingEventSender |
class | MockSettingObserver |
class | MockSettingProtocol |
class | ObserverClass |
class | SettingCallbackAdapterTest |
class | SettingCallbacksTest |
class | SettingEventSenderTest |
class | SettingsManagerTest |
Test class. More... | |
class | SettingStub |
Settings stub that just set the value immediately. More... | |
class | SettingTest |
class | SharedAVSSettingProtocolTest |
class | TestObserver |
Just an empty observer. More... | |
class | TimezoneSettingStub |
Typedefs | |
using | TestEventCallback = SettingCallbackAdapter< DeviceSettingsManager, DeviceSettingsIndex::TIMEZONE > |
Just an alias to make the name shorter. More... | |
using | SettingInt = SettingStub< int > |
using | SettingString = SettingStub< std::string > |
using | SettingBool = MockSetting< bool > |
Enumerations | |
enum | TestSettingId { TEST_ID_INT = 0, TEST_ID_STRING, TEST_ID_CHAR } |
enum | HelloEnum { HelloEnum::HI, HelloEnum::THERE } |
Functions | |
std::vector< std::tuple< std::string, std::string, SettingStatus > > | convertToDBData (std::string key, std::string value, SettingStatus status) |
TEST_F (LocaleWakeWordsSettingTest, test_nullEventSenders) | |
Test create with null event senders. More... | |
TEST_F (LocaleWakeWordsSettingTest, test_nullStorage) | |
Test create with null storage. More... | |
TEST_F (LocaleWakeWordsSettingTest, test_nullAssetsManager) | |
Test create with null assets manager. More... | |
TEST_F (LocaleWakeWordsSettingTest, test_restoreSynchronized) | |
Test restore when all values are available and synchronized. More... | |
TEST_F (LocaleWakeWordsSettingTest, test_AVSChangeWakeWordsRequest) | |
Test success flow for avs wake word request. More... | |
TEST_F (LocaleWakeWordsSettingTest, test_AVSChangeWakeWordsRequestSetFailed) | |
TEST_F (LocaleWakeWordsSettingTest, test_AVSChangeWakeWordsRequestSendEventFailed) | |
Test send event failed for avs request. More... | |
TEST_F (LocaleWakeWordsSettingTest, test_AVSChangeLocaleRequest) | |
Test success flow for avs locale request. More... | |
TEST_F (LocaleWakeWordsSettingTest, test_AVSChangeLocaleRequestSetFailed) | |
Test set value failed for avs request. More... | |
TEST_F (LocaleWakeWordsSettingTest, test_AVSChangeLocaleRequestSendEventFailed) | |
Test send event failed for avs request. More... | |
TEST_F (LocaleWakeWordsSettingTest, test_restoreValueNotAvailable) | |
Test restore when no value is available in the database. This should run local change to both wake words and locale. More... | |
TEST_F (LocaleWakeWordsSettingTest, test_localChangeWakeWordsRequest) | |
Test success flow for local request for wake word change. More... | |
TEST_F (LocaleWakeWordsSettingTest, test_localChangeWakeWordsRequestSetFailed) | |
Test set value failed during local request for wake word change. More... | |
TEST_F (LocaleWakeWordsSettingTest, test_localChangeWakeWordsRequestSendEventFailed) | |
TODO: Test send changed event failed while processing wake words local request. More... | |
TEST_F (LocaleWakeWordsSettingTest, test_localChangeLocaleRequest) | |
TODO: Test success flow for local request for wake word change. More... | |
TEST_F (LocaleWakeWordsSettingTest, test_localChangeLocaleRequestSetFailed) | |
TODO: Test set value failed during local request for wake word change. More... | |
TEST_F (LocaleWakeWordsSettingTest, test_localChangeLocaleRequestSendEventFailed) | |
TODO: Test send changed event failed while processing wake words local request. More... | |
TEST_F (LocaleWakeWordsSettingTest, test_localeChangeTriggerWakeWordsChange) | |
TODO: Test locale change when current wake word is not available. More... | |
TEST_F (LocaleWakeWordsSettingTest, test_localeChangeCancelPendingWakeWordsChange) | |
TODO: Test locale change when pending request has a wake word that's not available. More... | |
TEST_F (LocaleWakeWordsSettingTest, test_localeChangeMergePendingWakeWordsChange) | |
TODO: Test locale change when pending request has a valid wake word selected in the current locale. More... | |
TEST_F (LocaleWakeWordsSettingTest, test_wakeWordChangeRequestFailedOnCurrentLocale) | |
TODO: Test wake word change when current locale doesn't support requested wake word. More... | |
TEST_F (LocaleWakeWordsSettingTest, test_reconnectAfterOfflineChange) | |
Test synchronization once the SDK is re-connected and there was an offline change. More... | |
TEST (NetworkInfoTest, test_restoreInfoFromEmptyString) | |
TEST (NetworkInfoTest, test_restoreInfoFromEmptyJson) | |
TEST (NetworkInfoTest, test_convertFullInfoToStringAndBack) | |
TEST (NetworkInfoTest, test_outputEmptyNetworkInfo) | |
TEST (NetworkInfoTest, test_setIpV4Address) | |
TEST (NetworkInfoTest, test_setIpV6Address) | |
TEST (NetworkInfoTest, test_setMacAddress) | |
TEST (NetworkInfoTest, test_setSubnetMask) | |
TEST (NetworkInfoTest, test_emptyGetters) | |
TEST (NetworkInfoTest, test_gettersAfterSet) | |
TEST (NetworkInfoTest, test_gettersAfterReset) | |
static void | staticCallback (const std::string &newValue, SettingNotifications notification) |
Define a static function to be used as callback. More... | |
TEST_F (SettingCallbackAdapterTest, test_lambdaCallback) | |
Test callback for lambda functions. More... | |
TEST_F (SettingCallbackAdapterTest, test_staticCallback) | |
Test callback for static functions. More... | |
TEST_F (SettingCallbackAdapterTest, test_memberCallback) | |
Test callback for member functions. More... | |
static void | staticCallback (const std::string &newValue, SettingNotifications notification) |
Define a static function to be used as callback. More... | |
TEST_F (SettingCallbacksTest, test_lambdaAndStaticCallbacks) | |
Test callback for a mix of lambda and static functions. More... | |
TEST_F (SettingCallbacksTest, test_memberCallback) | |
Test callback for member functions. More... | |
TEST_F (SettingEventSenderTest, test_createValidation) | |
TEST_F (SettingEventSenderTest, test_sendChangedEvent) | |
TEST_F (SettingEventSenderTest, test_sendReportEvent) | |
TEST_F (SettingEventSenderTest, test_invalidJSONValue) | |
TEST_F (SettingEventSenderTest, testSlow_blockingSend) | |
TEST_F (SettingEventSenderTest, testSlow_maxRetries) | |
TEST_F (SettingEventSenderTest, testSlow_retryOnInternalError) | |
TEST_F (SettingEventSenderTest, testSlow_retryStopAfterSuccess) | |
TEST_F (SettingEventSenderTest, testSlow_noRetryOnNonConnected) | |
TEST_F (SettingEventSenderTest, testSlow_cancelRetry) | |
static const std::chrono::seconds | TEST_TIMEOUT (10) |
General timeout for tests to fail. More... | |
TEST_F (SettingsManagerTest, test_setExistingSetting) | |
Test add settings and setting the setting value. More... | |
TEST_F (SettingsManagerTest, test_setSettingUnavailable) | |
Test set value for setting that hasn't been registered. More... | |
TEST_F (SettingsManagerTest, test_getExistingSetting) | |
Test get value for setting that hasn't been registered. More... | |
TEST_F (SettingsManagerTest, test_getSettingUnavailable) | |
Test get value for setting that hasn't been registered. More... | |
TEST_F (SettingsManagerTest, test_addExistingSetting) | |
Test registering a setting that already exists. More... | |
TEST_F (SettingsManagerTest, test_addObserver) | |
Test addObserver for a setting that exists. More... | |
TEST_F (SettingsManagerTest, test_addObserverFailed) | |
Test addObserver for a setting that doesn't exist. More... | |
TEST_F (SettingsManagerTest, test_removeObserver) | |
Test addObserver for a setting that exists. More... | |
TEST_F (SettingsManagerTest, test_removeObserverFailed) | |
Test addObserver for a setting that doesn't exist. More... | |
TEST_F (SettingsManagerTest, test_setExistingStringSetting) | |
Test manager operations for string setting. More... | |
TEST_F (SettingsManagerTest, test_clearDataInSettingManagerCallsClearDataInSetting) | |
Test manager getting a clearData callback will call clearData on the setting. More... | |
std::ostream & | operator<< (std::ostream &os, const HelloEnum &hello) |
std::istream & | operator>> (std::istream &is, HelloEnum &hello) |
std::ostream & | operator<< (std::ostream &os, const HelloClass &hello) |
std::istream & | operator>> (std::istream &is, HelloClass &hello) |
std::pair< bool, std::string > | expected (bool result, std::string value) |
TEST (SettingStringConversionTest, test_boolConversion) | |
Test boolean conversions. More... | |
TEST (SettingStringConversionTest, test_integralByteSize) | |
TEST (SettingStringConversionTest, test_arithmeticTypes) | |
TEST (SettingStringConversionTest, test_fromEnum) | |
TEST (SettingStringConversionTest, test_fromClass) | |
TEST (SettingStringConversionTest, test_toStringSet) | |
TEST (SettingStringConversionTest, test_fromStringSet) | |
TEST_F (SettingTest, test_create) | |
Test successful create. More... | |
TEST_F (SettingTest, test_createNoRestore) | |
Test create initial value when restore value is not available. More... | |
TEST_F (SettingTest, test_nullCreate) | |
Test create with null protocol. More... | |
TEST_F (SettingTest, test_avsChange) | |
Test avs change. More... | |
TEST_F (SettingTest, test_avsChangeRevert) | |
Test avs change revert. More... | |
TEST_F (SettingTest, test_localChange) | |
Test local change. More... | |
TEST_F (SettingTest, test_localChangeRevert) | |
Test local change revert. More... | |
TEST_F (SettingTest, test_clearData) | |
Test clearData. More... | |
TEST_F (SettingTest, test_observerNotificationLocal) | |
Test observer notification. More... | |
TEST_F (SettingTest, test_observerNotificationAvs) | |
Test observer notification. More... | |
TEST_F (SharedAVSSettingProtocolTest, test_nullEventSender) | |
Test create with null event sender. More... | |
TEST_F (SharedAVSSettingProtocolTest, test_nullStorage) | |
Test create with null storage. More... | |
TEST_F (SharedAVSSettingProtocolTest, test_restoreValueNotAvailable) | |
Test restore when value is not available in the database. More... | |
TEST_F (SharedAVSSettingProtocolTest, test_restoreValueNotAvailableCloudAuthoritative) | |
Test restore when value is not available in the database for a setting that use cloud authoritative default value. More... | |
TEST_F (SharedAVSSettingProtocolTest, test_restoreSynchronized) | |
Test restore when the value is available and synchronized. More... | |
TEST_F (SharedAVSSettingProtocolTest, test_AVSChangeRequest) | |
Test success flow for AVS request. More... | |
TEST_F (SharedAVSSettingProtocolTest, test_AVSChangeRequestSetFailed) | |
Test set value failed for AVS request. More... | |
TEST_F (SharedAVSSettingProtocolTest, test_AVSChangeRequestStoreFailed) | |
Test store value failed. Revert should be called and AVS notified of previous value. More... | |
TEST_F (SharedAVSSettingProtocolTest, test_AVSChangeRequestSendEventFailed) | |
Test send event failed for avs request. More... | |
TEST_F (SharedAVSSettingProtocolTest, test_localRequest) | |
Test success flow for local request. More... | |
TEST_F (SharedAVSSettingProtocolTest, test_localRequestSetFailed) | |
Test set value failed during local request. More... | |
TEST_F (SharedAVSSettingProtocolTest, test_localRequestStoreFailed) | |
Test store value to database failed for local request. More... | |
TEST_F (SharedAVSSettingProtocolTest, test_localRequestSendEventFailed) | |
Test send changed event failed for local request. In this case, we should not update the database with SYNCHRONIZED. More... | |
TEST_F (SharedAVSSettingProtocolTest, test_localChangeSettingOfflineSynchronization) | |
TEST_F (SharedAVSSettingProtocolTest, test_avsChangeSettingOfflineSynchronization) | |
TEST_F (SharedAVSSettingProtocolTest, test_multipleAVSChanges) | |
TEST_F (SharedAVSSettingProtocolTest, test_multipleLocalChanges) | |
Variables | |
static const std::string | ALEXA_VALUE = "ALEXA" |
Constant representing "ALEXA" enabled. More... | |
static const std::string | ECHO_VALUE = "ECHO" |
Constant representing "ECHO" enabled value. More... | |
static const std::string | ENGLISH_CANADA_VALUE = "en-CA" |
Constant representing "en-CA" enabled db value. More... | |
static const std::string | FRENCH_CANADA_VALUE = "fr-CA" |
Constant representing "fr-CA" enabled db value. More... | |
static const std::string | INVALID_VALUE = "INVALID" |
Constant representing an invalid wake word / locale value. More... | |
static const std::chrono::seconds | MY_WAIT_TIMEOUT {5} |
static const MockLocaleAssetsManager::LocaleAssetsManagerInterface::WakeWordsSets | SUPPORTED_WAKE_WORDS_COMBINATION |
Set of combinations of supported wake words. More... | |
static const std::set< std::string > | SUPPORTED_LOCALES {ENGLISH_CANADA_VALUE, FRENCH_CANADA_VALUE} |
Set of supported locales. More... | |
static const std::vector< std::string > | ENGLISH_LOCALES {ENGLISH_CANADA_VALUE} |
A vector of locales that contains only en-CA. More... | |
static const std::vector< std::string > | FRENCH_LOCALES {FRENCH_CANADA_VALUE} |
A vector of locales that contains only fr-CA. More... | |
static const std::string | WAKE_WORDS_KEY = "SpeechRecognizer.wakeWords" |
The database key to be used to save wake words. More... | |
static const std::string | LOCALES_KEY = "System.locales" |
The database key to be used to save wake words. More... | |
static const auto | CONNECTION_TYPE = NetworkInfo::ConnectionType::WIFI |
A random valid connection type. More... | |
static const auto | BSSID = "10:00:22:33:44:55" |
A random valid bssid. More... | |
static const auto | IP_ADDRESS = "1.2.3.5" |
A random valid IP address. More... | |
static const auto | SUBNET_MASK = "1.2.3.0/2" |
A random valid subnet mask. More... | |
static const auto | MAC_ADDRESS = "00:FF:00:FF:00:FF" |
A random valid MAC address. More... | |
static const auto | DHCP_SERVER_ADDRESS = "200.125.4.0" |
A random valid DHCP server address. More... | |
static const auto | ESSID = "essid" |
A random valid connection type. More... | |
static const auto | IS_STATIC_IP = false |
A random valid connection type. More... | |
const std::string | INIT_TIMEZONE = "Canada/Eastern" |
Define initial values for timezone. More... | |
const std::string | NEW_TIMEZONE = "Canada/Pacific" |
Define updated values for each timezone. More... | |
std::string | globalTimezone = INIT_TIMEZONE |
Used to test static callback. More... | |
constexpr auto | INIT_ALARM_VOLUME_RAMP = types::AlarmVolumeRampTypes::NONE |
constexpr WakeWordConfirmationSettingType | INIT_WAKEWORD_CONFIRMATION = WakeWordConfirmationSettingType::NONE |
constexpr auto | NEW_ALARM_VOLUME_RAMP = types::AlarmVolumeRampTypes::ASCENDING |
static const SettingEventMetadata | METADATA = {"NAMESPACE", "CHANGEDEVENT", "REPORTEVENT", "SETTING"} |
The metadata for the event messages used in this test. More... | |
static const std::string | EXPECTED_CHANGED_EVENT = R"(\{"event":\{"header":\{"namespace":"NAMESPACE","name":"CHANGEDEVENT","messageId":".*-.*-.*-.*-.*"\},"payload":\{"SETTING":true\}\}\})" |
The expected changed event format. More... | |
static const std::string | EXPECTED_REPORT_EVENT = R"(\{"event":\{"header":\{"namespace":"NAMESPACE","name":"REPORTEVENT","messageId":".*-.*-.*-.*-.*"\},"payload":\{"SETTING":true\}\}\})" |
The expected report event format. More... | |
static const std::vector< int > | RETRY_TABLE |
Table with the retry times on subsequent retries. More... | |
static const auto | MAX_RETRY_WAIT = std::chrono::seconds(4) |
constexpr int | INITIAL_INT_VALUE = 20 |
constexpr int | NEW_INT_VALUE = -20 |
constexpr int | DEFAULT_INT_VALUE = 0 |
constexpr char | DEFAULT_CHAR_VALUE = 'a' |
static const std::string | KEY = "key" |
The key used for converting the hello object. More... | |
static const std::string | INIT_VALUE = "value" |
The value used to initialize the hello object. More... | |
static const std::string | EMPTY_JSON_LIST = "[]" |
Represents an empty json list. More... | |
static constexpr bool | INIT_VALUE = false |
Initial value for the setting. More... | |
static const std::string | INIT_VALUE_STR = "false" |
String representation of the initial value. More... | |
static constexpr bool | NEW_VALUE = true |
New value for the setting. More... | |
static const std::string | NEW_VALUE_STR = "true" |
String representation of the new value. More... | |
static const std::string | DB_VALUE = R"("db-value")" |
Constant representing a valid database value. More... | |
static const std::string | DEFAULT_VALUE = R"("default-value")" |
Constant representing a default value. More... | |
static const std::string | NEW_VALUE = R"("new-value")" |
Constant representing a valid new value. More... | |
static const std::string | INVALID_VALUE = "" |
Empty string used to represent invalid value by the protocol. More... | |
static const std::string | key = METADATA.eventNamespace + "::" + METADATA.settingName |
The database key to be used by the protocol given the METADATA object. More... | |
static const auto | TEST_TIMEOUT = std::chrono::seconds(5) |
The timeout used throughout the tests. More... | |
using alexaClientSDK::settings::test::TestEventCallback = typedef SettingCallbackAdapter<DeviceSettingsManager, DeviceSettingsIndex::TIMEZONE> |
Just an alias to make the name shorter.
|
strong |
std::vector<std::tuple<std::string, std::string, SettingStatus> > alexaClientSDK::settings::test::convertToDBData | ( | std::string | key, |
std::string | value, | ||
SettingStatus | status | ||
) |
Creates a vector of tuples given of setting key, value, and status
key | The setting key. |
value | The setting value. |
status | The setting status. |
std::pair<bool, std::string> alexaClientSDK::settings::test::expected | ( | bool | result, |
std::string | value | ||
) |
std::ostream& alexaClientSDK::settings::test::operator<< | ( | std::ostream & | os, |
const HelloEnum & | hello | ||
) |
Define an operator<< for the test enum HelloEnum
.
os | The output stream. |
hello | The enumeration to be converted. |
std::ostream& alexaClientSDK::settings::test::operator<< | ( | std::ostream & | os, |
const HelloClass & | hello | ||
) |
Define an operator<< for the test class HelloClass
.
os | The output stream. |
hello | The object to be converted. |
std::istream& alexaClientSDK::settings::test::operator>> | ( | std::istream & | is, |
HelloEnum & | hello | ||
) |
Define an operator>> for the test enum HelloEnum
.
is | The input stream. | |
[out] | hello | The enum that will receive the new value. |
std::istream& alexaClientSDK::settings::test::operator>> | ( | std::istream & | is, |
HelloClass & | hello | ||
) |
Define an operator>> for the test class HelloClass
.
is | The input stream. | |
[out] | hello | The object that will receive the new value. |
|
static |
Define a static function to be used as callback.
|
static |
Define a static function to be used as callback.
alexaClientSDK::settings::test::TEST | ( | NetworkInfoTest | , |
test_restoreInfoFromEmptyString | |||
) |
alexaClientSDK::settings::test::TEST | ( | NetworkInfoTest | , |
test_restoreInfoFromEmptyJson | |||
) |
alexaClientSDK::settings::test::TEST | ( | NetworkInfoTest | , |
test_convertFullInfoToStringAndBack | |||
) |
alexaClientSDK::settings::test::TEST | ( | NetworkInfoTest | , |
test_outputEmptyNetworkInfo | |||
) |
alexaClientSDK::settings::test::TEST | ( | NetworkInfoTest | , |
test_setIpV4Address | |||
) |
alexaClientSDK::settings::test::TEST | ( | NetworkInfoTest | , |
test_setIpV6Address | |||
) |
alexaClientSDK::settings::test::TEST | ( | NetworkInfoTest | , |
test_setMacAddress | |||
) |
alexaClientSDK::settings::test::TEST | ( | NetworkInfoTest | , |
test_setSubnetMask | |||
) |
alexaClientSDK::settings::test::TEST | ( | SettingStringConversionTest | , |
test_boolConversion | |||
) |
Test boolean conversions.
alexaClientSDK::settings::test::TEST | ( | SettingStringConversionTest | , |
test_integralByteSize | |||
) |
alexaClientSDK::settings::test::TEST | ( | NetworkInfoTest | , |
test_emptyGetters | |||
) |
alexaClientSDK::settings::test::TEST | ( | SettingStringConversionTest | , |
test_arithmeticTypes | |||
) |
alexaClientSDK::settings::test::TEST | ( | NetworkInfoTest | , |
test_gettersAfterSet | |||
) |
alexaClientSDK::settings::test::TEST | ( | SettingStringConversionTest | , |
test_fromEnum | |||
) |
alexaClientSDK::settings::test::TEST | ( | SettingStringConversionTest | , |
test_fromClass | |||
) |
alexaClientSDK::settings::test::TEST | ( | NetworkInfoTest | , |
test_gettersAfterReset | |||
) |
alexaClientSDK::settings::test::TEST | ( | SettingStringConversionTest | , |
test_toStringSet | |||
) |
alexaClientSDK::settings::test::TEST | ( | SettingStringConversionTest | , |
test_fromStringSet | |||
) |
alexaClientSDK::settings::test::TEST_F | ( | SettingTest | , |
test_create | |||
) |
Test successful create.
alexaClientSDK::settings::test::TEST_F | ( | SettingTest | , |
test_createNoRestore | |||
) |
Test create initial value when restore value is not available.
alexaClientSDK::settings::test::TEST_F | ( | SettingTest | , |
test_nullCreate | |||
) |
Test create with null protocol.
alexaClientSDK::settings::test::TEST_F | ( | SettingTest | , |
test_avsChange | |||
) |
Test avs change.
alexaClientSDK::settings::test::TEST_F | ( | SettingEventSenderTest | , |
test_createValidation | |||
) |
Test create validation.
alexaClientSDK::settings::test::TEST_F | ( | SettingsManagerTest | , |
test_setExistingSetting | |||
) |
Test add settings and setting the setting value.
alexaClientSDK::settings::test::TEST_F | ( | SettingTest | , |
test_avsChangeRevert | |||
) |
Test avs change revert.
alexaClientSDK::settings::test::TEST_F | ( | SettingEventSenderTest | , |
test_sendChangedEvent | |||
) |
Test to verify if the changed event is sent as expected.
alexaClientSDK::settings::test::TEST_F | ( | SettingsManagerTest | , |
test_setSettingUnavailable | |||
) |
Test set value for setting that hasn't been registered.
alexaClientSDK::settings::test::TEST_F | ( | SettingTest | , |
test_localChange | |||
) |
Test local change.
alexaClientSDK::settings::test::TEST_F | ( | SettingsManagerTest | , |
test_getExistingSetting | |||
) |
Test get value for setting that hasn't been registered.
alexaClientSDK::settings::test::TEST_F | ( | SettingEventSenderTest | , |
test_sendReportEvent | |||
) |
Test to verify if the report event is sent as expected.
alexaClientSDK::settings::test::TEST_F | ( | SettingTest | , |
test_localChangeRevert | |||
) |
Test local change revert.
alexaClientSDK::settings::test::TEST_F | ( | SettingsManagerTest | , |
test_getSettingUnavailable | |||
) |
Test get value for setting that hasn't been registered.
alexaClientSDK::settings::test::TEST_F | ( | SettingsManagerTest | , |
test_addExistingSetting | |||
) |
Test registering a setting that already exists.
alexaClientSDK::settings::test::TEST_F | ( | SettingTest | , |
test_clearData | |||
) |
Test clearData.
alexaClientSDK::settings::test::TEST_F | ( | SettingEventSenderTest | , |
test_invalidJSONValue | |||
) |
Test validation for incorrect JSON value passed.
alexaClientSDK::settings::test::TEST_F | ( | SettingsManagerTest | , |
test_addObserver | |||
) |
Test addObserver for a setting that exists.
alexaClientSDK::settings::test::TEST_F | ( | SettingTest | , |
test_observerNotificationLocal | |||
) |
Test observer notification.
alexaClientSDK::settings::test::TEST_F | ( | SettingsManagerTest | , |
test_addObserverFailed | |||
) |
Test addObserver for a setting that doesn't exist.
alexaClientSDK::settings::test::TEST_F | ( | SettingEventSenderTest | , |
testSlow_blockingSend | |||
) |
Test sending of events will block until a response is received
alexaClientSDK::settings::test::TEST_F | ( | SettingTest | , |
test_observerNotificationAvs | |||
) |
Test observer notification.
alexaClientSDK::settings::test::TEST_F | ( | SettingsManagerTest | , |
test_removeObserver | |||
) |
Test addObserver for a setting that exists.
alexaClientSDK::settings::test::TEST_F | ( | SettingCallbackAdapterTest | , |
test_lambdaCallback | |||
) |
Test callback for lambda functions.
alexaClientSDK::settings::test::TEST_F | ( | SettingsManagerTest | , |
test_removeObserverFailed | |||
) |
Test addObserver for a setting that doesn't exist.
alexaClientSDK::settings::test::TEST_F | ( | SettingsManagerTest | , |
test_setExistingStringSetting | |||
) |
Test manager operations for string setting.
alexaClientSDK::settings::test::TEST_F | ( | SettingCallbackAdapterTest | , |
test_staticCallback | |||
) |
Test callback for static functions.
alexaClientSDK::settings::test::TEST_F | ( | SettingsManagerTest | , |
test_clearDataInSettingManagerCallsClearDataInSetting | |||
) |
Test manager getting a clearData callback will call clearData on the setting.
alexaClientSDK::settings::test::TEST_F | ( | SettingCallbackAdapterTest | , |
test_memberCallback | |||
) |
Test callback for member functions.
alexaClientSDK::settings::test::TEST_F | ( | SettingEventSenderTest | , |
testSlow_maxRetries | |||
) |
Test retries will give up after N attempts
alexaClientSDK::settings::test::TEST_F | ( | LocaleWakeWordsSettingTest | , |
test_nullEventSenders | |||
) |
Test create with null event senders.
alexaClientSDK::settings::test::TEST_F | ( | SettingEventSenderTest | , |
testSlow_retryOnInternalError | |||
) |
Test retry on server internal error HTTP response
alexaClientSDK::settings::test::TEST_F | ( | LocaleWakeWordsSettingTest | , |
test_nullStorage | |||
) |
Test create with null storage.
alexaClientSDK::settings::test::TEST_F | ( | LocaleWakeWordsSettingTest | , |
test_nullAssetsManager | |||
) |
Test create with null assets manager.
alexaClientSDK::settings::test::TEST_F | ( | SettingCallbacksTest | , |
test_lambdaAndStaticCallbacks | |||
) |
Test callback for a mix of lambda and static functions.
alexaClientSDK::settings::test::TEST_F | ( | LocaleWakeWordsSettingTest | , |
test_restoreSynchronized | |||
) |
Test restore when all values are available and synchronized.
alexaClientSDK::settings::test::TEST_F | ( | LocaleWakeWordsSettingTest | , |
test_AVSChangeWakeWordsRequest | |||
) |
Test success flow for avs wake word request.
alexaClientSDK::settings::test::TEST_F | ( | SettingEventSenderTest | , |
testSlow_retryStopAfterSuccess | |||
) |
Test retry on server internal error HTTP response and will stop after success
alexaClientSDK::settings::test::TEST_F | ( | SharedAVSSettingProtocolTest | , |
test_nullEventSender | |||
) |
Test create with null event sender.
alexaClientSDK::settings::test::TEST_F | ( | SharedAVSSettingProtocolTest | , |
test_nullStorage | |||
) |
Test create with null storage.
alexaClientSDK::settings::test::TEST_F | ( | SettingCallbacksTest | , |
test_memberCallback | |||
) |
Test callback for member functions.
alexaClientSDK::settings::test::TEST_F | ( | SharedAVSSettingProtocolTest | , |
test_restoreValueNotAvailable | |||
) |
Test restore when value is not available in the database.
alexaClientSDK::settings::test::TEST_F | ( | LocaleWakeWordsSettingTest | , |
test_AVSChangeWakeWordsRequestSetFailed | |||
) |
Test that if the set value fails for avs request, the value doesn't change and report event is sent with original value.
alexaClientSDK::settings::test::TEST_F | ( | SettingEventSenderTest | , |
testSlow_noRetryOnNonConnected | |||
) |
Test no retry on non-connected HTTP response
alexaClientSDK::settings::test::TEST_F | ( | SharedAVSSettingProtocolTest | , |
test_restoreValueNotAvailableCloudAuthoritative | |||
) |
Test restore when value is not available in the database for a setting that use cloud authoritative default value.
alexaClientSDK::settings::test::TEST_F | ( | SettingEventSenderTest | , |
testSlow_cancelRetry | |||
) |
Test cancellation of retries
alexaClientSDK::settings::test::TEST_F | ( | LocaleWakeWordsSettingTest | , |
test_AVSChangeWakeWordsRequestSendEventFailed | |||
) |
Test send event failed for avs request.
alexaClientSDK::settings::test::TEST_F | ( | SharedAVSSettingProtocolTest | , |
test_restoreSynchronized | |||
) |
Test restore when the value is available and synchronized.
alexaClientSDK::settings::test::TEST_F | ( | SharedAVSSettingProtocolTest | , |
test_AVSChangeRequest | |||
) |
Test success flow for AVS request.
alexaClientSDK::settings::test::TEST_F | ( | LocaleWakeWordsSettingTest | , |
test_AVSChangeLocaleRequest | |||
) |
Test success flow for avs locale request.
alexaClientSDK::settings::test::TEST_F | ( | SharedAVSSettingProtocolTest | , |
test_AVSChangeRequestSetFailed | |||
) |
Test set value failed for AVS request.
alexaClientSDK::settings::test::TEST_F | ( | LocaleWakeWordsSettingTest | , |
test_AVSChangeLocaleRequestSetFailed | |||
) |
Test set value failed for avs request.
alexaClientSDK::settings::test::TEST_F | ( | SharedAVSSettingProtocolTest | , |
test_AVSChangeRequestStoreFailed | |||
) |
Test store value failed. Revert should be called and AVS notified of previous value.
alexaClientSDK::settings::test::TEST_F | ( | SharedAVSSettingProtocolTest | , |
test_AVSChangeRequestSendEventFailed | |||
) |
Test send event failed for avs request.
alexaClientSDK::settings::test::TEST_F | ( | LocaleWakeWordsSettingTest | , |
test_AVSChangeLocaleRequestSendEventFailed | |||
) |
Test send event failed for avs request.
alexaClientSDK::settings::test::TEST_F | ( | SharedAVSSettingProtocolTest | , |
test_localRequest | |||
) |
Test success flow for local request.
alexaClientSDK::settings::test::TEST_F | ( | LocaleWakeWordsSettingTest | , |
test_restoreValueNotAvailable | |||
) |
Test restore when no value is available in the database. This should run local change to both wake words and locale.
alexaClientSDK::settings::test::TEST_F | ( | SharedAVSSettingProtocolTest | , |
test_localRequestSetFailed | |||
) |
Test set value failed during local request.
alexaClientSDK::settings::test::TEST_F | ( | SharedAVSSettingProtocolTest | , |
test_localRequestStoreFailed | |||
) |
Test store value to database failed for local request.
alexaClientSDK::settings::test::TEST_F | ( | LocaleWakeWordsSettingTest | , |
test_localChangeWakeWordsRequest | |||
) |
Test success flow for local request for wake word change.
alexaClientSDK::settings::test::TEST_F | ( | SharedAVSSettingProtocolTest | , |
test_localRequestSendEventFailed | |||
) |
Test send changed event failed for local request. In this case, we should not update the database with SYNCHRONIZED.
alexaClientSDK::settings::test::TEST_F | ( | LocaleWakeWordsSettingTest | , |
test_localChangeWakeWordsRequestSetFailed | |||
) |
Test set value failed during local request for wake word change.
alexaClientSDK::settings::test::TEST_F | ( | SharedAVSSettingProtocolTest | , |
test_localChangeSettingOfflineSynchronization | |||
) |
Verify that after network disconnect / reconnect will send out setting events that was changed locally while disconnected.
alexaClientSDK::settings::test::TEST_F | ( | LocaleWakeWordsSettingTest | , |
test_localChangeWakeWordsRequestSendEventFailed | |||
) |
TODO: Test send changed event failed while processing wake words local request.
alexaClientSDK::settings::test::TEST_F | ( | LocaleWakeWordsSettingTest | , |
test_localChangeLocaleRequest | |||
) |
TODO: Test success flow for local request for wake word change.
alexaClientSDK::settings::test::TEST_F | ( | LocaleWakeWordsSettingTest | , |
test_localChangeLocaleRequestSetFailed | |||
) |
TODO: Test set value failed during local request for wake word change.
alexaClientSDK::settings::test::TEST_F | ( | LocaleWakeWordsSettingTest | , |
test_localChangeLocaleRequestSendEventFailed | |||
) |
TODO: Test send changed event failed while processing wake words local request.
alexaClientSDK::settings::test::TEST_F | ( | LocaleWakeWordsSettingTest | , |
test_localeChangeTriggerWakeWordsChange | |||
) |
TODO: Test locale change when current wake word is not available.
alexaClientSDK::settings::test::TEST_F | ( | LocaleWakeWordsSettingTest | , |
test_localeChangeCancelPendingWakeWordsChange | |||
) |
TODO: Test locale change when pending request has a wake word that's not available.
alexaClientSDK::settings::test::TEST_F | ( | LocaleWakeWordsSettingTest | , |
test_localeChangeMergePendingWakeWordsChange | |||
) |
TODO: Test locale change when pending request has a valid wake word selected in the current locale.
alexaClientSDK::settings::test::TEST_F | ( | LocaleWakeWordsSettingTest | , |
test_wakeWordChangeRequestFailedOnCurrentLocale | |||
) |
TODO: Test wake word change when current locale doesn't support requested wake word.
alexaClientSDK::settings::test::TEST_F | ( | LocaleWakeWordsSettingTest | , |
test_reconnectAfterOfflineChange | |||
) |
Test synchronization once the SDK is re-connected and there was an offline change.
alexaClientSDK::settings::test::TEST_F | ( | SharedAVSSettingProtocolTest | , |
test_avsChangeSettingOfflineSynchronization | |||
) |
Verify that after network disconnect / reconnect will send out setting events that was changed through AVS directive.
alexaClientSDK::settings::test::TEST_F | ( | SharedAVSSettingProtocolTest | , |
test_multipleAVSChanges | |||
) |
Verify that multiple AVS setting changes will be merged. The setting will be changed multiple times immediately one after the other. It's expected that only at most 2 settings are sent, that is, at least 1 has been canceled and the last value sent is the latest one.
alexaClientSDK::settings::test::TEST_F | ( | SharedAVSSettingProtocolTest | , |
test_multipleLocalChanges | |||
) |
Verify that multiple local setting changes will be merged. The setting will be changed multiple times immediately one after the other. It's expected that only at most 2 settings are sent, that is, at least 1 has been canceled and the last value sent is the latest one.
|
static |
General timeout for tests to fail.
|
static |
Constant representing "ALEXA" enabled.
|
static |
A random valid bssid.
|
static |
A random valid connection type.
|
static |
Constant representing a valid database value.
|
static |
Constant representing a default value.
|
static |
A random valid DHCP server address.
|
static |
Constant representing "ECHO" enabled value.
|
static |
Represents an empty json list.
|
static |
Constant representing "en-CA" enabled db value.
|
static |
A vector of locales that contains only en-CA.
|
static |
A random valid connection type.
|
static |
The expected changed event format.
|
static |
The expected report event format.
|
static |
Constant representing "fr-CA" enabled db value.
|
static |
A vector of locales that contains only fr-CA.
std::string alexaClientSDK::settings::test::globalTimezone = INIT_TIMEZONE |
Used to test static callback.
|
static |
Initial value for the setting.
|
static |
The value used to initialize the hello object.
|
static |
String representation of the initial value.
|
static |
Empty string used to represent invalid value by the protocol.
|
static |
Constant representing an invalid wake word / locale value.
|
static |
A random valid IP address.
|
static |
A random valid connection type.
|
static |
The key used for converting the hello object.
|
static |
The database key to be used by the protocol given the METADATA
object.
|
static |
The database key to be used to save wake words.
|
static |
A random valid MAC address.
|
static |
|
static |
The metadata for the event messages used in this test.
A dummy setting metadata.
|
static |
Constant representing the timeout for test events.
|
static |
New value for the setting.
|
static |
Constant representing a valid new value.
|
static |
String representation of the new value.
|
static |
Table with the retry times on subsequent retries.
|
static |
A random valid subnet mask.
|
static |
Set of supported locales.
|
static |
Set of combinations of supported wake words.
|
static |
The timeout used throughout the tests.
|
static |
The database key to be used to save wake words.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0