AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Functions | Variables
alexaClientSDK::integration::test Namespace Reference

Classes

class  ACLTestContext
 
class  AlertsTest
 
class  AlexaAuthorizationDelegateTest
 
class  AlexaCommunicationsLibraryTest
 
class  AlexaDirectiveSequencerLibraryTest
 
class  AudioInputProcessorTest
 
class  AudioPlayerTest
 
class  AuthDelegateTestContext
 
class  AVSCommunication
 
class  holdToTalkButton
 
class  NetworkIntegrationTests
 
class  SDKTestContext
 
class  ServerDisconnectIntegrationTest
 
class  SpeechSynthesizerTest
 
class  tapToTalkButton
 
class  TestAlertObserver
 
class  TestClient
 A test observer that mocks out the ChannelObserverInterface#onFocusChanged() call. More...
 
class  TestDirectiveHandler
 
class  TestExceptionEncounteredSender
 
class  TestMediaPlayer
 
class  TestMessageSender
 
class  TestSpeechSynthesizerObserver
 
class  testStateProvider
 

Functions

static const std::string TAG ("TestMediaPlayer")
 String to identify log entries originating from this file. More...
 
static const std::chrono::seconds WAIT_FOR_TIMEOUT_DURATION (25)
 
static const std::chrono::seconds SHORT_TIMEOUT_DURATION (5)
 
static const std::string TAG ("AlertsIntegrationTest")
 String to identify log entries originating from this file. More...
 
 TEST_F (AlertsTest, DISABLED_test_handleOneTimerWithLocalStop)
 
 TEST_F (AlertsTest, DISABLED_test_handleMultipleTimersWithLocalStop)
 
 TEST_F (AlertsTest, DISABLED_test_stealChannelFromActiveAlert)
 
 TEST_F (AlertsTest, test_disconnectAndReconnectBeforeLocalStop)
 
 TEST_F (AlertsTest, test_disconnectAndReconnect)
 
 TEST_F (AlertsTest, test_removeAllAlertsBeforeAlertIsActive)
 
 TEST_F (AlertsTest, DISABLED_test_cancelAlertBeforeItIsActive)
 
 TEST_F (AlertsTest, test_removeStorageBeforeAlarmIsSet)
 
 TEST_F (AlertsTest, DISABLED_testTimer_userShortUnrelatedBargeInOnActive)
 
 TEST_F (AlertsTest, DISABLED_testTimer_UserLongUnrelatedBargeInOnActive)
 
 TEST_F (AlertsTest, DISABLED_test_userSpeakingWhenAlertShouldBeActive)
 
 TEST_F (AlertsTest, DISABLED_test_handleOneTimerWithVocalStop)
 
static const std::chrono::seconds TIME_OUT (60)
 Timeout in seconds for AuthDelegate to wait for LWA response. More...
 
 TEST_F (AlexaAuthorizationDelegateTest, test_refreshAuthToken)
 
 TEST_F (AlexaAuthorizationDelegateTest, test_invalidClientIdWithUnrecoverableError)
 
 TEST_F (AlexaCommunicationsLibraryTest, test_sendEvent)
 
 TEST_F (AlexaCommunicationsLibraryTest, test_sendInvalidEvent)
 
 TEST_F (AlexaCommunicationsLibraryTest, test_sendEventWithAttachment)
 
 TEST_F (AlexaCommunicationsLibraryTest, test_sendEventAndReceiveDirective)
 
 TEST_F (AlexaCommunicationsLibraryTest, test_sendEventsSerially)
 
 TEST_F (AlexaCommunicationsLibraryTest, test_sendEventsConcurrently)
 
 TEST_F (AlexaCommunicationsLibraryTest, test_receiveDirectiveOnDownchannel)
 
 TEST_F (AlexaCommunicationsLibraryTest, test_persistentConnection)
 
 TEST_F (AlexaCommunicationsLibraryTest, test_multipleConnectionStatusObservers)
 
static const std::string TAG ("AlexaDirectiveSequencerLibraryTest")
 String to identify log entries originating from this file. More...
 
static const std::chrono::seconds WAIT_FOR_TIMEOUT_DURATION (5)
 
static const std::chrono::seconds SEND_EVENT_TIMEOUT_DURATION (20)
 
static const std::chrono::seconds RESPONSE_DELAY (2)
 
bool getToken (TestDirectiveHandler::DirectiveParams params, std::string &returnToken)
 
 TEST_F (AlexaDirectiveSequencerLibraryTest, test_sendEventWithDirective)
 
 TEST_F (AlexaDirectiveSequencerLibraryTest, test_sendDirectiveGroupWithoutBlocking)
 
 TEST_F (AlexaDirectiveSequencerLibraryTest, test_sendDirectiveWithDifferentDialogRequestID)
 
 TEST_F (AlexaDirectiveSequencerLibraryTest, DISABLED_test_dropQueueAfterBargeIn)
 
 TEST_F (AlexaDirectiveSequencerLibraryTest, DISABLED_test_sendDirectiveWithoutADialogRequestID)
 
 TEST_F (AlexaDirectiveSequencerLibraryTest, test_sendDirectivesForPreHandling)
 
 TEST_F (AlexaDirectiveSequencerLibraryTest, test_cancelDirectivesWhileInQueue)
 
 TEST_F (AlexaDirectiveSequencerLibraryTest, test_oneBlockingDirectiveAtTheFront)
 
 TEST_F (AlexaDirectiveSequencerLibraryTest, test_oneBlockingDirectiveInTheMiddle)
 
 TEST_F (AlexaDirectiveSequencerLibraryTest, test_noDirectiveHandlerRegisteredForADirectiveAtTheFront)
 
 TEST_F (AlexaDirectiveSequencerLibraryTest, DISABLED_test_noDirectiveHandlerRegisteredForADirectiveInTheMiddle)
 
 TEST_F (AlexaDirectiveSequencerLibraryTest, test_twoDirectiveHandlersRegisteredForADirective)
 
 TEST_F (AlexaDirectiveSequencerLibraryTest, test_multiturnScenario)
 
 TEST_F (AlexaDirectiveSequencerLibraryTest, test_getAttachmentWithContentId)
 
static const std::chrono::seconds LONG_TIMEOUT_DURATION (10)
 
static const std::chrono::seconds SHORT_TIMEOUT_DURATION (2)
 
static const std::chrono::seconds NO_TIMEOUT_DURATION (0)
 
static const std::string TAG ("AlexaDirectiveSequencerLibraryTest")
 String to identify log entries originating from this file. More...
 
template<typename T >
std::vector< T > readAudioFromFile (const std::string &fileName, const int &headerPosition, bool *errorOccurred)
 
 TEST_F (AudioInputProcessorTest, DISABLED_test_tapToTalkJoke)
 
 TEST_F (AudioInputProcessorTest, DISABLED_test_tapToTalkTimeOpus)
 
 TEST_F (AudioInputProcessorTest, DISABLED_test_tapToTalkSilence)
 
 TEST_F (AudioInputProcessorTest, test_tapToTalkNoAudio)
 
 TEST_F (AudioInputProcessorTest, test_tapToTalkMultiturn)
 
 TEST_F (AudioInputProcessorTest, DISABLED_test_tapToTalkMultiturnWithoutUserResponse)
 
 TEST_F (AudioInputProcessorTest, test_tapToTalkCancel)
 
 TEST_F (AudioInputProcessorTest, test_holdToTalkJoke)
 
 TEST_F (AudioInputProcessorTest, DISABLED_test_holdToTalkMultiturn)
 
 TEST_F (AudioInputProcessorTest, DISABLED_test_holdToTalkMultiTurnWithSilence)
 
 TEST_F (AudioInputProcessorTest, DISABLED_test_holdToTalkMultiturnWithTimeOut)
 
 TEST_F (AudioInputProcessorTest, test_holdToTalkNoAudio)
 
 TEST_F (AudioInputProcessorTest, test_holdToTalkCancel)
 
 TEST_F (AudioInputProcessorTest, test_audioWithoutAnyTrigger)
 
static const std::chrono::seconds WAIT_FOR_TIMEOUT_DURATION (15)
 
static const std::chrono::seconds NO_TIMEOUT_DURATION (0)
 
static const std::chrono::seconds SONG_TIMEOUT_DURATION (120)
 
static const std::string TAG ("AudioPlayerIntegrationTest")
 String to identify log entries originating from this file. More...
 
 TEST_F (AudioPlayerTest, test_singASong)
 
 TEST_F (AudioPlayerTest, DISABLED_test_flashBriefing)
 
static const std::string TAG ("NetworkIntegrationTests")
 
 TEST_F (NetworkIntegrationTests, test_connectAfterSlowConnection)
 
 TEST_F (NetworkIntegrationTests, test_connectBeforeSlowConnection)
 
 TEST_F (NetworkIntegrationTests, test_reConnectAfterDelay)
 
 TEST_F (NetworkIntegrationTests, test_sendEventAfterDelayPass)
 
 TEST_F (NetworkIntegrationTests, test_sendEventAfterDelayFails)
 
static const std::string TAG ("ServerDisconnectIntegrationTest")
 String to identify log entries originating from this file. More...
 
 TEST_F (ServerDisconnectIntegrationTest, DISABLED_test_sendEvent)
 
static const std::chrono::seconds WAIT_FOR_TIMEOUT_DURATION (15)
 
static const std::chrono::seconds SEND_EVENT_TIMEOUT_DURATION (20)
 
static const std::chrono::seconds DIRECTIVE_TIMEOUT_DURATION (7)
 
static const std::chrono::seconds WANTING_TIMEOUT_DURATION (1)
 
static const std::chrono::seconds WAIT_FOR_MEDIA_PLAYER_TIMEOUT_DURATION (60)
 
static const std::string TAG ("SpeechSynthesizerIntegrationTest")
 String to identify log entries originating from this file. More...
 
 TEST_F (SpeechSynthesizerTest, DISABLED_test_handleMultipleConsecutiveSpeaks)
 
 TEST_F (SpeechSynthesizerTest, test_bargeInOnOneSpeech)
 
 TEST_F (SpeechSynthesizerTest, test_bargeInOnMultipleSpeaksAtTheBeginning)
 
 TEST_F (SpeechSynthesizerTest, DISABLED_test_bargeInOnMultipleSpeaksInTheMiddle)
 
 TEST_F (SpeechSynthesizerTest, test_multiturnScenario)
 
 TEST_F (SpeechSynthesizerTest, test_handleNoDirectives)
 

Variables

static const std::string DEFAULT_AVS_GATEWAY = "https://alexa.na.gateway.devices.a2z.com"
 Default AVS gateway to connect to. More...
 
static const std::string JSON_MESSAGE_EVENT_KEY = "event"
 JSON key to get the event object of a message. More...
 
static const std::string JSON_MESSAGE_DIRECTIVE_KEY = "directive"
 JSON key to get the directive object of a message. More...
 
static const std::string JSON_MESSAGE_HEADER_KEY = "header"
 JSON key to get the header object of a message. More...
 
static const std::string JSON_MESSAGE_NAMESPACE_KEY = "namespace"
 JSON key to get the namespace value of a header. More...
 
static const std::string JSON_MESSAGE_NAME_KEY = "name"
 JSON key to get the name value of a header. More...
 
static const std::string JSON_MESSAGE_MESSAGE_ID_KEY = "messageId"
 JSON key to get the messageId value of a header. More...
 
static const std::string JSON_MESSAGE_DIALOG_REQUEST_ID_KEY = "dialogRequestId"
 JSON key to get the dialogRequestId value of a header. More...
 
static const std::string JSON_MESSAGE_PAYLOAD_KEY = "payload"
 JSON key to get the payload object of a message. More...
 
static const avsCommon::utils::mediaPlayer::MediaPlayerState DEFAULT_MEDIA_PLAYER_STATE
 Default media player state for reporting all playback eventing. More...
 
static std::atomic< avsCommon::utils::mediaPlayer::MediaPlayerInterface::SourceIdg_sourceId {0}
 A counter used to increment the source id when a new source is set. More...
 
static const std::string RECOGNIZE_JOKE_AUDIO_FILE_NAME = "/recognize_joke_test.wav"
 
static const std::string RECOGNIZE_WHATS_UP_AUDIO_FILE_NAME = "/recognize_whats_up_test.wav"
 
static const std::string RECOGNIZE_WEATHER_AUDIO_FILE_NAME = "/recognize_weather_test.wav"
 
static const std::string RECOGNIZE_TIMER_AUDIO_FILE_NAME = "/recognize_timer_test.wav"
 
static const std::string RECOGNIZE_LONG_TIMER_AUDIO_FILE_NAME = "/recognize_long_timer_test.wav"
 
static const std::string RECOGNIZE_VERY_LONG_TIMER_AUDIO_FILE_NAME = "/recognize_very_long_timer_test.wav"
 
static const std::string RECOGNIZE_STOP_AUDIO_FILE_NAME = "/recognize_stop_test.wav"
 
static const std::string RECOGNIZE_CANCEL_TIMER_AUDIO_FILE_NAME = "/recognize_cancel_timer_test.wav"
 
static const std::string NAME_RECOGNIZE = "Recognize"
 
static const std::string NAME_SET_ALERT_FAILED = "SetAlertFailed"
 
static const std::string NAME_ALERT_STOPPED = "AlertStopped"
 
static const std::string NAME_ALERT_ENTERED_BACKGROUND = "AlertEnteredBackground"
 
static const std::string NAME_ALERT_ENTERED_FOREGROUND = "AlertEnteredForeground"
 
static const std::string NAME_DELETE_ALERT_SUCCEEDED = "DeleteAlertSucceeded"
 
static const std::string NAME_DELETE_ALERT_FAILED = "DeleteAlertFailed"
 
static const std::string NAME_ALERT_STARTED = "AlertStarted"
 
static const std::string NAME_SPEECH_STARTED = "SpeechStarted"
 
static const std::string NAME_SPEECH_FINISHED = "SpeechFinished"
 
static const std::string NAME_SET_ALERT_SUCCEEDED = "SetAlertSucceeded"
 
static const std::string DIALOG_ACTIVITY_ID = "Dialog"
 
static const std::string CONTENT_ACTIVITY_ID = "Content"
 
static const std::string ALERTS_ACTIVITY_ID = "Alerts"
 Sample alerts activity id. More...
 
static const avsCommon::utils::AudioFormat::Encoding COMPATIBLE_ENCODING
 The compatible encoding for AIP. More...
 
static const avsCommon::utils::AudioFormat::Endianness COMPATIBLE_ENDIANNESS
 The compatible endianness for AIP. More...
 
static const unsigned int COMPATIBLE_SAMPLE_RATE = 16000
 The compatible sample rate for AIP. More...
 
static const unsigned int COMPATIBLE_SAMPLE_SIZE_IN_BITS = 16
 The compatible bits per sample. More...
 
static const unsigned int COMPATIBLE_NUM_CHANNELS = 1
 The compatible number of channels. More...
 
static const std::string JSON_MESSAGE_EVENT_KEY = "event"
 JSON key to get the event object of a message. More...
 
static const std::string JSON_MESSAGE_DIRECTIVE_KEY = "directive"
 JSON key to get the directive object of a message. More...
 
static const std::string JSON_MESSAGE_HEADER_KEY = "header"
 JSON key to get the header object of a message. More...
 
static const std::string JSON_MESSAGE_NAMESPACE_KEY = "namespace"
 JSON key to get the namespace value of a header. More...
 
static const std::string JSON_MESSAGE_NAME_KEY = "name"
 JSON key to get the name value of a header. More...
 
static const std::string JSON_MESSAGE_MESSAGE_ID_KEY = "messageId"
 JSON key to get the messageId value of a header. More...
 
static const std::string JSON_MESSAGE_DIALOG_REQUEST_ID_KEY = "dialogRequestId"
 JSON key to get the dialogRequestId value of a header. More...
 
static const std::string JSON_MESSAGE_PAYLOAD_KEY = "payload"
 JSON key to get the payload object of a message. More...
 
static std::string g_configPath
 Path to the AlexaClientSDKConfig.json file (from command line arguments). More...
 
static std::string g_inputPath
 Path to resources (e.g. audio files) for tests (from command line arguments). More...
 
static const std::string SYNCHRONIZE_STATE_JSON
 This is a basic synchronize JSON message which may be used to initiate a connection with AVS. More...
 
static const std::string BAD_SYNCHRONIZE_STATE_JSON = "{"
 This is a partial JSON string that should not be parseable. More...
 
static const std::string CT_RECOGNIZE_EVENT_JSON = RECOGNIZE_EVENT_JSON(CLOSE_TALK)
 This string specifies a Recognize event using the CLOSE_TALK profile. More...
 
static const std::string NF_RECOGNIZE_EVENT_JSON = RECOGNIZE_EVENT_JSON(NEAR_FIELD)
 This string specifies a Recognize event using the NEAR_FIELD profile. More...
 
static const std::string EXPECT_SPEECH_TIMED_OUT_EVENT_JSON
 This string specifies an ExpectSpeechTimedOut event. More...
 
static const std::string RECOGNIZE_AUDIO_FILE_NAME = "recognize_test.wav"
 This is a 16 bit 16 kHz little endian linear PCM audio file containing a recognized message for AVS. More...
 
static const std::string SILENCE_AUDIO_FILE_NAME = "silence_test.wav"
 This is a 16 bit 16 kHz little endian linear PCM audio file containing several seconds of silence. More...
 
static const int MAX_CONCURRENT_STREAMS = 9
 
static std::string g_configPath
 Path to the AlexaClientSDKConfig.json file (from command line arguments). More...
 
static std::string g_inputPath
 Path to resources (e.g. audio files) for tests (from command line arguments). More...
 
static const std::string RECOGNIZE_JOKE_AUDIO_FILE_NAME = "/recognize_joke_test.wav"
 This is a 16 bit 16 kHz little endian linear PCM audio file of "Joke" to be recognized. More...
 
static const std::string RECOGNIZE_WIKI_AUDIO_FILE_NAME = "/recognize_wiki_test.wav"
 This is a 16 bit 16 kHz little endian linear PCM audio file of "Wikipedia" to be recognized. More...
 
static const std::string RECOGNIZE_LIONS_AUDIO_FILE_NAME = "/recognize_lions_test.wav"
 This is a 16 bit 16 kHz little endian linear PCM audio file of "Lions" to be recognized. More...
 
static const std::string RECOGNIZE_WHATS_UP_AUDIO_FILE_NAME = "/recognize_whats_up_test.wav"
 This is a 16 bit 16 kHz little endian linear PCM audio file of "What's up" to be recognized. More...
 
static const std::string RECOGNIZE_TIMER_AUDIO_FILE_NAME = "/recognize_timer_test.wav"
 This is a 16 bit 16 kHz little endian linear PCM audio file of "Set a timer for 5 seconds" to be recognized. More...
 
static const std::string RECOGNIZE_FLASHBRIEFING_AUDIO_FILE_NAME = "/recognize_flashbriefing_test.wav"
 This is a 16 bit 16 kHz little endian linear PCM audio file of "flashbriefing" to be recognized. More...
 
static const std::string CT_FIRST_RECOGNIZE_EVENT_JSON = RECOGNIZE_EVENT_JSON(CLOSE_TALK, FIRST_DIALOG_REQUEST_ID)
 This string specifies a Recognize event using the CLOSE_TALK profile and uses the first DialogRequestID. More...
 
static const std::string CT_SECOND_RECOGNIZE_EVENT_JSON = RECOGNIZE_EVENT_JSON(CLOSE_TALK, SECOND_DIALOG_REQUEST_ID)
 This string specifies a Recognize event using the CLOSE_TALK profile and uses the second DialogRequestID. More...
 
static const std::string NAME_CLEAR_QUEUE = "ClearQueue"
 
static const std::string NAME_EXPECT_SPEECH = "ExpectSpeech"
 
static const std::string NAME_PLAY = "Play"
 
static const std::string NAME_SET_MUTE = "SetMute"
 
static const std::string NAME_SPEAK = "Speak"
 
static const std::string NAME_STOP = "Stop"
 
static const std::string NAME_SPEECH_STARTED = "SpeechStarted"
 
static const std::string NAME_SPEECH_FINISHED = "SpeechFinished"
 
static const std::string NAME_SET_ALERT_FAILED = "SetAlertFailed"
 
static const std::string NAME_SET_ALERT = "SetAlert"
 
static const std::string NAMESPACE_AUDIO_PLAYER = "AudioPlayer"
 
static const std::string NAMESPACE_ALERTS = "Alerts"
 
static const std::string NAMESPACE_SPEAKER = "Speaker"
 
static const std::string NAMESPACE_SPEECH_RECOGNIZER = "SpeechRecognizer"
 
static const std::string NAMESPACE_SPEECH_SYNTHESIZER = "SpeechSynthesizer"
 
static const NamespaceAndName EXPECT_SPEECH_PAIR (NAMESPACE_SPEECH_RECOGNIZER, NAME_EXPECT_SPEECH)
 
static const NamespaceAndName SET_MUTE_PAIR (NAMESPACE_SPEAKER, NAME_SET_MUTE)
 
static const NamespaceAndName SPEAK_PAIR (NAMESPACE_SPEECH_SYNTHESIZER, NAME_SPEAK)
 
static const NamespaceAndName SET_ALERT_PAIR (NAMESPACE_ALERTS, NAME_SET_ALERT)
 
static const std::string JSON_MESSAGE_DIRECTIVE_KEY = "directive"
 JSON key to get the directive object of a message. More...
 
static const std::string JSON_MESSAGE_HEADER_KEY = "header"
 JSON key to get the header object of a message. More...
 
static const std::string JSON_MESSAGE_NAMESPACE_KEY = "namespace"
 JSON key to get the namespace value of a header. More...
 
static const std::string JSON_MESSAGE_NAME_KEY = "name"
 JSON key to get the name value of a header. More...
 
static const std::string JSON_MESSAGE_MESSAGE_ID_KEY = "messageId"
 JSON key to get the messageId value of a header. More...
 
static const std::string JSON_MESSAGE_DIALOG_REQUEST_ID_KEY = "dialogRequestId"
 JSON key to get the dialogRequestId value of a header. More...
 
static const std::string JSON_MESSAGE_PAYLOAD_KEY = "payload"
 JSON key to get the payload object of a message. More...
 
static const std::string JSON_MESSAGE_TOKEN_KEY = "token"
 JSON key to get the payload object of a message. More...
 
static const char TOKEN_KEY [] = "token"
 JSON key to add to the payload object of a message. More...
 
static std::string g_configPath
 Path to the AlexaClientSDKConfig.json file (from command line arguments). More...
 
static std::string g_inputPath
 Path to resources (e.g. audio files) for tests (from command line arguments). More...
 
static const std::string JOKE_AUDIO_FILE = "/recognize_joke_test.wav"
 
static const std::string WIKI_AUDIO_FILE = "/recognize_wiki_test.wav"
 
static const std::string LIONS_AUDIO_FILE = "/recognize_lions_test.wav"
 
static const std::string SILENCE_AUDIO_FILE = "/recognize_silence_test.wav"
 
static const std::string ALEXA_JOKE_AUDIO_FILE = "/alexa_recognize_joke_test.wav"
 
static const std::string ALEXA_WIKI_AUDIO_FILE = "/alexa_recognize_wiki_test.wav"
 
static const std::string ALEXA_SILENCE_AUDIO_FILE = "/alexa_recognize_silence_test.wav"
 
static const std::string TIME_AUDIO_FILE_OPUS = "/utterance_time_success.opus"
 
static const std::string NAME_VOLUME_STATE = "VolumeState"
 
static const std::string NAME_SPEAK = "Speak"
 
static const std::string NAME_EXPECT_SPEECH = "ExpectSpeech"
 
static const std::string NAME_EXPECT_SPEECH_TIMED_OUT = "ExpectSpeechTimedOut"
 
static const std::string NAME_SET_MUTE = "SetMute"
 
static const std::string NAME_PLAY = "Play"
 
static const std::string NAME_STOP_CAPTURE = "StopCapture"
 
static const std::string NAME_RECOGNIZE = "Recognize"
 
static const std::string NAMESPACE_SPEECH_RECOGNIZER = "SpeechRecognizer"
 
static const std::string NAMESPACE_SPEECH_SYNTHESIZER = "SpeechSynthesizer"
 
static const std::string NAMESPACE_AUDIO_PLAYER = "AudioPlayer"
 
static const std::string NAMESPACE_SPEAKER = "Speaker"
 
static const NamespaceAndName SPEAK_PAIR = {NAMESPACE_SPEECH_SYNTHESIZER, NAME_SPEAK}
 
static const NamespaceAndName EXPECT_SPEECH_PAIR = {NAMESPACE_SPEECH_RECOGNIZER, NAME_EXPECT_SPEECH}
 
static const NamespaceAndName SET_MUTE_PAIR = {NAMESPACE_SPEAKER, NAME_SET_MUTE}
 
static const NamespaceAndName VOLUME_STATE_PAIR = {NAMESPACE_SPEAKER, NAME_VOLUME_STATE}
 
static const NamespaceAndName PLAY_PAIR = {NAMESPACE_AUDIO_PLAYER, NAME_PLAY}
 
static const NamespaceAndName STOP_CAPTURE_PAIR = {NAMESPACE_SPEECH_RECOGNIZER, NAME_STOP_CAPTURE}
 
static const std::string DIALOG_ACTIVITY_ID = "Dialog"
 Sample dialog activity id. More...
 
static const std::string ALARM_ACTIVITY_ID = "Alarms"
 Sample alerts activity id. More...
 
static const std::string CONTENT_ACTIVITY_ID = "Content"
 Sample content activity id. More...
 
static const int RIFF_HEADER_SIZE = 44
 
static const unsigned int COMPATIBLE_SAMPLE_RATE_OPUS_32 = 32000
 The compatible sample rate for OPUS 32KHz. More...
 
static const std::string JSON_MESSAGE_DIRECTIVE_KEY = "directive"
 JSON key to get the directive object of a message. More...
 
static const std::string JSON_MESSAGE_HEADER_KEY = "header"
 JSON key to get the header object of a message. More...
 
static const std::string JSON_MESSAGE_NAMESPACE_KEY = "namespace"
 JSON key to get the namespace value of a header. More...
 
static const std::string JSON_MESSAGE_NAME_KEY = "name"
 JSON key to get the name value of a header. More...
 
static const std::string JSON_MESSAGE_MESSAGE_ID_KEY = "messageId"
 JSON key to get the messageId value of a header. More...
 
static const std::string JSON_MESSAGE_DIALOG_REQUEST_ID_KEY = "dialogRequestId"
 JSON key to get the dialogRequestId value of a header. More...
 
static const std::string JSON_MESSAGE_PAYLOAD_KEY = "payload"
 JSON key to get the payload object of a message. More...
 
static const avsCommon::utils::AudioFormat::Encoding COMPATIBLE_ENCODING
 The compatible encoding. More...
 
static const avsCommon::utils::AudioFormat::Endianness COMPATIBLE_ENDIANNESS
 The compatible endianness. More...
 
static const unsigned int COMPATIBLE_SAMPLE_RATE = 16000
 The compatible sample rate. More...
 
static const unsigned int COMPATIBLE_SAMPLE_SIZE_IN_BITS = 16
 The compatible bits per sample. More...
 
static const unsigned int COMPATIBLE_NUM_CHANNELS = 1
 The compatible number of channels. More...
 
static std::string g_configPath
 Path to the AlexaClientSDKConfig.json file (from command line arguments). More...
 
static std::string g_inputPath
 Path to resources (e.g. audio files) for tests (from command line arguments). More...
 
static const std::string RECOGNIZE_SING_FILE_NAME = "/recognize_sing_song_test.wav"
 
static const std::string RECOGNIZE_FLASHBRIEFING_FILE_NAME = "/recognize_flashbriefing_test.wav"
 
static const std::string NAME_PLAYBACK_STARTED = "PlaybackStarted"
 
static const std::string NAME_PLAYBACK_NEARLY_FINISHED = "PlaybackNearlyFinished"
 
static const std::string NAME_PLAYBACK_FINISHED = "PlaybackFinished"
 
static const std::string NAME_PLAYBACK_STOPPED = "PlaybackStopped"
 
static const std::string NAME_SYNC_STATE = "SynchronizeState"
 
static const std::string NAME_RECOGNIZE = "Recognize"
 
static const std::string NAME_SPEECH_STARTED = "SpeechStarted"
 
static const std::string NAME_SPEECH_FINISHED = "SpeechFinished"
 
static const std::string DIALOG_CHANNEL_NAME = "Dialog"
 The dialog Channel name used in intializing the FocusManager. More...
 
static const std::string CONTENT_CHANNEL_NAME = "Content"
 The content Channel name used in intializing the FocusManager. More...
 
static const std::string TEST_CHANNEL_NAME = "Test"
 An incorrect Channel name that is never initialized as a Channel. More...
 
static const unsigned int DIALOG_CHANNEL_PRIORITY = 100
 The priority of the dialog Channel used in intializing the FocusManager. More...
 
static const unsigned int CONTENT_CHANNEL_PRIORITY = 300
 The priority of the content Channel used in intializing the FocusManager. More...
 
static const unsigned int TEST_CHANNEL_PRIORITY = 400
 The priority of the content Channel used in intializing the FocusManager. More...
 
static const std::string DIALOG_ACTIVITY_ID = "dialog"
 Sample dialog activity id. More...
 
static const std::string CONTENT_ACTIVITY_ID = "content"
 Sample content activity id. More...
 
static const std::string TEST_ACTIVITY_ID = "test"
 Sample content activity id. More...
 
static const avsCommon::utils::AudioFormat::Encoding COMPATIBLE_ENCODING
 The compatible encoding for AIP. More...
 
static const avsCommon::utils::AudioFormat::Endianness COMPATIBLE_ENDIANNESS
 The compatible endianness for AIP. More...
 
static const unsigned int COMPATIBLE_SAMPLE_RATE = 16000
 The compatible sample rate for AIP. More...
 
static const unsigned int COMPATIBLE_SAMPLE_SIZE_IN_BITS = 16
 The compatible bits per sample. More...
 
static const unsigned int COMPATIBLE_NUM_CHANNELS = 1
 The compatible number of channels. More...
 
static const std::string JSON_MESSAGE_EVENT_KEY = "event"
 JSON key to get the event object of a message. More...
 
static const std::string JSON_MESSAGE_DIRECTIVE_KEY = "directive"
 JSON key to get the directive object of a message. More...
 
static const std::string JSON_MESSAGE_HEADER_KEY = "header"
 JSON key to get the header object of a message. More...
 
static const std::string JSON_MESSAGE_NAMESPACE_KEY = "namespace"
 JSON key to get the namespace value of a header. More...
 
static const std::string JSON_MESSAGE_NAME_KEY = "name"
 JSON key to get the name value of a header. More...
 
static const std::string JSON_MESSAGE_MESSAGE_ID_KEY = "messageId"
 JSON key to get the messageId value of a header. More...
 
static const std::string JSON_MESSAGE_DIALOG_REQUEST_ID_KEY = "dialogRequestId"
 JSON key to get the dialogRequestId value of a header. More...
 
static const std::string JSON_MESSAGE_PAYLOAD_KEY = "payload"
 JSON key to get the payload object of a message. More...
 
static std::string g_configPath
 Path to the AlexaClientSDKConfig.json file (from command line arguments). More...
 
static std::string g_inputPath
 Path to resources (e.g. audio files) for tests (from command line arguments). More...
 
static const std::string DELAY_TIME = "1000ms"
 Amount of Delay in milliseconds to be added. More...
 
static const std::string LONG_DELAY_TIME = "40000ms"
 Amount of Delay for causing a TIMEDOUT status in MessageRequest. More...
 
static const int TIMEOUT_FOR_SEND_IN_SECONDS = 10
 The time to wait for expected message status on sending the message. More...
 
static const int LONG_TIMEOUT_FOR_SEND_IN_SECONDS = 40
 The time to wait for expected message status when delay is longer. More...
 
std::string network_interface
 The network interface specified for the delay to be added. More...
 
static const int TIMEOUT_FOR_SEND_IN_SECONDS = 10
 The time to wait for expected message status on sending the message. More...
 
static std::string g_configPath
 Path to the AlexaClientSDKConfig.json file (from command line arguments). More...
 
static const std::string RECOGNIZE_JOKE_AUDIO_FILE_NAME = "/recognize_joke_test.wav"
 
static const std::string RECOGNIZE_WIKI_AUDIO_FILE_NAME = "/recognize_wiki_test.wav"
 
static const std::string RECOGNIZE_LIONS_AUDIO_FILE_NAME = "/recognize_lions_test.wav"
 
static const std::string RECOGNIZE_FLASHBRIEFING_AUDIO_FILE_NAME = "/recognize_flashbriefing_test.wav"
 
static const std::string RECOGNIZE_WHATS_UP_AUDIO_FILE_NAME = "/recognize_whats_up_test.wav"
 
static const std::string RECOGNIZE_VOLUME_UP_AUDIO_FILE_NAME = "/recognize_volume_up_test.wav"
 
static const std::string CT_FIRST_RECOGNIZE_EVENT_JSON = RECOGNIZE_EVENT_JSON(CLOSE_TALK, FIRST_DIALOG_REQUEST_ID)
 
static const std::string CT_FIRST_RECOGNIZE_EVENT_JSON_NEAR = RECOGNIZE_EVENT_JSON(NEAR_FIELD, FIRST_DIALOG_REQUEST_ID)
 
static const std::string CT_SECOND_RECOGNIZE_EVENT_JSON = RECOGNIZE_EVENT_JSON(CLOSE_TALK, SECOND_DIALOG_REQUEST_ID)
 
static const std::string NAME_SPEAK = "Speak"
 
static const std::string NAME_RECOGNIZE = "Recognize"
 
static const std::string NAME_ADJUST_VOLUME = "AdjustVolume"
 
static const std::string NAME_EXPECT_SPEECH = "ExpectSpeech"
 
static const std::string NAME_SET_MUTE = "SetMute"
 
static const std::string NAME_SPEECH_STARTED = "SpeechStarted"
 
static const std::string NAME_SPEECH_FINISHED = "SpeechFinished"
 
static const std::string NAME_SPEECH_INTERRUPTED = "SpeechInterrupted"
 
static const std::string NAMESPACE_SPEECH_RECOGNIZER = "SpeechRecognizer"
 
static const std::string NAMESPACE_SPEECH_SYNTHESIZER = "SpeechSynthesizer"
 
static const std::string NAMESPACE_SPEAKER = "Speaker"
 
static const NamespaceAndName SPEAK_PAIR = {NAMESPACE_SPEECH_SYNTHESIZER, NAME_SPEAK}
 
static const NamespaceAndName EXPECT_SPEECH_PAIR = {NAMESPACE_SPEECH_RECOGNIZER, NAME_EXPECT_SPEECH}
 
static const NamespaceAndName SET_MUTE_PAIR = {NAMESPACE_SPEAKER, NAME_SET_MUTE}
 
static const NamespaceAndName ADJUST_VOLUME_PAIR = {NAMESPACE_SPEAKER, NAME_ADJUST_VOLUME}
 
static const std::string DIALOG_ACTIVITY_ID = "Dialog"
 
static const std::string ALERTS_ACTIVITY_ID = "Alerts"
 Sample alerts activity id. More...
 
static const unsigned int NUMBER_OF_SPEAK_DIRECTIVES_TO_VALIDATE = 3
 
static const std::string JSON_MESSAGE_EVENT_KEY = "event"
 JSON key to get the event object of a message. More...
 
static const std::string JSON_MESSAGE_DIRECTIVE_KEY = "directive"
 JSON key to get the directive object of a message. More...
 
static const std::string JSON_MESSAGE_HEADER_KEY = "header"
 JSON key to get the header object of a message. More...
 
static const std::string JSON_MESSAGE_NAMESPACE_KEY = "namespace"
 JSON key to get the namespace value of a header. More...
 
static const std::string JSON_MESSAGE_NAME_KEY = "name"
 JSON key to get the name value of a header. More...
 
static const std::string JSON_MESSAGE_MESSAGE_ID_KEY = "messageId"
 JSON key to get the messageId value of a header. More...
 
static const std::string JSON_MESSAGE_DIALOG_REQUEST_ID_KEY = "dialogRequestId"
 JSON key to get the dialogRequestId value of a header. More...
 
static const std::string JSON_MESSAGE_PAYLOAD_KEY = "payload"
 JSON key to get the payload object of a message. More...
 
static std::string g_configPath
 Path to the AlexaClientSDKConfig.json file (from command line arguments). More...
 
static std::string g_inputPath
 Path to resources (e.g. audio files) for tests (from command line arguments). More...
 

Function Documentation

◆ DIRECTIVE_TIMEOUT_DURATION()

static const std::chrono::seconds alexaClientSDK::integration::test::DIRECTIVE_TIMEOUT_DURATION ( )
static

◆ getToken()

bool alexaClientSDK::integration::test::getToken ( TestDirectiveHandler::DirectiveParams  params,
std::string &  returnToken 
)

Helper function to extract the token from a directive.

Parameters
paramsthat has the JSON to be searched through.
returnTokento hold the reulting token.
Returns
Indicates whether extracting the token was successful.

◆ LONG_TIMEOUT_DURATION()

static const std::chrono::seconds alexaClientSDK::integration::test::LONG_TIMEOUT_DURATION ( 10  )
static

◆ NO_TIMEOUT_DURATION() [1/2]

static const std::chrono::seconds alexaClientSDK::integration::test::NO_TIMEOUT_DURATION ( )
static

◆ NO_TIMEOUT_DURATION() [2/2]

static const std::chrono::seconds alexaClientSDK::integration::test::NO_TIMEOUT_DURATION ( )
static

◆ readAudioFromFile()

template<typename T >
std::vector<T> alexaClientSDK::integration::test::readAudioFromFile ( const std::string &  fileName,
const int &  headerPosition,
bool *  errorOccurred 
)

◆ RESPONSE_DELAY()

static const std::chrono::seconds alexaClientSDK::integration::test::RESPONSE_DELAY ( )
static

◆ SEND_EVENT_TIMEOUT_DURATION() [1/2]

static const std::chrono::seconds alexaClientSDK::integration::test::SEND_EVENT_TIMEOUT_DURATION ( 20  )
static

◆ SEND_EVENT_TIMEOUT_DURATION() [2/2]

static const std::chrono::seconds alexaClientSDK::integration::test::SEND_EVENT_TIMEOUT_DURATION ( 20  )
static

◆ SHORT_TIMEOUT_DURATION() [1/2]

static const std::chrono::seconds alexaClientSDK::integration::test::SHORT_TIMEOUT_DURATION ( )
static

◆ SHORT_TIMEOUT_DURATION() [2/2]

static const std::chrono::seconds alexaClientSDK::integration::test::SHORT_TIMEOUT_DURATION ( )
static

◆ SONG_TIMEOUT_DURATION()

static const std::chrono::seconds alexaClientSDK::integration::test::SONG_TIMEOUT_DURATION ( 120  )
static

◆ TAG() [1/8]

static const std::string alexaClientSDK::integration::test::TAG ( "AlertsIntegrationTest"  )
static

String to identify log entries originating from this file.

◆ TAG() [2/8]

static const std::string alexaClientSDK::integration::test::TAG ( "AlexaDirectiveSequencerLibraryTest"  )
static

String to identify log entries originating from this file.

◆ TAG() [3/8]

static const std::string alexaClientSDK::integration::test::TAG ( "AlexaDirectiveSequencerLibraryTest"  )
static

String to identify log entries originating from this file.

◆ TAG() [4/8]

static const std::string alexaClientSDK::integration::test::TAG ( "AudioPlayerIntegrationTest"  )
static

String to identify log entries originating from this file.

◆ TAG() [5/8]

static const std::string alexaClientSDK::integration::test::TAG ( "NetworkIntegrationTests"  )
static

◆ TAG() [6/8]

static const std::string alexaClientSDK::integration::test::TAG ( "ServerDisconnectIntegrationTest"  )
static

String to identify log entries originating from this file.

◆ TAG() [7/8]

static const std::string alexaClientSDK::integration::test::TAG ( "SpeechSynthesizerIntegrationTest"  )
static

String to identify log entries originating from this file.

◆ TAG() [8/8]

static const std::string alexaClientSDK::integration::test::TAG ( "TestMediaPlayer"  )
static

String to identify log entries originating from this file.

◆ TEST_F() [1/65]

alexaClientSDK::integration::test::TEST_F ( AlertsTest  ,
DISABLED_test_cancelAlertBeforeItIsActive   
)

Test when an alert is canceled before it is due

Set a 10 second timer, then send audio of "Cancel the timer" as a recognize event. Ensure the timer does not go off and the DeleteAlertSucceeded event is sent.

◆ TEST_F() [2/65]

alexaClientSDK::integration::test::TEST_F ( AlertsTest  ,
DISABLED_test_handleMultipleTimersWithLocalStop   
)

Test when one timer is stopped verbally

Set two second timer, ensure they go off, then stop both timers.

◆ TEST_F() [3/65]

alexaClientSDK::integration::test::TEST_F ( AlertsTest  ,
DISABLED_test_handleOneTimerWithLocalStop   
)

Test when one timer is stopped locally

Set a 5 second timer, ensure it goes off, then use local stop and make sure the timer is stopped.

◆ TEST_F() [4/65]

alexaClientSDK::integration::test::TEST_F ( AlertsTest  ,
DISABLED_test_handleOneTimerWithVocalStop   
)

◆ TEST_F() [5/65]

alexaClientSDK::integration::test::TEST_F ( AlertsTest  ,
DISABLED_test_stealChannelFromActiveAlert   
)

Test when the Alerts channel is acqired by a different client when an alert is active

Set a 5 second timer, ensure it goes off, then have a test client acquire the Alerts channel. Ensure that the alert is stopped.

◆ TEST_F() [6/65]

alexaClientSDK::integration::test::TEST_F ( AlertsTest  ,
DISABLED_test_userSpeakingWhenAlertShouldBeActive   
)

Test when the user is speaking to Alexa and an alert becomes active

Set a 5 second timer then start a recognize event using a hold to talk initiator but do not call stopCapture until the alert has become active in the background. Once the alert is active, call stopCapture and see that is is in the foreground before locally stopping it.

◆ TEST_F() [7/65]

alexaClientSDK::integration::test::TEST_F ( AlertsTest  ,
DISABLED_testTimer_UserLongUnrelatedBargeInOnActive   
)

Test when an alert is active and the user barges in and gets multiple speaks in response

Set a 5 second timer and wait until it is active. Send a recognize event asking "what's up" and see that the alert goes into the background. When all the speaks are complete, the alert is forgrounded and can be locally stopped.

◆ TEST_F() [8/65]

alexaClientSDK::integration::test::TEST_F ( AlertsTest  ,
DISABLED_testTimer_userShortUnrelatedBargeInOnActive   
)

Test when an alert is active and the user barges in and gets one speak in response

Set a 5 second timer and wait until it is active. Send a recognize event asking for joke and see that the alert goes into the background. When the speak is complete, the alert is foregrounded and can be locally stopped.

Note: Disabling test as sometimes "tell me a joke" causes multiple speech started and speech finished events to be sent based on user config making this integration test unstable.

◆ TEST_F() [9/65]

alexaClientSDK::integration::test::TEST_F ( AlertsTest  ,
test_disconnectAndReconnect   
)

Test when a disconnect and reconnect happens before an alert is active

Set a 5 second timer, then call disconnect then reconnect. Once the alert is active, locally stop the alert and ensure AlertStopped is sent.

◆ TEST_F() [10/65]

alexaClientSDK::integration::test::TEST_F ( AlertsTest  ,
test_disconnectAndReconnectBeforeLocalStop   
)

Test when a disconnect and reconnect happens while an alert is active

Set a 5 second timer, then call disconnect, wait for the alert to become active and reconnect. Locally stop the alert and ensure AlertStopped is sent.

◆ TEST_F() [11/65]

alexaClientSDK::integration::test::TEST_F ( AlertsTest  ,
test_removeAllAlertsBeforeAlertIsActive   
)

Test when all alerts are cleared from storage before an alert is active

Set a 5 second timer, then call removeAllAlerts. Wait and ensure that the alert does not become active and no events are sent for it.

◆ TEST_F() [12/65]

alexaClientSDK::integration::test::TEST_F ( AlertsTest  ,
test_removeStorageBeforeAlarmIsSet   
)

Test when the storage is removed before an alert is set

Close the storage before asking for a 5 second timer. SetAlertFailed and then DeleteAlertSucceeded events are then sent. Deletion succeeds because missing alert is not treated as an error.

◆ TEST_F() [13/65]

alexaClientSDK::integration::test::TEST_F ( AlexaAuthorizationDelegateTest  ,
test_invalidClientIdWithUnrecoverableError   
)

Test when sending invalid refresh token, CBLAuthDelegate notifies the observer of the error.

If an invalid client_id is sent to LWA, a "InvalidValue" response will be sent back and we should notify the observer of the unrecoverable error.

◆ TEST_F() [14/65]

alexaClientSDK::integration::test::TEST_F ( AlexaAuthorizationDelegateTest  ,
test_refreshAuthToken   
)

Test AuthDelegate could get token refreshed with valid configurations

If valid clientID, refreshToken, clientSecret are provided in the AuthDelegate.config file, then AuthDelegate should be able to retrieve the valid refresh token (get authorized).

◆ TEST_F() [15/65]

alexaClientSDK::integration::test::TEST_F ( AlexaCommunicationsLibraryTest  ,
test_multipleConnectionStatusObservers   
)

Test add- and removeConnectionStatuObserver, expecting the observer to be updated only when it is added.

◆ TEST_F() [16/65]

alexaClientSDK::integration::test::TEST_F ( AlexaCommunicationsLibraryTest  ,
test_persistentConnection   
)

Test that a connection to AVS persists between sending Events.

◆ TEST_F() [17/65]

alexaClientSDK::integration::test::TEST_F ( AlexaCommunicationsLibraryTest  ,
test_receiveDirectiveOnDownchannel   
)

Test receiving an AVS Directive on the DownChannel.

DownChannel Directives are unsolicited - they may be pushed to the client by AVS at any time. This test exercises this functionality by sending a RecognizeAudio Event with silence for the attached audio. By using the NEAR_FIELD audio profile, we expect AVS to detect the end of speech and send a StopCapture Directive.

See also
https://developer.amazon.com/public/solutions/alexa/alexa-voice-service/reference/speechrecognizer#profiles

◆ TEST_F() [18/65]

alexaClientSDK::integration::test::TEST_F ( AlexaCommunicationsLibraryTest  ,
test_sendEvent   
)

Test sending an Event to AVS.

This test sends a SynchronizeState Event, which does not require an attachment, or receive a Directive in response.

See also
https://developer.amazon.com/public/solutions/alexa/alexa-voice-service/reference/system#synchronizestate

◆ TEST_F() [19/65]

alexaClientSDK::integration::test::TEST_F ( AlexaCommunicationsLibraryTest  ,
test_sendEventAndReceiveDirective   
)

Test sending an Event and receiving a Directive in response.

This test sends a Recognize event, which includes an audio attachment. In this case, the audio file sent to AVS asks Alexa to "tell me a joke". The Speak Directive we expect in response will be the joke.

See also
https://developer.amazon.com/public/solutions/alexa/alexa-voice-service/reference/audioplayer#states

◆ TEST_F() [20/65]

alexaClientSDK::integration::test::TEST_F ( AlexaCommunicationsLibraryTest  ,
test_sendEventsConcurrently   
)

Test sending multiple Events concurrently and verify that AVS responds to each of them.

◆ TEST_F() [21/65]

alexaClientSDK::integration::test::TEST_F ( AlexaCommunicationsLibraryTest  ,
test_sendEventsSerially   
)

Test sending multiple Events in succession and verify that AVS responds to each of them.

◆ TEST_F() [22/65]

alexaClientSDK::integration::test::TEST_F ( AlexaCommunicationsLibraryTest  ,
test_sendEventWithAttachment   
)

Test ability to send an event with attachments to Alexa Voice Service.

This test sends a RecognizeAudio event, which requires an attachment of the audio stream. In this case, we send a pre-recorded audio file which asks Alexa to "tell me a joke".

See also
https://developer.amazon.com/public/solutions/alexa/alexa-voice-service/reference/speechrecognizer#recognize

◆ TEST_F() [23/65]

alexaClientSDK::integration::test::TEST_F ( AlexaCommunicationsLibraryTest  ,
test_sendInvalidEvent   
)

Function that tests the behavior of the ACL when an improperly formatted message is sent, expecting the server to return a bad request status.

◆ TEST_F() [24/65]

alexaClientSDK::integration::test::TEST_F ( AlexaDirectiveSequencerLibraryTest  ,
DISABLED_test_dropQueueAfterBargeIn   
)

Test DirectiveSequencer's ability to drop queued AVSDirectives after Barge-In.

This test registers handlers, including a blocking handler for AVSDirectives known to come from a canned Recognize event. It then consumes the handling events up to the point of handling the blocking AVSDirective. Then the dialogRequestId is changed (canceling the blocking AVSDirective and any subsequent AVSDirectives in that group. Finally, a new Recognize event with the new dialogRequestId is sent. The events are then consumed verifying cancellation of AVSDirectives from the first group and handling of AVSDirectives in the second group.

◆ TEST_F() [25/65]

alexaClientSDK::integration::test::TEST_F ( AlexaDirectiveSequencerLibraryTest  ,
DISABLED_test_noDirectiveHandlerRegisteredForADirectiveInTheMiddle   
)

Test DirectiveSequencer's ability to drop a directive in the middle when no handler is registered for it.

To do this, no handler is set for a directive (SetMute) that is known to come down consistently in response to a Recognize event, instead an exception encountered is expected.

◆ TEST_F() [26/65]

alexaClientSDK::integration::test::TEST_F ( AlexaDirectiveSequencerLibraryTest  ,
DISABLED_test_sendDirectiveWithoutADialogRequestID   
)

Test DirectiveSequencer's ability to handle a Directive without a DialogRequestID.

This test sends a Recognize event to AVS to trigger delivery of a Speak and a SetAlert directive. SetAlert directives do not have a dialogRequestId value. This test uses that fact to verify that AVSDirectives with no dialogRequestId are processed properly.

◆ TEST_F() [27/65]

alexaClientSDK::integration::test::TEST_F ( AlexaDirectiveSequencerLibraryTest  ,
test_cancelDirectivesWhileInQueue   
)

Test DirectiveSequencer's ability to drop the head of a dialogRequestId group.

This test registers handlers (including a blocking handler) for the AVSDirectives expected in response to a canned Recognize request. When handleDirective() is called for the blocking AVSDirective, setFailed() is called to trigger the cancellation of subsequent AVSDirectives in the same group.

◆ TEST_F() [28/65]

alexaClientSDK::integration::test::TEST_F ( AlexaDirectiveSequencerLibraryTest  ,
test_getAttachmentWithContentId   
)

Test ability to get an attachment from AttachmentManager.

◆ TEST_F() [29/65]

alexaClientSDK::integration::test::TEST_F ( AlexaDirectiveSequencerLibraryTest  ,
test_multiturnScenario   
)

Test DirectiveSequencer's ability to handle a multi-turn scenario

This test is intended to test the Directive Sequencer's ability to go through a full loop of sending a recognize event that will prompt a multi-turn directive, receiving a directive group that contains ExpectSpeech, sending a recognize event to respond to Alexa's question, and receiving the final directive group.

◆ TEST_F() [30/65]

alexaClientSDK::integration::test::TEST_F ( AlexaDirectiveSequencerLibraryTest  ,
test_noDirectiveHandlerRegisteredForADirectiveAtTheFront   
)

Test DirectiveSequencer's ability to drop a directive when no handler is registered for it.

To do this, no handler is set for a directive (SetMute) that is known to come down consistently in response to a Recognize event, instead an exception encountered is expected.

◆ TEST_F() [31/65]

alexaClientSDK::integration::test::TEST_F ( AlexaDirectiveSequencerLibraryTest  ,
test_oneBlockingDirectiveAtTheFront   
)

Test DirectiveSequencer's ability to sequence a group that has a Blocking Directive before other directives.

This test is intended to verify the Directive Sequencer's ability to handle a dialogRequestID group that has a blocking directive, followed by non-blocking directives. Expect that the directive handler will receive a SetMute directive and then nothing until setComplete() is called for that directive. Then expect the directive handler to receive at least one subsequent directive.

◆ TEST_F() [32/65]

alexaClientSDK::integration::test::TEST_F ( AlexaDirectiveSequencerLibraryTest  ,
test_oneBlockingDirectiveInTheMiddle   
)

Test DirectiveSequencer's ability to sequence a group that has one BLOCKING AVSDirective in the middle.

This test is intended to test the DirectiveSequencer's ability to handle a dialogRequestID group that has at least one non-blocking directive, followed by a blocking directive, followed by non-blocking directives. preHandleDirective() and handleDirective() should be called for directives before the Speak directive, whose handling blocks further handling of directives. Once setComplete() is called for the BLOCKING AVSDirective, handleDirective() should be called for the subsequent (and NON_BLOCKING) AVSDirectives without waiting for the completion of any subsequent AVSDirectives.

◆ TEST_F() [33/65]

alexaClientSDK::integration::test::TEST_F ( AlexaDirectiveSequencerLibraryTest  ,
test_sendDirectiveGroupWithoutBlocking   
)

Test DirectiveSequencer's ability to pass a group of no-blocking AVSDirectives to a DirectiveHandler.

This test registers NON_BLOCKING handling for a suite of directives expected in response to recognize request. It then verifies that handleDirective() is called for the subsequent directives without waiting for completion of handling of any of the directives.

◆ TEST_F() [34/65]

alexaClientSDK::integration::test::TEST_F ( AlexaDirectiveSequencerLibraryTest  ,
test_sendDirectivesForPreHandling   
)

Test DirectiveSequencer's ability to make both preHandleDirective() and handleDirective() call for AVSDirectives with a non-empty dialogRequestId.

This test registers handlers for the directives expected in response to a Recognize event. It then counts the number of preHandleDirective() and handleDirective() callbacks verifying that the counts come out to the same value in the end.

◆ TEST_F() [35/65]

alexaClientSDK::integration::test::TEST_F ( AlexaDirectiveSequencerLibraryTest  ,
test_sendDirectiveWithDifferentDialogRequestID   
)

Test DirectiveSequencer's ability to drop directives that do not match the current dialogRequestId.

The test first sets the dialogRequestId, sends an event with that dialopRequestId, flushes the resulting directives, then (without updating the current dialogRequestId) sends an event with a new dialogRequestId. It then verifies that the directive handler was not called for the AVSDirectives expected to result from the second event.

◆ TEST_F() [36/65]

alexaClientSDK::integration::test::TEST_F ( AlexaDirectiveSequencerLibraryTest  ,
test_sendEventWithDirective   
)

Test DirectiveSequencer's ability to pass an AVSDirective to a DirectiveHandler.

This test is intended to test DirectiveSequencer's ability to pass an AVSDirective to a DirectiveHandler that has been registered to handle an AVSDirective.

◆ TEST_F() [37/65]

alexaClientSDK::integration::test::TEST_F ( AlexaDirectiveSequencerLibraryTest  ,
test_twoDirectiveHandlersRegisteredForADirective   
)

Test DirectiveSequencer's ability to refuse to overwrite registration of a directive handler.

To do this, an attempt is made to set two different handlers for the same directive. The DirectiveSequencer is expected to refuse the second handler. This directive is known to come down consistently in response to a Recognize event. The Handler that was first set is the only one that should receive the directive.

◆ TEST_F() [38/65]

alexaClientSDK::integration::test::TEST_F ( AudioInputProcessorTest  ,
DISABLED_test_holdToTalkMultiturn   
)

Test AudioInputProcessor's ability to handle a multiturn interation triggered by a hold to talk button.

To do this, audio of "Wikipedia" is fed into a stream after button sends recognize to AudioInputProcessor. The AudioInputProcessor is then observed to send a Recognize event to AVS which responds with a SetMute, Speak, and ExpectSpeech directive. Audio of "Lions" is then fed into the stream and another recognize event is sent.

◆ TEST_F() [39/65]

alexaClientSDK::integration::test::TEST_F ( AudioInputProcessorTest  ,
DISABLED_test_holdToTalkMultiTurnWithSilence   
)

Test AudioInputProcessor's ability to handle a multiturn interation triggered by a hold to talk button but no user response.

To do this, audio of "Wikipedia" is fed into a stream after button sends recognize to AudioInputProcessor. The AudioInputProcessor is then observed to send a Recognize event to AVS which responds with a SetMute, Speak, and ExpectSpeech directive. Audio of "...." is then fed into the stream and another recognize event is sent but no directives are given in response.

◆ TEST_F() [40/65]

alexaClientSDK::integration::test::TEST_F ( AudioInputProcessorTest  ,
DISABLED_test_holdToTalkMultiturnWithTimeOut   
)

Test AudioInputProcessor's ability to handle a multiturn interation triggered by a hold to talk button that times out.

To do this, audio of "Wikipedia" is fed into a stream after button sends recognize to AudioInputProcessor. The AudioInputProcessor is then observed to send a Recognize event to AVS which responds with a SetMute, Speak, and ExpectSpeech directive. The button does not trigger another recognize so no recognize event is sent and no directives are given in response. ExpectSpeechTimedOut event is observed to be sent.

◆ TEST_F() [41/65]

alexaClientSDK::integration::test::TEST_F ( AudioInputProcessorTest  ,
DISABLED_test_tapToTalkJoke   
)

Test AudioInputProcessor's ability to handle a simple interation triggered by a wakeword.

To do this, audio of "Alexa, tell me a joke" is fed into a stream that is being read by a wake word engine. The AudioInputProcessor is then observed to send a Recognize event to AVS which responds with a SetMute and Speak directive. Test AudioInputProcessor's ability to handle a recognize triggered by a wakeword followed by silence .

To do this, audio of "Alexa, ........." is fed into a stream that is being read by a wake word engine. The AudioInputProcessor is then observed to send a Recognize event to AVS which responds with no directives. Test AudioInputProcessor's ability to handle a multiturn interation triggered by a wakeword.

To do this, audio of "Alexa, wikipedia" is fed into a stream that is being read by a wake word engine. The AudioInputProcessor is then observed to send a Recognize event to AVS which responds with a SetMute, Speak, and ExpectSpeech directive. Audio of "Lions" is then fed into the stream and another recognize event is sent. Test AudioInputProcessor's ability to handle a simple interation triggered by a wakeword but no user response.

To do this, audio of "Alexa, wikipedia" is fed into a stream that is being read by a wake word engine. The AudioInputProcessor is then observed to send a Recognize event to AVS which responds with a SetMute, Speak, and ExpectSpeech directive. Audio of "...." is then fed into the stream and another recognize event is sent but no directives are given in response. Test AudioInputProcessor's ability to handle a simple interation triggered by a tap to talk button.

To do this, audio of "Tell me a joke" is fed into a stream after button sends recognize to AudioInputProcessor. The AudioInputProcessor is then observed to send a Recognize event to AVS which responds with a SetMute and Speak directive.

◆ TEST_F() [42/65]

alexaClientSDK::integration::test::TEST_F ( AudioInputProcessorTest  ,
DISABLED_test_tapToTalkMultiturnWithoutUserResponse   
)

Test AudioInputProcessor's ability to handle a multiturn interation triggered by a tap to talk button but no user response.

To do this, audio of "Wikipedia" is fed into a stream after button sends recognize to AudioInputProcessor. The AudioInputProcessor is then observed to send a Recognize event to AVS which responds with a SetMute, Speak, and ExpectSpeech directive. Audio of "...." is then fed into the stream and another recognize event is sent but no directives are given in response.

◆ TEST_F() [43/65]

alexaClientSDK::integration::test::TEST_F ( AudioInputProcessorTest  ,
DISABLED_test_tapToTalkSilence   
)

Test AudioInputProcessor's ability to handle a silent interation triggered by a tap to talk button.

To do this, audio of "....." is fed into a stream after button sends recognize to AudioInputProcessor. The AudioInputProcessor is then observed to send a Recognize event to AVS which responds no directives.

◆ TEST_F() [44/65]

alexaClientSDK::integration::test::TEST_F ( AudioInputProcessorTest  ,
DISABLED_test_tapToTalkTimeOpus   
)

◆ TEST_F() [45/65]

alexaClientSDK::integration::test::TEST_F ( AudioInputProcessorTest  ,
test_audioWithoutAnyTrigger   
)

Test AudioInputProcessor's ability to not handle audio when no recognize occurs.

To do this, audio of "Tell me a joke" is fed into a stream that is being read by a wake word engine. The lack of the wakeword or button-initiated recognize results in no recognize event being sent.

◆ TEST_F() [46/65]

alexaClientSDK::integration::test::TEST_F ( AudioInputProcessorTest  ,
test_holdToTalkCancel   
)

Test AudioInputProcessor's ability to handle a cancel partway through a hold to talk interaction.

To do this, audio of "Tell me a joke" is fed into a stream after button sends recognize to AudioInputProcessor. The button then sends a cancel command and no recognize event is sent.

◆ TEST_F() [47/65]

alexaClientSDK::integration::test::TEST_F ( AudioInputProcessorTest  ,
test_holdToTalkJoke   
)

Test AudioInputProcessor's ability to handle a simple interation triggered by a hold to talk button.

To do this, audio of "Tell me a joke" is fed into a stream after button sends recognize to AudioInputProcessor. The AudioInputProcessor is then observed to send a Recognize event to AVS which responds with a SetMute and Speak directive.

◆ TEST_F() [48/65]

alexaClientSDK::integration::test::TEST_F ( AudioInputProcessorTest  ,
test_holdToTalkNoAudio   
)

Test AudioInputProcessor's ability to handle no audio being written triggered by a hold to talk button.

To do this, no audio is fed into a stream after button sends recognize to AudioInputProcessor. The AudioInputProcessor is then observed to send a Recognize event to AVS which responds with no directive.

◆ TEST_F() [49/65]

alexaClientSDK::integration::test::TEST_F ( AudioInputProcessorTest  ,
test_tapToTalkCancel   
)

Test AudioInputProcessor's ability to handle a cancel partway through an interaction.

To do this, audio of "Tell me a joke" is fed into a stream after button sends recognize to AudioInputProcessor. The button then sends a reset command and no recognize event is sent.

◆ TEST_F() [50/65]

alexaClientSDK::integration::test::TEST_F ( AudioInputProcessorTest  ,
test_tapToTalkMultiturn   
)

Test AudioInputProcessor's ability to handle an interation triggered by a tap to talk button with wake word.

To do this, audio of "Alexa, Tell me a joke" is fed into a stream after button sends recognize to AudioInputProcessor. The AudioInputProcessor is then observed to send only one Recognize event to AVS which responds with a SetMute and Speak directive. Test AudioInputProcessor's ability to handle a multiturn interation triggered by a tap to talk button.

To do this, audio of "Wikipedia" is fed into a stream after button sends recognize to AudioInputProcessor. The AudioInputProcessor is then observed to send a Recognize event to AVS which responds with a SetMute, Speak, and ExpectSpeech directive. Audio of "Lions" is then fed into the stream and another recognize event is sent.

◆ TEST_F() [51/65]

alexaClientSDK::integration::test::TEST_F ( AudioInputProcessorTest  ,
test_tapToTalkNoAudio   
)

Test AudioInputProcessor's ability to handle no audio being written triggered by a tap to talk button.

To do this, no audio is fed into a stream after button sends recognize to AudioInputProcessor. The AudioInputProcessor is then observed to send a Recognize event to AVS which responds with no directive.

◆ TEST_F() [52/65]

alexaClientSDK::integration::test::TEST_F ( AudioPlayerTest  ,
DISABLED_test_flashBriefing   
)

Test ability for the AudioPlayer to handle multiple play directives.

This test is intended to test the AudioPlayer's ability to handle a group play directive all the way through. To do this, an audio file of "Flashbriefing" is sent as a Recognize event. In response, a Speak, then an undefined number of Play directives, and a final Speak directive is received. The tests then observe that the correct events are sent in order.

Note
ACSDK-2373 - Test is disabled due to an assumption that each flash briefing must be less than 2min in length, and this is making this integration test unstable.

◆ TEST_F() [53/65]

alexaClientSDK::integration::test::TEST_F ( AudioPlayerTest  ,
test_singASong   
)

Test ability for the AudioPlayer to handle one play directive.

This test is intended to test the AudioPlayer's ability to handle a short play directive all the way through. To do this, an audio file of "Sing me a song" is sent as a Recognize event. In response, a Play directive is received. The tests then observe that the correct events are sent in order.

◆ TEST_F() [54/65]

alexaClientSDK::integration::test::TEST_F ( NetworkIntegrationTests  ,
test_connectAfterSlowConnection   
)

Test if connection and disconnection can be established after delay is introduced.

◆ TEST_F() [55/65]

alexaClientSDK::integration::test::TEST_F ( NetworkIntegrationTests  ,
test_connectBeforeSlowConnection   
)

Establish Connection, and introduce delay and check if connectionStatus remains CONNECTED.

◆ TEST_F() [56/65]

alexaClientSDK::integration::test::TEST_F ( NetworkIntegrationTests  ,
test_reConnectAfterDelay   
)

Establish connection, introduce delay and test if connect can be done again.

◆ TEST_F() [57/65]

alexaClientSDK::integration::test::TEST_F ( NetworkIntegrationTests  ,
test_sendEventAfterDelayFails   
)

Establish connection, introduce a longer delay time of greater than 30 seconds, send a message, the Status of MessageRequest will be TIMEDOUT.

◆ TEST_F() [58/65]

alexaClientSDK::integration::test::TEST_F ( NetworkIntegrationTests  ,
test_sendEventAfterDelayPass   
)

Establish connection, introduce a delay, send a message, check if the Status of MessageRequest is SUCCESS.

◆ TEST_F() [59/65]

alexaClientSDK::integration::test::TEST_F ( ServerDisconnectIntegrationTest  ,
DISABLED_test_sendEvent   
)

Test sending a message while having a server side disconnect. The send fails to return the expected status of SUCCESS.

Note
Disabling this test until it can be updated to reflect server side changes.

◆ TEST_F() [60/65]

alexaClientSDK::integration::test::TEST_F ( SpeechSynthesizerTest  ,
DISABLED_test_bargeInOnMultipleSpeaksInTheMiddle   
)

Test ability for the SpeechSynthesizer to handle a barge in in the middle of consecutive speaks.

This test is intended to test the SpeechSynthesizer's ability to receive multiple directives, play each using a MediaPlayer then return to a finished state and notify the DirectiveSequencer that the directive was handled. This is done by sending a Recognize event to AVS with audio of "What's up?" which returns four sets of SetMute and Speak. While the Speak directives are being handled, the dialogRequestID is changed and all directives are cancelled.

◆ TEST_F() [61/65]

alexaClientSDK::integration::test::TEST_F ( SpeechSynthesizerTest  ,
DISABLED_test_handleMultipleConsecutiveSpeaks   
)

Test ability for the SpeechSynthesizer to handle multiple consecutive Speak directives.

This test is intended to test the SpeechSynthesizer's ability to receive multiple directives, play each using a MediaPlayer then return to a finished state and notify the DirectiveSequencer that the directive was handled. This is done by sending a Recognize event to AVS with audio of "What's up?" which returns four sets of SetMute and Speak.

◆ TEST_F() [62/65]

alexaClientSDK::integration::test::TEST_F ( SpeechSynthesizerTest  ,
test_bargeInOnMultipleSpeaksAtTheBeginning   
)

Test ability for the SpeechSynthesizer to handle a barge in at the begining of consecutive speaks.

This test is intended to test the SpeechSynthesizer's ability to receive multiple directives, play each using a MediaPlayer then return to a finished state and notify the DirectiveSequencer that the directive was handled. This is done by sending a Recognize event to AVS with audio of "What's up?" which returns four sets of SetMute and Speak. Once the first Speak reaches the SpeechSynthesizer, the dialogRequestID is changed and all directives are cancelled.

◆ TEST_F() [63/65]

alexaClientSDK::integration::test::TEST_F ( SpeechSynthesizerTest  ,
test_bargeInOnOneSpeech   
)

Test ability for the SpeechSynthesizer to handle one Speak directive.

This test is intended to test the SpeechSynthesizer's ability to receive one directive, play it using a MediaPlayer then return to a finished state. Once the Speak reaches the SpeechSynthesizer, the dialogRequestID is changed and all directives are cancelled.

◆ TEST_F() [64/65]

alexaClientSDK::integration::test::TEST_F ( SpeechSynthesizerTest  ,
test_handleNoDirectives   
)

Test ability for the test setup to handle no directives.

This test is intended to test the SpeechSynthesizer's ability to do nothing when there are no Speak directives. No Recognize events are sent to trigger any directives.

◆ TEST_F() [65/65]

alexaClientSDK::integration::test::TEST_F ( SpeechSynthesizerTest  ,
test_multiturnScenario   
)

Test ability for the SpeechSynthesizer to handle a Multiturn scenario.

This test is intended to test the SpeechSynthesizer's ability to receive one directive, play it using a MediaPlayer then return to a finished state. Another recognize event is then sent to AVS is response to the ExpectSpeech directive which prompts another Speak directive to be handled.

◆ TIME_OUT()

static const std::chrono::seconds alexaClientSDK::integration::test::TIME_OUT ( 60  )
static

Timeout in seconds for AuthDelegate to wait for LWA response.

◆ WAIT_FOR_MEDIA_PLAYER_TIMEOUT_DURATION()

static const std::chrono::seconds alexaClientSDK::integration::test::WAIT_FOR_MEDIA_PLAYER_TIMEOUT_DURATION ( 60  )
static

◆ WAIT_FOR_TIMEOUT_DURATION() [1/4]

static const std::chrono::seconds alexaClientSDK::integration::test::WAIT_FOR_TIMEOUT_DURATION ( 15  )
static

◆ WAIT_FOR_TIMEOUT_DURATION() [2/4]

static const std::chrono::seconds alexaClientSDK::integration::test::WAIT_FOR_TIMEOUT_DURATION ( 15  )
static

◆ WAIT_FOR_TIMEOUT_DURATION() [3/4]

static const std::chrono::seconds alexaClientSDK::integration::test::WAIT_FOR_TIMEOUT_DURATION ( 25  )
static

◆ WAIT_FOR_TIMEOUT_DURATION() [4/4]

static const std::chrono::seconds alexaClientSDK::integration::test::WAIT_FOR_TIMEOUT_DURATION ( )
static

◆ WANTING_TIMEOUT_DURATION()

static const std::chrono::seconds alexaClientSDK::integration::test::WANTING_TIMEOUT_DURATION ( )
static

Variable Documentation

◆ ADJUST_VOLUME_PAIR

const NamespaceAndName alexaClientSDK::integration::test::ADJUST_VOLUME_PAIR = {NAMESPACE_SPEAKER, NAME_ADJUST_VOLUME}
static

◆ ALARM_ACTIVITY_ID

const std::string alexaClientSDK::integration::test::ALARM_ACTIVITY_ID = "Alarms"
static

Sample alerts activity id.

◆ ALERTS_ACTIVITY_ID [1/2]

const std::string alexaClientSDK::integration::test::ALERTS_ACTIVITY_ID = "Alerts"
static

Sample alerts activity id.

◆ ALERTS_ACTIVITY_ID [2/2]

const std::string alexaClientSDK::integration::test::ALERTS_ACTIVITY_ID = "Alerts"
static

Sample alerts activity id.

◆ ALEXA_JOKE_AUDIO_FILE

const std::string alexaClientSDK::integration::test::ALEXA_JOKE_AUDIO_FILE = "/alexa_recognize_joke_test.wav"
static

◆ ALEXA_SILENCE_AUDIO_FILE

const std::string alexaClientSDK::integration::test::ALEXA_SILENCE_AUDIO_FILE = "/alexa_recognize_silence_test.wav"
static

◆ ALEXA_WIKI_AUDIO_FILE

const std::string alexaClientSDK::integration::test::ALEXA_WIKI_AUDIO_FILE = "/alexa_recognize_wiki_test.wav"
static

◆ BAD_SYNCHRONIZE_STATE_JSON

const std::string alexaClientSDK::integration::test::BAD_SYNCHRONIZE_STATE_JSON = "{"
static

This is a partial JSON string that should not be parseable.

◆ COMPATIBLE_ENCODING [1/3]

const avsCommon::utils::AudioFormat::Encoding alexaClientSDK::integration::test::COMPATIBLE_ENCODING
static
Initial value:
=
avsCommon::utils::AudioFormat::Encoding::LPCM

The compatible encoding for AIP.

◆ COMPATIBLE_ENCODING [2/3]

const avsCommon::utils::AudioFormat::Encoding alexaClientSDK::integration::test::COMPATIBLE_ENCODING
static
Initial value:
=
avsCommon::utils::AudioFormat::Encoding::LPCM

The compatible encoding for AIP.

◆ COMPATIBLE_ENCODING [3/3]

const avsCommon::utils::AudioFormat::Encoding alexaClientSDK::integration::test::COMPATIBLE_ENCODING
static
Initial value:
=
avsCommon::utils::AudioFormat::Encoding::LPCM

The compatible encoding.

The sensitivity to the keyword in the model.

◆ COMPATIBLE_ENDIANNESS [1/3]

const avsCommon::utils::AudioFormat::Endianness alexaClientSDK::integration::test::COMPATIBLE_ENDIANNESS
static
Initial value:
=
avsCommon::utils::AudioFormat::Endianness::LITTLE

The compatible endianness for AIP.

◆ COMPATIBLE_ENDIANNESS [2/3]

const avsCommon::utils::AudioFormat::Endianness alexaClientSDK::integration::test::COMPATIBLE_ENDIANNESS
static
Initial value:
=
avsCommon::utils::AudioFormat::Endianness::LITTLE

The compatible endianness for AIP.

◆ COMPATIBLE_ENDIANNESS [3/3]

const avsCommon::utils::AudioFormat::Endianness alexaClientSDK::integration::test::COMPATIBLE_ENDIANNESS
static
Initial value:
=
avsCommon::utils::AudioFormat::Endianness::LITTLE

The compatible endianness.

◆ COMPATIBLE_NUM_CHANNELS [1/3]

const unsigned int alexaClientSDK::integration::test::COMPATIBLE_NUM_CHANNELS = 1
static

The compatible number of channels.

◆ COMPATIBLE_NUM_CHANNELS [2/3]

const unsigned int alexaClientSDK::integration::test::COMPATIBLE_NUM_CHANNELS = 1
static

The compatible number of channels.

◆ COMPATIBLE_NUM_CHANNELS [3/3]

const unsigned int alexaClientSDK::integration::test::COMPATIBLE_NUM_CHANNELS = 1
static

The compatible number of channels.

◆ COMPATIBLE_SAMPLE_RATE [1/3]

const unsigned int alexaClientSDK::integration::test::COMPATIBLE_SAMPLE_RATE = 16000
static

The compatible sample rate for AIP.

◆ COMPATIBLE_SAMPLE_RATE [2/3]

const unsigned int alexaClientSDK::integration::test::COMPATIBLE_SAMPLE_RATE = 16000
static

The compatible sample rate for AIP.

◆ COMPATIBLE_SAMPLE_RATE [3/3]

const unsigned int alexaClientSDK::integration::test::COMPATIBLE_SAMPLE_RATE = 16000
static

The compatible sample rate.

◆ COMPATIBLE_SAMPLE_RATE_OPUS_32

const unsigned int alexaClientSDK::integration::test::COMPATIBLE_SAMPLE_RATE_OPUS_32 = 32000
static

The compatible sample rate for OPUS 32KHz.

◆ COMPATIBLE_SAMPLE_SIZE_IN_BITS [1/3]

const unsigned int alexaClientSDK::integration::test::COMPATIBLE_SAMPLE_SIZE_IN_BITS = 16
static

The compatible bits per sample.

◆ COMPATIBLE_SAMPLE_SIZE_IN_BITS [2/3]

const unsigned int alexaClientSDK::integration::test::COMPATIBLE_SAMPLE_SIZE_IN_BITS = 16
static

The compatible bits per sample.

◆ COMPATIBLE_SAMPLE_SIZE_IN_BITS [3/3]

const unsigned int alexaClientSDK::integration::test::COMPATIBLE_SAMPLE_SIZE_IN_BITS = 16
static

The compatible bits per sample.

◆ CONTENT_ACTIVITY_ID [1/3]

const std::string alexaClientSDK::integration::test::CONTENT_ACTIVITY_ID = "content"
static

Sample content activity id.

◆ CONTENT_ACTIVITY_ID [2/3]

const std::string alexaClientSDK::integration::test::CONTENT_ACTIVITY_ID = "Content"
static

◆ CONTENT_ACTIVITY_ID [3/3]

const std::string alexaClientSDK::integration::test::CONTENT_ACTIVITY_ID = "Content"
static

Sample content activity id.

◆ CONTENT_CHANNEL_NAME

const std::string alexaClientSDK::integration::test::CONTENT_CHANNEL_NAME = "Content"
static

The content Channel name used in intializing the FocusManager.

◆ CONTENT_CHANNEL_PRIORITY

const unsigned int alexaClientSDK::integration::test::CONTENT_CHANNEL_PRIORITY = 300
static

The priority of the content Channel used in intializing the FocusManager.

◆ CT_FIRST_RECOGNIZE_EVENT_JSON [1/2]

const std::string alexaClientSDK::integration::test::CT_FIRST_RECOGNIZE_EVENT_JSON = RECOGNIZE_EVENT_JSON(CLOSE_TALK, FIRST_DIALOG_REQUEST_ID)
static

This string specifies a Recognize event using the CLOSE_TALK profile and uses the first DialogRequestID.

◆ CT_FIRST_RECOGNIZE_EVENT_JSON [2/2]

const std::string alexaClientSDK::integration::test::CT_FIRST_RECOGNIZE_EVENT_JSON = RECOGNIZE_EVENT_JSON(CLOSE_TALK, FIRST_DIALOG_REQUEST_ID)
static

◆ CT_FIRST_RECOGNIZE_EVENT_JSON_NEAR

const std::string alexaClientSDK::integration::test::CT_FIRST_RECOGNIZE_EVENT_JSON_NEAR = RECOGNIZE_EVENT_JSON(NEAR_FIELD, FIRST_DIALOG_REQUEST_ID)
static

◆ CT_RECOGNIZE_EVENT_JSON

const std::string alexaClientSDK::integration::test::CT_RECOGNIZE_EVENT_JSON = RECOGNIZE_EVENT_JSON(CLOSE_TALK)
static

This string specifies a Recognize event using the CLOSE_TALK profile.

◆ CT_SECOND_RECOGNIZE_EVENT_JSON [1/2]

const std::string alexaClientSDK::integration::test::CT_SECOND_RECOGNIZE_EVENT_JSON = RECOGNIZE_EVENT_JSON(CLOSE_TALK, SECOND_DIALOG_REQUEST_ID)
static

This string specifies a Recognize event using the CLOSE_TALK profile and uses the second DialogRequestID.

◆ CT_SECOND_RECOGNIZE_EVENT_JSON [2/2]

const std::string alexaClientSDK::integration::test::CT_SECOND_RECOGNIZE_EVENT_JSON = RECOGNIZE_EVENT_JSON(CLOSE_TALK, SECOND_DIALOG_REQUEST_ID)
static

◆ DEFAULT_AVS_GATEWAY

const std::string alexaClientSDK::integration::test::DEFAULT_AVS_GATEWAY = "https://alexa.na.gateway.devices.a2z.com"
static

Default AVS gateway to connect to.

◆ DEFAULT_MEDIA_PLAYER_STATE

const avsCommon::utils::mediaPlayer::MediaPlayerState alexaClientSDK::integration::test::DEFAULT_MEDIA_PLAYER_STATE
static
Initial value:
= {
std::chrono::milliseconds(0)}

Default media player state for reporting all playback eventing.

◆ DELAY_TIME

const std::string alexaClientSDK::integration::test::DELAY_TIME = "1000ms"
static

Amount of Delay in milliseconds to be added.

◆ DIALOG_ACTIVITY_ID [1/4]

const std::string alexaClientSDK::integration::test::DIALOG_ACTIVITY_ID = "dialog"
static

Sample dialog activity id.

◆ DIALOG_ACTIVITY_ID [2/4]

const std::string alexaClientSDK::integration::test::DIALOG_ACTIVITY_ID = "Dialog"
static

◆ DIALOG_ACTIVITY_ID [3/4]

const std::string alexaClientSDK::integration::test::DIALOG_ACTIVITY_ID = "Dialog"
static

Sample dialog activity id.

◆ DIALOG_ACTIVITY_ID [4/4]

const std::string alexaClientSDK::integration::test::DIALOG_ACTIVITY_ID = "Dialog"
static

◆ DIALOG_CHANNEL_NAME

const std::string alexaClientSDK::integration::test::DIALOG_CHANNEL_NAME = "Dialog"
static

The dialog Channel name used in intializing the FocusManager.

◆ DIALOG_CHANNEL_PRIORITY

const unsigned int alexaClientSDK::integration::test::DIALOG_CHANNEL_PRIORITY = 100
static

The priority of the dialog Channel used in intializing the FocusManager.

◆ EXPECT_SPEECH_PAIR [1/3]

const NamespaceAndName alexaClientSDK::integration::test::EXPECT_SPEECH_PAIR(NAMESPACE_SPEECH_RECOGNIZER, NAME_EXPECT_SPEECH)
static

◆ EXPECT_SPEECH_PAIR [2/3]

const NamespaceAndName alexaClientSDK::integration::test::EXPECT_SPEECH_PAIR = {NAMESPACE_SPEECH_RECOGNIZER, NAME_EXPECT_SPEECH}
static

◆ EXPECT_SPEECH_PAIR [3/3]

const NamespaceAndName alexaClientSDK::integration::test::EXPECT_SPEECH_PAIR = {NAMESPACE_SPEECH_RECOGNIZER, NAME_EXPECT_SPEECH}
static

◆ EXPECT_SPEECH_TIMED_OUT_EVENT_JSON

const std::string alexaClientSDK::integration::test::EXPECT_SPEECH_TIMED_OUT_EVENT_JSON
static
Initial value:
=
"{"
"\"event\": {"
"\"header\": {"
"\"namespace\": \"SpeechRecognizer\","
"\"name\": \"ExpectSpeechTimedOut\","
"\"messageId\": \"messageId123\","
"},"
"\"payload\": {"
"}"
"}"
"}"

This string specifies an ExpectSpeechTimedOut event.

◆ g_configPath [1/7]

std::string alexaClientSDK::integration::test::g_configPath
static

Path to the AlexaClientSDKConfig.json file (from command line arguments).

◆ g_configPath [2/7]

std::string alexaClientSDK::integration::test::g_configPath
static

Path to the AlexaClientSDKConfig.json file (from command line arguments).

◆ g_configPath [3/7]

std::string alexaClientSDK::integration::test::g_configPath
static

Path to the AlexaClientSDKConfig.json file (from command line arguments).

◆ g_configPath [4/7]

std::string alexaClientSDK::integration::test::g_configPath
static

Path to the AlexaClientSDKConfig.json file (from command line arguments).

Path to the AlexaClientSDKConfig.json file.

◆ g_configPath [5/7]

std::string alexaClientSDK::integration::test::g_configPath
static

Path to the AlexaClientSDKConfig.json file (from command line arguments).

◆ g_configPath [6/7]

std::string alexaClientSDK::integration::test::g_configPath
static

Path to the AlexaClientSDKConfig.json file (from command line arguments).

◆ g_configPath [7/7]

std::string alexaClientSDK::integration::test::g_configPath
static

Path to the AlexaClientSDKConfig.json file (from command line arguments).

◆ g_inputPath [1/6]

std::string alexaClientSDK::integration::test::g_inputPath
static

Path to resources (e.g. audio files) for tests (from command line arguments).

◆ g_inputPath [2/6]

std::string alexaClientSDK::integration::test::g_inputPath
static

Path to resources (e.g. audio files) for tests (from command line arguments).

◆ g_inputPath [3/6]

std::string alexaClientSDK::integration::test::g_inputPath
static

Path to resources (e.g. audio files) for tests (from command line arguments).

◆ g_inputPath [4/6]

std::string alexaClientSDK::integration::test::g_inputPath
static

Path to resources (e.g. audio files) for tests (from command line arguments).

◆ g_inputPath [5/6]

std::string alexaClientSDK::integration::test::g_inputPath
static

Path to resources (e.g. audio files) for tests (from command line arguments).

◆ g_inputPath [6/6]

std::string alexaClientSDK::integration::test::g_inputPath
static

Path to resources (e.g. audio files) for tests (from command line arguments).

◆ g_sourceId

std::atomic<avsCommon::utils::mediaPlayer::MediaPlayerInterface::SourceId> alexaClientSDK::integration::test::g_sourceId {0}
static

A counter used to increment the source id when a new source is set.

◆ JOKE_AUDIO_FILE

const std::string alexaClientSDK::integration::test::JOKE_AUDIO_FILE = "/recognize_joke_test.wav"
static

◆ JSON_MESSAGE_DIALOG_REQUEST_ID_KEY [1/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_DIALOG_REQUEST_ID_KEY = "dialogRequestId"
static

JSON key to get the dialogRequestId value of a header.

◆ JSON_MESSAGE_DIALOG_REQUEST_ID_KEY [2/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_DIALOG_REQUEST_ID_KEY = "dialogRequestId"
static

JSON key to get the dialogRequestId value of a header.

◆ JSON_MESSAGE_DIALOG_REQUEST_ID_KEY [3/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_DIALOG_REQUEST_ID_KEY = "dialogRequestId"
static

JSON key to get the dialogRequestId value of a header.

◆ JSON_MESSAGE_DIALOG_REQUEST_ID_KEY [4/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_DIALOG_REQUEST_ID_KEY = "dialogRequestId"
static

JSON key to get the dialogRequestId value of a header.

◆ JSON_MESSAGE_DIALOG_REQUEST_ID_KEY [5/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_DIALOG_REQUEST_ID_KEY = "dialogRequestId"
static

JSON key to get the dialogRequestId value of a header.

◆ JSON_MESSAGE_DIALOG_REQUEST_ID_KEY [6/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_DIALOG_REQUEST_ID_KEY = "dialogRequestId"
static

JSON key to get the dialogRequestId value of a header.

◆ JSON_MESSAGE_DIRECTIVE_KEY [1/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_DIRECTIVE_KEY = "directive"
static

JSON key to get the directive object of a message.

◆ JSON_MESSAGE_DIRECTIVE_KEY [2/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_DIRECTIVE_KEY = "directive"
static

JSON key to get the directive object of a message.

◆ JSON_MESSAGE_DIRECTIVE_KEY [3/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_DIRECTIVE_KEY = "directive"
static

JSON key to get the directive object of a message.

◆ JSON_MESSAGE_DIRECTIVE_KEY [4/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_DIRECTIVE_KEY = "directive"
static

JSON key to get the directive object of a message.

◆ JSON_MESSAGE_DIRECTIVE_KEY [5/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_DIRECTIVE_KEY = "directive"
static

JSON key to get the directive object of a message.

◆ JSON_MESSAGE_DIRECTIVE_KEY [6/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_DIRECTIVE_KEY = "directive"
static

JSON key to get the directive object of a message.

◆ JSON_MESSAGE_EVENT_KEY [1/4]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_EVENT_KEY = "event"
static

JSON key to get the event object of a message.

◆ JSON_MESSAGE_EVENT_KEY [2/4]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_EVENT_KEY = "event"
static

JSON key to get the event object of a message.

◆ JSON_MESSAGE_EVENT_KEY [3/4]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_EVENT_KEY = "event"
static

JSON key to get the event object of a message.

◆ JSON_MESSAGE_EVENT_KEY [4/4]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_EVENT_KEY = "event"
static

JSON key to get the event object of a message.

◆ JSON_MESSAGE_HEADER_KEY [1/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_HEADER_KEY = "header"
static

JSON key to get the header object of a message.

◆ JSON_MESSAGE_HEADER_KEY [2/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_HEADER_KEY = "header"
static

JSON key to get the header object of a message.

◆ JSON_MESSAGE_HEADER_KEY [3/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_HEADER_KEY = "header"
static

JSON key to get the header object of a message.

◆ JSON_MESSAGE_HEADER_KEY [4/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_HEADER_KEY = "header"
static

JSON key to get the header object of a message.

◆ JSON_MESSAGE_HEADER_KEY [5/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_HEADER_KEY = "header"
static

JSON key to get the header object of a message.

◆ JSON_MESSAGE_HEADER_KEY [6/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_HEADER_KEY = "header"
static

JSON key to get the header object of a message.

◆ JSON_MESSAGE_MESSAGE_ID_KEY [1/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_MESSAGE_ID_KEY = "messageId"
static

JSON key to get the messageId value of a header.

◆ JSON_MESSAGE_MESSAGE_ID_KEY [2/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_MESSAGE_ID_KEY = "messageId"
static

JSON key to get the messageId value of a header.

◆ JSON_MESSAGE_MESSAGE_ID_KEY [3/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_MESSAGE_ID_KEY = "messageId"
static

JSON key to get the messageId value of a header.

◆ JSON_MESSAGE_MESSAGE_ID_KEY [4/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_MESSAGE_ID_KEY = "messageId"
static

JSON key to get the messageId value of a header.

◆ JSON_MESSAGE_MESSAGE_ID_KEY [5/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_MESSAGE_ID_KEY = "messageId"
static

JSON key to get the messageId value of a header.

◆ JSON_MESSAGE_MESSAGE_ID_KEY [6/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_MESSAGE_ID_KEY = "messageId"
static

JSON key to get the messageId value of a header.

◆ JSON_MESSAGE_NAME_KEY [1/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_NAME_KEY = "name"
static

JSON key to get the name value of a header.

◆ JSON_MESSAGE_NAME_KEY [2/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_NAME_KEY = "name"
static

JSON key to get the name value of a header.

◆ JSON_MESSAGE_NAME_KEY [3/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_NAME_KEY = "name"
static

JSON key to get the name value of a header.

◆ JSON_MESSAGE_NAME_KEY [4/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_NAME_KEY = "name"
static

JSON key to get the name value of a header.

◆ JSON_MESSAGE_NAME_KEY [5/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_NAME_KEY = "name"
static

JSON key to get the name value of a header.

◆ JSON_MESSAGE_NAME_KEY [6/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_NAME_KEY = "name"
static

JSON key to get the name value of a header.

◆ JSON_MESSAGE_NAMESPACE_KEY [1/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_NAMESPACE_KEY = "namespace"
static

JSON key to get the namespace value of a header.

◆ JSON_MESSAGE_NAMESPACE_KEY [2/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_NAMESPACE_KEY = "namespace"
static

JSON key to get the namespace value of a header.

◆ JSON_MESSAGE_NAMESPACE_KEY [3/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_NAMESPACE_KEY = "namespace"
static

JSON key to get the namespace value of a header.

◆ JSON_MESSAGE_NAMESPACE_KEY [4/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_NAMESPACE_KEY = "namespace"
static

JSON key to get the namespace value of a header.

◆ JSON_MESSAGE_NAMESPACE_KEY [5/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_NAMESPACE_KEY = "namespace"
static

JSON key to get the namespace value of a header.

◆ JSON_MESSAGE_NAMESPACE_KEY [6/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_NAMESPACE_KEY = "namespace"
static

JSON key to get the namespace value of a header.

◆ JSON_MESSAGE_PAYLOAD_KEY [1/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_PAYLOAD_KEY = "payload"
static

JSON key to get the payload object of a message.

◆ JSON_MESSAGE_PAYLOAD_KEY [2/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_PAYLOAD_KEY = "payload"
static

JSON key to get the payload object of a message.

◆ JSON_MESSAGE_PAYLOAD_KEY [3/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_PAYLOAD_KEY = "payload"
static

JSON key to get the payload object of a message.

◆ JSON_MESSAGE_PAYLOAD_KEY [4/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_PAYLOAD_KEY = "payload"
static

JSON key to get the payload object of a message.

◆ JSON_MESSAGE_PAYLOAD_KEY [5/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_PAYLOAD_KEY = "payload"
static

JSON key to get the payload object of a message.

◆ JSON_MESSAGE_PAYLOAD_KEY [6/6]

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_PAYLOAD_KEY = "payload"
static

JSON key to get the payload object of a message.

◆ JSON_MESSAGE_TOKEN_KEY

const std::string alexaClientSDK::integration::test::JSON_MESSAGE_TOKEN_KEY = "token"
static

JSON key to get the payload object of a message.

◆ LIONS_AUDIO_FILE

const std::string alexaClientSDK::integration::test::LIONS_AUDIO_FILE = "/recognize_lions_test.wav"
static

◆ LONG_DELAY_TIME

const std::string alexaClientSDK::integration::test::LONG_DELAY_TIME = "40000ms"
static

Amount of Delay for causing a TIMEDOUT status in MessageRequest.

◆ LONG_TIMEOUT_FOR_SEND_IN_SECONDS

const int alexaClientSDK::integration::test::LONG_TIMEOUT_FOR_SEND_IN_SECONDS = 40
static

The time to wait for expected message status when delay is longer.

◆ MAX_CONCURRENT_STREAMS

const int alexaClientSDK::integration::test::MAX_CONCURRENT_STREAMS = 9
static

The value of MAX_THREADS is determined by the maximum number of streams we can have active at once which is defined in HTTP2Connection.cpp as a constant MAX_STREAMS=10. Streams include events, the downchannel and ping. Since we establish a downchannel when we connect, we can only have (MAX_STREAMS - 1) events sent at once. Therefore, the value of MAX_THREADS = MAX_STREAMS -1.

◆ NAME_ADJUST_VOLUME

const std::string alexaClientSDK::integration::test::NAME_ADJUST_VOLUME = "AdjustVolume"
static

◆ NAME_ALERT_ENTERED_BACKGROUND

const std::string alexaClientSDK::integration::test::NAME_ALERT_ENTERED_BACKGROUND = "AlertEnteredBackground"
static

◆ NAME_ALERT_ENTERED_FOREGROUND

const std::string alexaClientSDK::integration::test::NAME_ALERT_ENTERED_FOREGROUND = "AlertEnteredForeground"
static

◆ NAME_ALERT_STARTED

const std::string alexaClientSDK::integration::test::NAME_ALERT_STARTED = "AlertStarted"
static

◆ NAME_ALERT_STOPPED

const std::string alexaClientSDK::integration::test::NAME_ALERT_STOPPED = "AlertStopped"
static

◆ NAME_CLEAR_QUEUE

const std::string alexaClientSDK::integration::test::NAME_CLEAR_QUEUE = "ClearQueue"
static

◆ NAME_DELETE_ALERT_FAILED

const std::string alexaClientSDK::integration::test::NAME_DELETE_ALERT_FAILED = "DeleteAlertFailed"
static

◆ NAME_DELETE_ALERT_SUCCEEDED

const std::string alexaClientSDK::integration::test::NAME_DELETE_ALERT_SUCCEEDED = "DeleteAlertSucceeded"
static

◆ NAME_EXPECT_SPEECH [1/3]

const std::string alexaClientSDK::integration::test::NAME_EXPECT_SPEECH = "ExpectSpeech"
static

◆ NAME_EXPECT_SPEECH [2/3]

const std::string alexaClientSDK::integration::test::NAME_EXPECT_SPEECH = "ExpectSpeech"
static

◆ NAME_EXPECT_SPEECH [3/3]

const std::string alexaClientSDK::integration::test::NAME_EXPECT_SPEECH = "ExpectSpeech"
static

◆ NAME_EXPECT_SPEECH_TIMED_OUT

const std::string alexaClientSDK::integration::test::NAME_EXPECT_SPEECH_TIMED_OUT = "ExpectSpeechTimedOut"
static

◆ NAME_PLAY [1/2]

const std::string alexaClientSDK::integration::test::NAME_PLAY = "Play"
static

◆ NAME_PLAY [2/2]

const std::string alexaClientSDK::integration::test::NAME_PLAY = "Play"
static

◆ NAME_PLAYBACK_FINISHED

const std::string alexaClientSDK::integration::test::NAME_PLAYBACK_FINISHED = "PlaybackFinished"
static

◆ NAME_PLAYBACK_NEARLY_FINISHED

const std::string alexaClientSDK::integration::test::NAME_PLAYBACK_NEARLY_FINISHED = "PlaybackNearlyFinished"
static

◆ NAME_PLAYBACK_STARTED

const std::string alexaClientSDK::integration::test::NAME_PLAYBACK_STARTED = "PlaybackStarted"
static

◆ NAME_PLAYBACK_STOPPED

const std::string alexaClientSDK::integration::test::NAME_PLAYBACK_STOPPED = "PlaybackStopped"
static

◆ NAME_RECOGNIZE [1/4]

const std::string alexaClientSDK::integration::test::NAME_RECOGNIZE = "Recognize"
static

◆ NAME_RECOGNIZE [2/4]

const std::string alexaClientSDK::integration::test::NAME_RECOGNIZE = "Recognize"
static

◆ NAME_RECOGNIZE [3/4]

const std::string alexaClientSDK::integration::test::NAME_RECOGNIZE = "Recognize"
static

◆ NAME_RECOGNIZE [4/4]

const std::string alexaClientSDK::integration::test::NAME_RECOGNIZE = "Recognize"
static

◆ NAME_SET_ALERT

const std::string alexaClientSDK::integration::test::NAME_SET_ALERT = "SetAlert"
static

◆ NAME_SET_ALERT_FAILED [1/2]

const std::string alexaClientSDK::integration::test::NAME_SET_ALERT_FAILED = "SetAlertFailed"
static

◆ NAME_SET_ALERT_FAILED [2/2]

const std::string alexaClientSDK::integration::test::NAME_SET_ALERT_FAILED = "SetAlertFailed"
static

◆ NAME_SET_ALERT_SUCCEEDED

const std::string alexaClientSDK::integration::test::NAME_SET_ALERT_SUCCEEDED = "SetAlertSucceeded"
static

◆ NAME_SET_MUTE [1/3]

const std::string alexaClientSDK::integration::test::NAME_SET_MUTE = "SetMute"
static

◆ NAME_SET_MUTE [2/3]

const std::string alexaClientSDK::integration::test::NAME_SET_MUTE = "SetMute"
static

◆ NAME_SET_MUTE [3/3]

const std::string alexaClientSDK::integration::test::NAME_SET_MUTE = "SetMute"
static

◆ NAME_SPEAK [1/3]

const std::string alexaClientSDK::integration::test::NAME_SPEAK = "Speak"
static

◆ NAME_SPEAK [2/3]

const std::string alexaClientSDK::integration::test::NAME_SPEAK = "Speak"
static

◆ NAME_SPEAK [3/3]

const std::string alexaClientSDK::integration::test::NAME_SPEAK = "Speak"
static

◆ NAME_SPEECH_FINISHED [1/4]

const std::string alexaClientSDK::integration::test::NAME_SPEECH_FINISHED = "SpeechFinished"
static

◆ NAME_SPEECH_FINISHED [2/4]

const std::string alexaClientSDK::integration::test::NAME_SPEECH_FINISHED = "SpeechFinished"
static

◆ NAME_SPEECH_FINISHED [3/4]

const std::string alexaClientSDK::integration::test::NAME_SPEECH_FINISHED = "SpeechFinished"
static

◆ NAME_SPEECH_FINISHED [4/4]

const std::string alexaClientSDK::integration::test::NAME_SPEECH_FINISHED = "SpeechFinished"
static

◆ NAME_SPEECH_INTERRUPTED

const std::string alexaClientSDK::integration::test::NAME_SPEECH_INTERRUPTED = "SpeechInterrupted"
static

◆ NAME_SPEECH_STARTED [1/4]

const std::string alexaClientSDK::integration::test::NAME_SPEECH_STARTED = "SpeechStarted"
static

◆ NAME_SPEECH_STARTED [2/4]

const std::string alexaClientSDK::integration::test::NAME_SPEECH_STARTED = "SpeechStarted"
static

◆ NAME_SPEECH_STARTED [3/4]

const std::string alexaClientSDK::integration::test::NAME_SPEECH_STARTED = "SpeechStarted"
static

◆ NAME_SPEECH_STARTED [4/4]

const std::string alexaClientSDK::integration::test::NAME_SPEECH_STARTED = "SpeechStarted"
static

◆ NAME_STOP

const std::string alexaClientSDK::integration::test::NAME_STOP = "Stop"
static

◆ NAME_STOP_CAPTURE

const std::string alexaClientSDK::integration::test::NAME_STOP_CAPTURE = "StopCapture"
static

◆ NAME_SYNC_STATE

const std::string alexaClientSDK::integration::test::NAME_SYNC_STATE = "SynchronizeState"
static

◆ NAME_VOLUME_STATE

const std::string alexaClientSDK::integration::test::NAME_VOLUME_STATE = "VolumeState"
static

◆ NAMESPACE_ALERTS

const std::string alexaClientSDK::integration::test::NAMESPACE_ALERTS = "Alerts"
static

◆ NAMESPACE_AUDIO_PLAYER [1/2]

const std::string alexaClientSDK::integration::test::NAMESPACE_AUDIO_PLAYER = "AudioPlayer"
static

◆ NAMESPACE_AUDIO_PLAYER [2/2]

const std::string alexaClientSDK::integration::test::NAMESPACE_AUDIO_PLAYER = "AudioPlayer"
static

◆ NAMESPACE_SPEAKER [1/3]

const std::string alexaClientSDK::integration::test::NAMESPACE_SPEAKER = "Speaker"
static

◆ NAMESPACE_SPEAKER [2/3]

const std::string alexaClientSDK::integration::test::NAMESPACE_SPEAKER = "Speaker"
static

◆ NAMESPACE_SPEAKER [3/3]

const std::string alexaClientSDK::integration::test::NAMESPACE_SPEAKER = "Speaker"
static

◆ NAMESPACE_SPEECH_RECOGNIZER [1/3]

const std::string alexaClientSDK::integration::test::NAMESPACE_SPEECH_RECOGNIZER = "SpeechRecognizer"
static

◆ NAMESPACE_SPEECH_RECOGNIZER [2/3]

const std::string alexaClientSDK::integration::test::NAMESPACE_SPEECH_RECOGNIZER = "SpeechRecognizer"
static

◆ NAMESPACE_SPEECH_RECOGNIZER [3/3]

const std::string alexaClientSDK::integration::test::NAMESPACE_SPEECH_RECOGNIZER = "SpeechRecognizer"
static

◆ NAMESPACE_SPEECH_SYNTHESIZER [1/3]

const std::string alexaClientSDK::integration::test::NAMESPACE_SPEECH_SYNTHESIZER = "SpeechSynthesizer"
static

◆ NAMESPACE_SPEECH_SYNTHESIZER [2/3]

const std::string alexaClientSDK::integration::test::NAMESPACE_SPEECH_SYNTHESIZER = "SpeechSynthesizer"
static

◆ NAMESPACE_SPEECH_SYNTHESIZER [3/3]

const std::string alexaClientSDK::integration::test::NAMESPACE_SPEECH_SYNTHESIZER = "SpeechSynthesizer"
static

◆ network_interface

std::string alexaClientSDK::integration::test::network_interface

The network interface specified for the delay to be added.

◆ NF_RECOGNIZE_EVENT_JSON

const std::string alexaClientSDK::integration::test::NF_RECOGNIZE_EVENT_JSON = RECOGNIZE_EVENT_JSON(NEAR_FIELD)
static

This string specifies a Recognize event using the NEAR_FIELD profile.

◆ NUMBER_OF_SPEAK_DIRECTIVES_TO_VALIDATE

const unsigned int alexaClientSDK::integration::test::NUMBER_OF_SPEAK_DIRECTIVES_TO_VALIDATE = 3
static

◆ PLAY_PAIR

const NamespaceAndName alexaClientSDK::integration::test::PLAY_PAIR = {NAMESPACE_AUDIO_PLAYER, NAME_PLAY}
static

◆ RECOGNIZE_AUDIO_FILE_NAME

const std::string alexaClientSDK::integration::test::RECOGNIZE_AUDIO_FILE_NAME = "recognize_test.wav"
static

This is a 16 bit 16 kHz little endian linear PCM audio file containing a recognized message for AVS.

◆ RECOGNIZE_CANCEL_TIMER_AUDIO_FILE_NAME

const std::string alexaClientSDK::integration::test::RECOGNIZE_CANCEL_TIMER_AUDIO_FILE_NAME = "/recognize_cancel_timer_test.wav"
static

◆ RECOGNIZE_FLASHBRIEFING_AUDIO_FILE_NAME [1/2]

const std::string alexaClientSDK::integration::test::RECOGNIZE_FLASHBRIEFING_AUDIO_FILE_NAME = "/recognize_flashbriefing_test.wav"
static

This is a 16 bit 16 kHz little endian linear PCM audio file of "flashbriefing" to be recognized.

◆ RECOGNIZE_FLASHBRIEFING_AUDIO_FILE_NAME [2/2]

const std::string alexaClientSDK::integration::test::RECOGNIZE_FLASHBRIEFING_AUDIO_FILE_NAME = "/recognize_flashbriefing_test.wav"
static

◆ RECOGNIZE_FLASHBRIEFING_FILE_NAME

const std::string alexaClientSDK::integration::test::RECOGNIZE_FLASHBRIEFING_FILE_NAME = "/recognize_flashbriefing_test.wav"
static

◆ RECOGNIZE_JOKE_AUDIO_FILE_NAME [1/3]

const std::string alexaClientSDK::integration::test::RECOGNIZE_JOKE_AUDIO_FILE_NAME = "/recognize_joke_test.wav"
static

◆ RECOGNIZE_JOKE_AUDIO_FILE_NAME [2/3]

const std::string alexaClientSDK::integration::test::RECOGNIZE_JOKE_AUDIO_FILE_NAME = "/recognize_joke_test.wav"
static

This is a 16 bit 16 kHz little endian linear PCM audio file of "Joke" to be recognized.

◆ RECOGNIZE_JOKE_AUDIO_FILE_NAME [3/3]

const std::string alexaClientSDK::integration::test::RECOGNIZE_JOKE_AUDIO_FILE_NAME = "/recognize_joke_test.wav"
static

◆ RECOGNIZE_LIONS_AUDIO_FILE_NAME [1/2]

const std::string alexaClientSDK::integration::test::RECOGNIZE_LIONS_AUDIO_FILE_NAME = "/recognize_lions_test.wav"
static

This is a 16 bit 16 kHz little endian linear PCM audio file of "Lions" to be recognized.

◆ RECOGNIZE_LIONS_AUDIO_FILE_NAME [2/2]

const std::string alexaClientSDK::integration::test::RECOGNIZE_LIONS_AUDIO_FILE_NAME = "/recognize_lions_test.wav"
static

◆ RECOGNIZE_LONG_TIMER_AUDIO_FILE_NAME

const std::string alexaClientSDK::integration::test::RECOGNIZE_LONG_TIMER_AUDIO_FILE_NAME = "/recognize_long_timer_test.wav"
static

◆ RECOGNIZE_SING_FILE_NAME

const std::string alexaClientSDK::integration::test::RECOGNIZE_SING_FILE_NAME = "/recognize_sing_song_test.wav"
static

◆ RECOGNIZE_STOP_AUDIO_FILE_NAME

const std::string alexaClientSDK::integration::test::RECOGNIZE_STOP_AUDIO_FILE_NAME = "/recognize_stop_test.wav"
static

◆ RECOGNIZE_TIMER_AUDIO_FILE_NAME [1/2]

const std::string alexaClientSDK::integration::test::RECOGNIZE_TIMER_AUDIO_FILE_NAME = "/recognize_timer_test.wav"
static

◆ RECOGNIZE_TIMER_AUDIO_FILE_NAME [2/2]

const std::string alexaClientSDK::integration::test::RECOGNIZE_TIMER_AUDIO_FILE_NAME = "/recognize_timer_test.wav"
static

This is a 16 bit 16 kHz little endian linear PCM audio file of "Set a timer for 5 seconds" to be recognized.

◆ RECOGNIZE_VERY_LONG_TIMER_AUDIO_FILE_NAME

const std::string alexaClientSDK::integration::test::RECOGNIZE_VERY_LONG_TIMER_AUDIO_FILE_NAME = "/recognize_very_long_timer_test.wav"
static

◆ RECOGNIZE_VOLUME_UP_AUDIO_FILE_NAME

const std::string alexaClientSDK::integration::test::RECOGNIZE_VOLUME_UP_AUDIO_FILE_NAME = "/recognize_volume_up_test.wav"
static

◆ RECOGNIZE_WEATHER_AUDIO_FILE_NAME

const std::string alexaClientSDK::integration::test::RECOGNIZE_WEATHER_AUDIO_FILE_NAME = "/recognize_weather_test.wav"
static

◆ RECOGNIZE_WHATS_UP_AUDIO_FILE_NAME [1/3]

const std::string alexaClientSDK::integration::test::RECOGNIZE_WHATS_UP_AUDIO_FILE_NAME = "/recognize_whats_up_test.wav"
static

◆ RECOGNIZE_WHATS_UP_AUDIO_FILE_NAME [2/3]

const std::string alexaClientSDK::integration::test::RECOGNIZE_WHATS_UP_AUDIO_FILE_NAME = "/recognize_whats_up_test.wav"
static

This is a 16 bit 16 kHz little endian linear PCM audio file of "What's up" to be recognized.

◆ RECOGNIZE_WHATS_UP_AUDIO_FILE_NAME [3/3]

const std::string alexaClientSDK::integration::test::RECOGNIZE_WHATS_UP_AUDIO_FILE_NAME = "/recognize_whats_up_test.wav"
static

◆ RECOGNIZE_WIKI_AUDIO_FILE_NAME [1/2]

const std::string alexaClientSDK::integration::test::RECOGNIZE_WIKI_AUDIO_FILE_NAME = "/recognize_wiki_test.wav"
static

This is a 16 bit 16 kHz little endian linear PCM audio file of "Wikipedia" to be recognized.

◆ RECOGNIZE_WIKI_AUDIO_FILE_NAME [2/2]

const std::string alexaClientSDK::integration::test::RECOGNIZE_WIKI_AUDIO_FILE_NAME = "/recognize_wiki_test.wav"
static

◆ RIFF_HEADER_SIZE

const int alexaClientSDK::integration::test::RIFF_HEADER_SIZE = 44
static

◆ SET_ALERT_PAIR

const NamespaceAndName alexaClientSDK::integration::test::SET_ALERT_PAIR(NAMESPACE_ALERTS, NAME_SET_ALERT)
static

◆ SET_MUTE_PAIR [1/3]

const NamespaceAndName alexaClientSDK::integration::test::SET_MUTE_PAIR(NAMESPACE_SPEAKER, NAME_SET_MUTE)
static

◆ SET_MUTE_PAIR [2/3]

const NamespaceAndName alexaClientSDK::integration::test::SET_MUTE_PAIR = {NAMESPACE_SPEAKER, NAME_SET_MUTE}
static

◆ SET_MUTE_PAIR [3/3]

const NamespaceAndName alexaClientSDK::integration::test::SET_MUTE_PAIR = {NAMESPACE_SPEAKER, NAME_SET_MUTE}
static

◆ SILENCE_AUDIO_FILE

const std::string alexaClientSDK::integration::test::SILENCE_AUDIO_FILE = "/recognize_silence_test.wav"
static

◆ SILENCE_AUDIO_FILE_NAME

const std::string alexaClientSDK::integration::test::SILENCE_AUDIO_FILE_NAME = "silence_test.wav"
static

This is a 16 bit 16 kHz little endian linear PCM audio file containing several seconds of silence.

◆ SPEAK_PAIR [1/3]

const NamespaceAndName alexaClientSDK::integration::test::SPEAK_PAIR(NAMESPACE_SPEECH_SYNTHESIZER, NAME_SPEAK)
static

◆ SPEAK_PAIR [2/3]

const NamespaceAndName alexaClientSDK::integration::test::SPEAK_PAIR = {NAMESPACE_SPEECH_SYNTHESIZER, NAME_SPEAK}
static

◆ SPEAK_PAIR [3/3]

const NamespaceAndName alexaClientSDK::integration::test::SPEAK_PAIR = {NAMESPACE_SPEECH_SYNTHESIZER, NAME_SPEAK}
static

◆ STOP_CAPTURE_PAIR

const NamespaceAndName alexaClientSDK::integration::test::STOP_CAPTURE_PAIR = {NAMESPACE_SPEECH_RECOGNIZER, NAME_STOP_CAPTURE}
static

◆ SYNCHRONIZE_STATE_JSON

const std::string alexaClientSDK::integration::test::SYNCHRONIZE_STATE_JSON
static
Initial value:
=
"{"
"\"context\":[{"
"\"header\":{"
"\"name\":\"SpeechState\","
"\"namespace\":\"SpeechSynthesizer\""
"},"
"\"payload\":{"
"\"playerActivity\":\"FINISHED\","
"\"offsetInMilliseconds\":0,"
"\"token\":\"\""
"}"
"}],"
"\"event\":{"
"\"header\":{"
"\"messageId\":\"00000000-0000-0000-0000-000000000000\","
"\"name\":\"SynchronizeState\","
"\"namespace\":\"System\""
"},"
"\"payload\":{"
"}"
"}"
"}"

This is a basic synchronize JSON message which may be used to initiate a connection with AVS.

◆ TEST_ACTIVITY_ID

const std::string alexaClientSDK::integration::test::TEST_ACTIVITY_ID = "test"
static

Sample content activity id.

◆ TEST_CHANNEL_NAME

const std::string alexaClientSDK::integration::test::TEST_CHANNEL_NAME = "Test"
static

An incorrect Channel name that is never initialized as a Channel.

◆ TEST_CHANNEL_PRIORITY

const unsigned int alexaClientSDK::integration::test::TEST_CHANNEL_PRIORITY = 400
static

The priority of the content Channel used in intializing the FocusManager.

◆ TIME_AUDIO_FILE_OPUS

const std::string alexaClientSDK::integration::test::TIME_AUDIO_FILE_OPUS = "/utterance_time_success.opus"
static

◆ TIMEOUT_FOR_SEND_IN_SECONDS [1/2]

const int alexaClientSDK::integration::test::TIMEOUT_FOR_SEND_IN_SECONDS = 10
static

The time to wait for expected message status on sending the message.

◆ TIMEOUT_FOR_SEND_IN_SECONDS [2/2]

const int alexaClientSDK::integration::test::TIMEOUT_FOR_SEND_IN_SECONDS = 10
static

The time to wait for expected message status on sending the message.

◆ TOKEN_KEY

const char alexaClientSDK::integration::test::TOKEN_KEY[] = "token"
static

JSON key to add to the payload object of a message.

◆ VOLUME_STATE_PAIR

const NamespaceAndName alexaClientSDK::integration::test::VOLUME_STATE_PAIR = {NAMESPACE_SPEAKER, NAME_VOLUME_STATE}
static

◆ WIKI_AUDIO_FILE

const std::string alexaClientSDK::integration::test::WIKI_AUDIO_FILE = "/recognize_wiki_test.wav"
static

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