AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Macros | Typedefs | Functions | Variables
AudioPlayerTest.cpp File Reference
#include <chrono>
#include <future>
#include <map>
#include <memory>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <rapidjson/document.h>
#include <rapidjson/error/en.h>
#include <rapidjson/stringbuffer.h>
#include <acsdk/CryptoInterfaces/test/MockCryptoFactory.h>
#include <AVSCommon/AVS/Attachment/AttachmentManager.h>
#include <AVSCommon/SDKInterfaces/MockChannelVolumeInterface.h>
#include <AVSCommon/SDKInterfaces/MockContextManager.h>
#include <AVSCommon/SDKInterfaces/MockDirectiveHandlerResult.h>
#include <AVSCommon/SDKInterfaces/MockExceptionEncounteredSender.h>
#include <AVSCommon/SDKInterfaces/MockFocusManager.h>
#include <AVSCommon/SDKInterfaces/MockMessageSender.h>
#include <AVSCommon/SDKInterfaces/MockPlaybackRouter.h>
#include <AVSCommon/Utils/JSON/JSONGenerator.h>
#include <AVSCommon/Utils/JSON/JSONUtils.h>
#include <AVSCommon/Utils/MediaPlayer/PooledMediaResourceProvider.h>
#include <AVSCommon/Utils/MediaPlayer/MockMediaPlayer.h>
#include <AVSCommon/Utils/MediaPlayer/PooledMediaPlayerFactory.h>
#include <AVSCommon/Utils/Memory/Memory.h>
#include <AVSCommon/Utils/Metrics/MockMetricRecorder.h>
#include <MockCaptionManager.h>
#include "acsdkAudioPlayer/AudioPlayer.h"
Include dependency graph for AudioPlayerTest.cpp:

Classes

class  alexaClientSDK::acsdkAudioPlayer::test::TestAudioPlayerObserver
 
class  alexaClientSDK::acsdkAudioPlayer::test::MockAudioPlayerObserver
 
class  alexaClientSDK::acsdkAudioPlayer::test::AudioPlayerTest
 

Namespaces

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

Macros

#define LX(event)   alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)
 

Typedefs

using alexaClientSDK::acsdkAudioPlayer::test::MediaPlayerState = avsCommon::utils::mediaPlayer::MediaPlayerState
 

Functions

static std::chrono::milliseconds alexaClientSDK::acsdkAudioPlayer::test::MY_WAIT_TIMEOUT (1500)
 Plenty of time for a test to complete. More...
 
static std::chrono::milliseconds alexaClientSDK::acsdkAudioPlayer::test::EVENT_PROCESS_DELAY (20)
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::CHANNEL_NAME (avsCommon::sdkInterfaces::FocusManagerInterface::CONTENT_CHANNEL_NAME)
 The name of the FocusManager channel used by the AudioPlayer. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::NAMESPACE_AUDIO_PLAYER ("AudioPlayer")
 Namespace for AudioPlayer. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::NAMESPACE_AUDIO_PLAYER_2 ("AudioPlayer_2")
 Namespace for Another AudioPlayer. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::NAME_PLAY ("Play")
 Name for AudioPlayer Play directive. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::NAME_STOP ("Stop")
 Name for AudioPlayer Stop directive. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::NAME_CLEARQUEUE ("ClearQueue")
 Name for AudioPlayer ClearQueue directive. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::NAME_UPDATE_PROGRESS_REPORT_INTERVAL ("UpdateProgressReportInterval")
 Name for AudioPlayer UpdateProgressReportInterval directive. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_ID_TEST ("MessageId_Test")
 Message Id for testing. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_ID_TEST_2 ("MessageId_Test2")
 Another message Id for testing. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_ID_TEST_3 ("MessageId_Test3")
 Another message Id for testing. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::PLAY_REQUEST_ID_TEST ("PlayRequestId_Test")
 PlayRequestId for testing. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::CONTEXT_ID_TEST ("ContextId_Test")
 Context ID for testing. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::CONTEXT_ID_TEST_2 ("ContextId_Test2")
 Context ID for testing. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::CONTEXT_ID_TEST_3 ("ContextId_Test3")
 Context ID for testing. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::TOKEN_TEST ("Token_Test")
 Token for testing. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::PREV_TOKEN_TEST ("Prev_Token_Test")
 Previous token for testing. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::FORMAT_TEST ("AUDIO_MPEG")
 Format of the audio. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::URL_TEST ("cid:Test")
 URL for testing. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::NAME_ENQUEUE ("ENQUEUE")
 ENQUEUE playBehavior. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::NAME_REPLACE_ALL ("REPLACE_ALL")
 REPLACE_ALL playBehavior. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::NAME_CLEAR_ALL ("CLEAR_ALL")
 CLEAR_ALL clearBehavior. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::NAME_CLEAR_ENQUEUED ("CLEAR_ENQUEUED")
 CLEAR_ENQUEUED clearBehavior. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::AUDIO_ITEM_ID_1 ("testID1")
 audioItemId for testing. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::AUDIO_ITEM_ID_2 ("testID2")
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::FINISHED_STATE ("FINISHED")
 The FINISHED state of the AudioPlayer. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::EXPIRY_TEST ("481516234248151623421088")
 ExpiryTime for testing. Needs to be in ISO 8601 format. More...
 
static std::string alexaClientSDK::acsdkAudioPlayer::test::createEnqueuePayloadTest (long offsetInMilliseconds, const std::string &audioId=AUDIO_ITEM_ID_1)
 Payloads for testing. More...
 
static std::string alexaClientSDK::acsdkAudioPlayer::test::createReplaceAllPayloadTest (long offsetInMilliseconds, const std::string &audioId=AUDIO_ITEM_ID_1)
 
static std::string alexaClientSDK::acsdkAudioPlayer::test::createPayloadWithEndOffset (long offset, long endOffset, const std::string &audioId=AUDIO_ITEM_ID_1)
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::TAG ("AudioPlayerTest")
 String to identify log entries originating from this file. More...
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_createWithNullPointers)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_transitionFromIdleToPlaying)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_transitionFromPlayingToStopped)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_transitionFromPlayingToStoppedToIdleWithClearAll)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_continuesPlayingWithClearEnqueued)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_transitionFromIdleToPlayingAfterClearAll)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, testTransitionFromIdleToResumePlaying)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, testTransitionFromPlayingToPlayingNextEnqueuedTrack)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, testTransitionDontPlayEnqueuedTrackIfOffsetDifferent)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_transitionFromPlayingToPaused)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_localPause_withEnqueuedTracks_doesNotAutoProgress)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_transitionFromPausedToStopped)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_transitionFromPausedToIdle)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_resumeAfterPaused)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_callingProvideStateWhenIdle)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_onPlaybackError)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_onPlaybackError_Stopped)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, testPrebufferOnPlaybackError)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_onPlaybackPaused)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_onPlaybackResumed)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_onPlaybackFinished_bufferCompleteAfterStarted)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_onPlaybackFinished_bufferCompleteBeforeStarted)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, testOnPlaybackFinishedWithPlaybackAttributes)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, testOnPlaybackStoppedWithPlaybackReports)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_onBufferUnderrun)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, testTimer_onBufferRefilled)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_onTags_filteredOut)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_onTags_filteredIn)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_onTags_filteredIn_rateCheck)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_onTags_filteredIn_duplicateCheck)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_cancelDirective)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_focusChangeToNoneInIdleState)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_focusChangeFromForegroundToBackgroundInIdleState)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_focusChangeFromNoneToBackgroundInIdleState)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_focusChangesInPlayingState)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_focusChangesInStoppedState)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_focusChangesInPausedState)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_focusChangesInBufferUnderrunState)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_focusChangeToBackgroundBeforeOnPlaybackStarted)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_playAfterOnPlaybackError)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_playCallsCaptionManager)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_playParsesCaptionPayload)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_playbackStartedSwitchesHandler)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_progressReportDelayElapsed)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_progressReportDelayElapsedDelayLessThanOffset)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, testTimer_progressReportIntervalElapsed)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_progressReportIntervalElapsedIntervalLessThanOffset)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, testSlow_playOnlyAfterForegroundFocus)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, testSlow_focusChangeRaceOnPlay)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, testTimer_playbackStartedCallbackAfterFocusLost)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test1PlayerPool_PlayEnqueueFinishPlay)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test2PlayerPool_PlayEnqueueFinishPlay)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test3PlayerPool_PlayEnqueueFinishPlay)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, testPlayRequestor)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, testUpdateProgressReportInterval)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, testTimer_playbackFinishedMessageOrder_1Player)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, testTimer_playbackFinishedMessageOrder_2Players)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, testTimer_playbackValidateReportEvents_1Player)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, testTimer_playbackValidateFailed_1Player)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, testTimer_playbackValidateStutter_1Player)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, testTimer_playbackPauseResume_1Player)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_publishedCapabiltiesContainsFingerprint)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_localStop)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_localPause)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_localResumeAfterPaused)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_localSeekTo)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_localSeekToWhileLocalStopped)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, DISABLED_test_endOffset)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_badEndOffset)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (AudioPlayerTest, test_badEndOffsetEqualValue)
 

Variables

static const MediaPlayerState alexaClientSDK::acsdkAudioPlayer::test::DEFAULT_MEDIA_PLAYER_STATE = {std::chrono::milliseconds(0)}
 Default media player state for reporting all playback offsets. More...
 
static const NamespaceAndName alexaClientSDK::acsdkAudioPlayer::test::NAMESPACE_AND_NAME_PLAYBACK_STATE {NAMESPACE_AUDIO_PLAYER, "PlaybackState"}
 The NamespaceAndName to send to the ContextManager. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::PLAYING_STATE {"PLAYING"}
 The PLAYING state of the AudioPlayer. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::IDLE_STATE {"IDLE"}
 The IDLE state of the AudioPlayer. More...
 
static const long alexaClientSDK::acsdkAudioPlayer::test::OFFSET_IN_MILLISECONDS_TEST {100}
 The offset in milliseconds returned by the mock media player. More...
 
static const long alexaClientSDK::acsdkAudioPlayer::test::OFFSET_IN_MILLISECONDS_TEST2 {0}
 The offset in milliseconds returned by the mock media player. More...
 
static const long alexaClientSDK::acsdkAudioPlayer::test::PROGRESS_REPORT_DELAY {200}
 progressReportDelayInMilliseconds for testing. More...
 
static const long alexaClientSDK::acsdkAudioPlayer::test::PROGRESS_REPORT_INTERVAL {100}
 progressReportIntervalInMilliseconds for testing. More...
 
static const long alexaClientSDK::acsdkAudioPlayer::test::OFFSET_IN_MILLISECONDS_BEFORE_PROGRESS_REPORT_DELAY {PROGRESS_REPORT_DELAY - 1}
 The offset in milliseconds returned by the mock media player slightly before the progressReportDelayInMilliseconds. More...
 
static const long alexaClientSDK::acsdkAudioPlayer::test::OFFSET_IN_MILLISECONDS_AFTER_PROGRESS_REPORT_DELAY {PROGRESS_REPORT_DELAY + 1}
 The offset in milliseconds returned by the mock media player slightly before the progressReportDelayInMilliseconds. More...
 
static const long alexaClientSDK::acsdkAudioPlayer::test::OFFSET_IN_MILLISECONDS_BEFORE_PROGRESS_REPORT_INTERVAL {PROGRESS_REPORT_INTERVAL - 1}
 
static const long alexaClientSDK::acsdkAudioPlayer::test::OFFSET_IN_MILLISECONDS_AFTER_PROGRESS_REPORT_INTERVAL {PROGRESS_REPORT_INTERVAL + 1}
 
static const std::chrono::milliseconds alexaClientSDK::acsdkAudioPlayer::test::TIME_FOR_TWO_AND_A_HALF_INTERVAL_PERIODS
 The time that must elapse in order to get 2.5 interval periods. More...
 
static const long alexaClientSDK::acsdkAudioPlayer::test::METADATA_EVENT_DELAY {1001}
 The time to wait before sending 'onTags()' after the last send. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::CAPTION_CONTENT_SAMPLE
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::PLAY_REQUESTOR_TYPE_ALERT {"ALERT"}
 A playRequestor object with type "ALERT". More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::PLAY_REQUESTOR_ID {"12345678"}
 A playRequestor object id. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::REPLACE_ALL_PAYLOAD_TEST
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::PLAY_REQUESTOR_PAYLOAD_TEST
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::EMPTY_PAYLOAD_TEST = "{}"
 Empty payload for testing. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::CLEAR_ALL_PAYLOAD_TEST
 CLEAR_ALL payload for testing. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::CLEAR_ENQUEUED_PAYLOAD_TEST
 CLEAR_ENQUEUED payload for testing. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::TOKEN_KEY = "token"
 Token JSON key. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::OFFSET_KEY = "offsetInMilliseconds"
 Offset JSON key. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::SEEK_END_OFFSET_KEY = "seekEndOffsetInMilliseconds"
 Offset JSON key. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::ACTIVITY_KEY = "playerActivity"
 Player activity JSON key. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::IDLE_STATE_TEST
 The expected state when the AudioPlayer is not handling any directive. More...
 
static const unsigned int alexaClientSDK::acsdkAudioPlayer::test::PROVIDE_STATE_TOKEN_TEST {1}
 Provide State Token for testing. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::UPDATE_PROGRESS_REPORT_INTERVAL_PAYLOAD_TEST
 UPDATE_PROGRESS_REPORT_INTERVAL payload for testing. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_EVENT_KEY = "event"
 JSON key for the event section of a message. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_HEADER_KEY = "header"
 JSON key for the header section of a message. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_NAME_KEY = "name"
 JSON key for the name section of a message. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_TOKEN_KEY = "token"
 JSON key for the token section of a message. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_PAYLOAD_KEY = "payload"
 JSON key for the payload section of a message. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_METADATA_KEY = "metadata"
 JSON key for the metadata section of a message. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_METADATA_STRING_KEY = "StringKey"
 JSON key for "string" type field in metadata section of StreamMetadataExtracted event. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_METADATA_STRING_KEY_WL = "Title"
 JSON key for "string" type field in metadata section of StreamMetadataExtracted event. On allowlist. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_METADATA_STRING_VALUE = "StringValue"
 JSON value for "string" type field in metadata section of StreamMetadataExtracted event. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_METADATA_STRING_VALUE_ALT = "StringValue2"
 JSON value for alternate "string" type field in metadata section of StreamMetadataExtracted event. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_METADATA_UINT_KEY = "UintKey"
 JSON key for "uint" type field in metadata section of StreamMetadataExtracted event. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_METADATA_UINT_VALUE = "12345"
 JSON value for "uint" type field in metadata section of StreamMetadataExtracted event. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_METADATA_INT_KEY = "IntKey"
 JSON key for "int" type field in metadata section of StreamMetadataExtracted event. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_METADATA_INT_VALUE = "67890"
 JSON value for "int" type field in metadata section of StreamMetadataExtracted event. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_METADATA_DOUBLE_KEY = "DoubleKey"
 JSON key for "double" type field in metadata section of StreamMetadataExtracted event. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_METADATA_DOUBLE_VALUE = "3.14"
 JSON value for "double" type field in metadata section of StreamMetadataExtracted event. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_METADATA_BOOLEAN_KEY = "BooleanKey"
 JSON key for "boolean" type field in metadata section of StreamMetadataExtracted event. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_METADATA_BOOLEAN_VALUE = "true"
 JSON value for "boolean" type field in metadata section of StreamMetadataExtracted event. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_PLAYBACK_ATTRIBUTES_KEY = "playbackAttributes"
 JSON key for the playbackAttributes section of a message. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_PLAYBACK_ATTRIBUTES_NAME_KEY = "name"
 JSON key for "name" field in playbackAttributes section of message. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_PLAYBACK_ATTRIBUTES_NAME_VALUE = "STREAM_NAME_ABSENT"
 JSON value for "name" field in playbackAttributes section of message. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_PLAYBACK_ATTRIBUTES_CODEC_KEY = "codec"
 JSON key for "codec" field in playbackAttributes section of message. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_PLAYBACK_ATTRIBUTES_CODEC_VALUE = "opus"
 JSON value for "codec" field in playbackAttributes section of message. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_PLAYBACK_ATTRIBUTES_SAMPLING_RATE_KEY = "samplingRateInHertz"
 JSON key for "samplingRateInHertz" field in playbackAttributes section of message. More...
 
static const long alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_PLAYBACK_ATTRIBUTES_SAMPLING_RATE_VALUE = 48000
 JSON value for "samplingRateInHertz" field in playbackAttributes section of message. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_PLAYBACK_ATTRIBUTES_BITRATE_KEY = "dataRateInBitsPerSecond"
 JSON key for "dataRateInBitsPerSecond" field in playbackAttributes section of message. More...
 
static const long alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_PLAYBACK_ATTRIBUTES_BITRATE_VALUE = 49000
 JSON value for "dataRateInBitsPerSecond" field in playbackAttributes section of message. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_PLAYBACK_REPORTS_KEY = "playbackReports"
 JSON key for the playbackReports section of a message. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_PLAYBACK_REPORTS_START_OFFSET_KEY = "startOffsetInMilliseconds"
 JSON key for "startOffsetInMilliseconds" field in playbackReports section of message. More...
 
static const long alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_PLAYBACK_REPORTS_START_OFFSET_VALUE = 0
 JSON value for "startOffsetInMilliseconds" field in playbackReports section of message. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_PLAYBACK_REPORTS_END_OFFSET_KEY = "endOffsetInMilliseconds"
 JSON key for "endOffsetInMilliseconds" field in playbackReports section of message. More...
 
static const long alexaClientSDK::acsdkAudioPlayer::test::MESSAGE_PLAYBACK_REPORTS_END_OFFSET_VALUE = 10000
 JSON value for "endOffsetInMilliseconds" field in playbackReports section of message. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::PLAYBACK_STARTED_NAME = "PlaybackStarted"
 Name of PlaybackStarted event. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::PLAYBACK_NEARLY_FINISHED_NAME = "PlaybackNearlyFinished"
 Name of PlaybackNearlyFinished event. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::PLAYBACK_FINISHED_NAME = "PlaybackFinished"
 Name of PlaybackFinished event. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::PLAYBACK_STOPPED_NAME = "PlaybackStopped"
 Name of PlaybackStopped event. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::PLAYBACK_PAUSED_NAME = "PlaybackPaused"
 Name of PlaybackPaused event. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::PLAYBACK_FAILED_NAME = "PlaybackFailed"
 Name of PlaybackFailed event. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::PLAYBACK_RESUMED_NAME = "PlaybackResumed"
 Name of PlaybackResumed event. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::PLAYBACK_STUTTER_STARTED_NAME = "PlaybackStutterStarted"
 Name of PlaybackStutterStarted event. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::PLAYBACK_STUTTER_FINISHED_NAME = "PlaybackStutterFinished"
 Name of PlaybackStutterFinished event. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::PROGRESS_REPORT_DELAY_ELAPSED_NAME = "ProgressReportDelayElapsed"
 Name of ProgressReportDelayElapsed event. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::PROGRESS_REPORT_INTERVAL_ELAPSED_NAME = "ProgressReportIntervalElapsed"
 Name of ProgressReportIntervalElapsed event. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::PROGRESS_REPORT_INTERVAL_UPDATED_NAME = "ProgressReportIntervalUpdated"
 Name of ProgressReportIntervalUpdated event. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::STREAM_METADATA_EXTRACTED_NAME = "StreamMetadataExtracted"
 Name of StreamMetadataExtracted event. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::SEEK_COMPLETE_NAME = "PlaybackSeeked"
 Name of SeekComplete event. More...
 
static const Fingerprint alexaClientSDK::acsdkAudioPlayer::test::FINGERPRINT = {"com.audioplayer.test", "DEBUG", "0001"}
 Fingerprint for media player. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::FINGERPRINT_KEY = "fingerprint"
 Key for "fingerprint" in AudioPlayer configurations. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::FINGERPRINT_PACKAGE_KEY = "package"
 JSON key for "package" in fingerprint configuration. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::FINGERPRINT_BUILD_TYPE_KEY = "buildType"
 JSON key for "buildType" in fingerprint configuration. More...
 
static const std::string alexaClientSDK::acsdkAudioPlayer::test::FINGERPRINT_VERSION_NUMBER_KEY = "versionNumber"
 JSON key for "versionNumber" in fingerprint configuration. More...
 
static const std::vector< std::string > alexaClientSDK::acsdkAudioPlayer::test::EVENTS_WITH_REPORTS
 List of event messages expected to have PlaybackReports field. More...
 

Macro Definition Documentation

◆ LX

#define LX (   event)    alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)

Create a LogEntry using this file's TAG and the specified event string.

Parameters
Theevent string for this LogEntry.

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