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

Classes

class  ExternalMediaPlayerTest
 
class  MockExternalMediaAdapterHandler
 Mock class for ExternalMediaPlayerAdapterHandler. More...
 
class  MockRenderPlayerInfoCardsProviderRegistrar
 

Typedefs

using PlayParams = ExternalMediaAdapterHandlerInterface::PlayParams
 

Functions

 TEST_F (ExternalMediaPlayerTest, testHandleAuthorization)
 
 TEST_F (ExternalMediaPlayerTest, testHandleLogin)
 
 TEST_F (ExternalMediaPlayerTest, testHandleLogout)
 
 TEST_F (ExternalMediaPlayerTest, testHandlePlay)
 
 TEST_F (ExternalMediaPlayerTest, testHandlePlayControl)
 
 TEST_F (ExternalMediaPlayerTest, testHandleSeek)
 
 TEST_F (ExternalMediaPlayerTest, testHandleAdjustSeek)
 
 TEST_F (ExternalMediaPlayerTest, testHandleGetAdapterStates)
 
 TEST_F (ExternalMediaPlayerTest, testHandleGetAdapterState)
 
 TEST_F (ExternalMediaPlayerTest, testHandleSpeakerChange)
 
static std::chrono::milliseconds MY_WAIT_TIMEOUT (5000)
 Plenty of time for a test to complete. More...
 
static const std::string MESSAGE_ID_TEST ("MessageId_Test")
 Message Id for testing. More...
 
static const std::string MESSAGE_ID_TEST2 ("MessageId_Test2")
 
static const std::string DIALOG_REQUEST_ID_TEST ("DialogId_Test")
 Dialog Request Id for testing. More...
 
static const std::string TAG ("ExternalMediaPlayerTest")
 String to identify log entries originating from this file. More...
 
static const std::string MSP1_LOCAL_PLAYER_ID ("MSP1_LOCAL_PLAYER_ID")
 Music service provider id 1. More...
 
static const std::string MSP1_PLAYER_ID ("MSP1_PLAYERID")
 Cloud assigned playerId for this MSP. More...
 
static const std::string MSP1_SKILLTOKEN ("MSP1_SKILLTOKEN")
 Associated skillToken for this MSP. More...
 
static const std::string MSP2_LOCAL_PLAYER_ID ("MSP2_LOCAL_PLAYER_ID")
 Music service provider id 2. More...
 
static const std::string MSP2_PLAYER_ID ("MSP2_PLAYERID")
 Cloud assigned playerId for this MSP. More...
 
static const std::string MSP2_SKILLTOKEN ("MSP2_SKILLTOKEN")
 Associated skillToken for this MSP. More...
 
 MATCHER_P2 (EventNamed, expectedNameSpace, expectedName, "")
 
static AdapterState createAdapterState ()
 
static std::string createAuthorizeDiscoveredPlayersPayload (std::unordered_set< std::string > players=std::unordered_set< std::string >())
 
static std::string createPlayerJson (const std::string &localPlayerId, bool authorized, const std::string &playerId, const std::string &skillToken)
 
static std::string getIdleSessionStateJson (std::string agent)
 
static std::string createPlayPayloadWithParseError (const std::string &playContext, int index, int64_t offsetInMilliseconds, const std::string &playerId, const std::string &skillToken, const std::string &playbackSessionId, const std::string &navigation, bool preload)
 
static std::string createPayloadWithPlayerId (const std::string &playerId)
 
static std::string createPlayPayload (const std::string &playContext, int index, int64_t offsetInMilliseconds, const std::string &playerId, const std::string &skillToken, const std::string &playbackSessionId, const std::string &navigation, bool preload)
 
static std::string createPlayPayloadWithPlayRequestor (const std::string &playContext, int index, int64_t offsetInMilliseconds, const std::string &playerId, const std::string &skillToken, const std::string &playbackSessionId, const std::string &navigation, bool preload, const PlayRequestor &playRequestor)
 
static std::string createPlayPayloadNoContext (int index, int64_t offsetInMilliseconds, const std::string &playerId, const std::string &skillToken, const std::string &playbackSessionId, const std::string &navigation, bool preload)
 
static std::string createPlayPayloadNoPlayerId (const std::string &playContext, int index, int64_t offsetInMilliseconds, const std::string &skillToken, const std::string &playbackSessionId, const std::string &navigation, bool preload)
 
static std::string createPlayPayloadNoIndex (const std::string &playContext, int64_t offsetInMilliseconds, const std::string &playerId, const std::string &skillToken, const std::string &playbackSessionId, const std::string &navigation, bool preload)
 
static std::string createPlayPayloadNoOffset (const std::string &playContext, int index, const std::string &playerId, const std::string &skillToken, const std::string &playbackSessionId, const std::string &navigation, bool preload)
 
static std::string createLoginPayload (const std::string &accessToken, const std::string &userName, int64_t refreshInterval, bool forceLogin, const std::string &playerId)
 
static std::string createSeekPayload (int64_t timeOffset, const std::string &playerId, bool adjustSeek)
 
 TEST_F (ExternalMediaPlayerTest, test_createWithNullPointers)
 
 TEST_F (ExternalMediaPlayerTest, test_getConfiguration)
 
 TEST_F (ExternalMediaPlayerTest, test_callingProvideSessionState)
 
 TEST_F (ExternalMediaPlayerTest, test_callingProvidePlaybackState)
 
 TEST_F (ExternalMediaPlayerTest, test_playParserError)
 
 TEST_F (ExternalMediaPlayerTest, test_playNoAdapter)
 
 TEST_F (ExternalMediaPlayerTest, test_playNoPlayContext)
 
 TEST_F (ExternalMediaPlayerTest, test_playNoPlayerId)
 
 TEST_F (ExternalMediaPlayerTest, test_playNoOffset)
 
 TEST_F (ExternalMediaPlayerTest, testPlaywithPlayRequestor)
 
 TEST_F (ExternalMediaPlayerTest, test_playNoIndex)
 
 TEST_F (ExternalMediaPlayerTest, test_logout)
 
 TEST_F (ExternalMediaPlayerTest, test_login)
 
 TEST_F (ExternalMediaPlayerTest, test_loginStateChangeObserverIsNotified)
 
 TEST_F (ExternalMediaPlayerTest, test_playbackStateChangeObserverIsNotified)
 
 TEST_F (ExternalMediaPlayerTest, test_loginStateChangeObserverRemoval)
 
 TEST_F (ExternalMediaPlayerTest, test_playbackStateChangeObserverRemoval)
 
 TEST_F (ExternalMediaPlayerTest, test_play)
 
 TEST_F (ExternalMediaPlayerTest, test_pause)
 
 TEST_F (ExternalMediaPlayerTest, testStop)
 
 TEST_F (ExternalMediaPlayerTest, test_stop)
 
 TEST_F (ExternalMediaPlayerTest, test_next)
 
 TEST_F (ExternalMediaPlayerTest, test_previous)
 
 TEST_F (ExternalMediaPlayerTest, test_startOver)
 
 TEST_F (ExternalMediaPlayerTest, test_rewind)
 
 TEST_F (ExternalMediaPlayerTest, test_fastForward)
 
 TEST_F (ExternalMediaPlayerTest, test_enableRepeatOne)
 
 TEST_F (ExternalMediaPlayerTest, test_enableRepeat)
 
 TEST_F (ExternalMediaPlayerTest, test_disableRepeat)
 
 TEST_F (ExternalMediaPlayerTest, test_enableShuffle)
 
 TEST_F (ExternalMediaPlayerTest, test_disableShuffle)
 
 TEST_F (ExternalMediaPlayerTest, test_favorite)
 
 TEST_F (ExternalMediaPlayerTest, test_unfavorite)
 
 TEST_F (ExternalMediaPlayerTest, test_incorrectDirective)
 
 TEST_F (ExternalMediaPlayerTest, test_seekFailure)
 
 TEST_F (ExternalMediaPlayerTest, test_seekSuccess)
 
 TEST_F (ExternalMediaPlayerTest, test_adjustSeekFailure)
 
 TEST_F (ExternalMediaPlayerTest, test_adjustSeekFailure2)
 
 TEST_F (ExternalMediaPlayerTest, test_adjustSeekSuccess)
 
static void verifyAuthorizationCompletePayload (std::shared_ptr< MessageRequest > request, std::unordered_map< std::string, std::string > expectedAuthorized, std::unordered_set< std::string > expectedDeauthorized=std::unordered_set< std::string >())
 
 TEST_F (ExternalMediaPlayerTest, testReportDiscoveredPlayers)
 
 TEST_F (ExternalMediaPlayerTest, testTimer_AuthorizeDiscoveredPlayersSuccess)
 
 TEST_F (ExternalMediaPlayerTest, testMultipleAuthorizeDiscoveredPlayersSuccess)
 
 TEST_F (ExternalMediaPlayerTest, testSetPlayerInFocusSucceedsForAuthorized)
 
 TEST_F (ExternalMediaPlayerTest, testSetPlayerInFocusFailsForAuthorized)
 
 TEST_F (ExternalMediaPlayerTest, testSetPlayerInFocusNotfiesTemplateRuntimeObserver)
 
 TEST_F (ExternalMediaPlayerTest, testSamePlayerIdWhenHandleAuthorizedSuccess)
 
 TEST_F (ExternalMediaPlayerTest, testAddAdapterHandlerDiscovery)
 
 TEST_F (ExternalMediaPlayerTest, testAddAdapterHandlerDiscoveryAggregatedUntilStartup)
 

Variables

static const std::string PLAYER_ID = "testPlayerId"
 
static const std::string PLAY_CONTEXT_TOKEN = "testContextToken"
 
static const std::string SKILL_TOKEN = "testSkillToken"
 
static const std::string SESSION_ID = "testSessionId"
 
static const std::string PLAYBACK_TARGET = "testPlaybackTarget"
 
static const PlayRequestor PLAY_REQUESTOR {.type = "ALERT", .id = "123"}
 
static const std::chrono::milliseconds PLAY_OFFSET {100}
 
static const unsigned int PROVIDE_STATE_TOKEN_TEST {1}
 Provide State Token for testing. More...
 
static const std::string EXTERNALMEDIAPLAYER_STATE_NAMESPACE = "ExternalMediaPlayer"
 
static const std::string PLAYBACKSTATEREPORTER_STATE_NAMESPACE = "Alexa.PlaybackStateReporter"
 
static const std::string EXTERNALMEDIAPLAYER_NAME = "ExternalMediaPlayerState"
 
static const std::string PLAYBACKSTATEREPORTER_NAME = "playbackState"
 
static const std::string EXTERNALMEDIAPLAYER_NAMESPACE = "ExternalMediaPlayer"
 
static const std::string PLAYBACKCONTROLLER_NAMESPACE = "Alexa.PlaybackController"
 
static const std::string PLAYLISTCONTROLLER_NAMESPACE = "Alexa.PlaylistController"
 
static const std::string SEEKCONTROLLER_NAMESPACE = "Alexa.SeekController"
 
static const std::string FAVORITESCONTROLLER_NAMESPACE = "Alexa.FavoritesController"
 
static const std::string PLAYER_USER_NAME = "userName"
 
static const std::string PLAYER_TRACK = "testTrack"
 
static const std::string PLAYER_STATE = "IDLE"
 
static const NamespaceAndName PLAY_DIRECTIVE {EXTERNALMEDIAPLAYER_NAMESPACE, "Play"}
 
static const NamespaceAndName LOGIN_DIRECTIVE {EXTERNALMEDIAPLAYER_NAMESPACE, "Login"}
 
static const NamespaceAndName LOGOUT_DIRECTIVE {EXTERNALMEDIAPLAYER_NAMESPACE, "Logout"}
 
static const NamespaceAndName AUTHORIZEDISCOVEREDPLAYERS_DIRECTIVE
 
static const NamespaceAndName RESUME_DIRECTIVE {PLAYBACKCONTROLLER_NAMESPACE, "Play"}
 
static const NamespaceAndName PAUSE_DIRECTIVE {PLAYBACKCONTROLLER_NAMESPACE, "Pause"}
 
static const NamespaceAndName STOP_DIRECTIVE {PLAYBACKCONTROLLER_NAMESPACE, "Stop"}
 
static const NamespaceAndName NEXT_DIRECTIVE {PLAYBACKCONTROLLER_NAMESPACE, "Next"}
 
static const NamespaceAndName PREVIOUS_DIRECTIVE {PLAYBACKCONTROLLER_NAMESPACE, "Previous"}
 
static const NamespaceAndName STARTOVER_DIRECTIVE {PLAYBACKCONTROLLER_NAMESPACE, "StartOver"}
 
static const NamespaceAndName REWIND_DIRECTIVE {PLAYBACKCONTROLLER_NAMESPACE, "Rewind"}
 
static const NamespaceAndName FASTFORWARD_DIRECTIVE {PLAYBACKCONTROLLER_NAMESPACE, "FastForward"}
 
static const NamespaceAndName ENABLEREPEATONE_DIRECTIVE {PLAYLISTCONTROLLER_NAMESPACE, "EnableRepeatOne"}
 
static const NamespaceAndName ENABLEREPEAT_DIRECTIVE {PLAYLISTCONTROLLER_NAMESPACE, "EnableRepeat"}
 
static const NamespaceAndName DISABLEREPEAT_DIRECTIVE {PLAYLISTCONTROLLER_NAMESPACE, "DisableRepeat"}
 
static const NamespaceAndName ENABLESHUFFLE_DIRECTIVE {PLAYLISTCONTROLLER_NAMESPACE, "EnableShuffle"}
 
static const NamespaceAndName DISABLESHUFFLE_DIRECTIVE {PLAYLISTCONTROLLER_NAMESPACE, "DisableShuffle"}
 
static const NamespaceAndName SEEK_DIRECTIVE {SEEKCONTROLLER_NAMESPACE, "SetSeekPosition"}
 
static const NamespaceAndName ADJUSTSEEK_DIRECTIVE {SEEKCONTROLLER_NAMESPACE, "AdjustSeekPosition"}
 
static const NamespaceAndName FAVORITE_DIRECTIVE {FAVORITESCONTROLLER_NAMESPACE, "Favorite"}
 
static const NamespaceAndName UNFAVORITE_DIRECTIVE {FAVORITESCONTROLLER_NAMESPACE, "Unfavorite"}
 
static const NamespaceAndName SESSION_STATE {EXTERNALMEDIAPLAYER_STATE_NAMESPACE, EXTERNALMEDIAPLAYER_NAME}
 
static const NamespaceAndName PLAYBACK_STATE {PLAYBACKSTATEREPORTER_STATE_NAMESPACE, PLAYBACKSTATEREPORTER_NAME}
 
static const NamespaceAndName REPORT_DISCOVERED_PLAYERS {EXTERNALMEDIAPLAYER_NAMESPACE, "ReportDiscoveredPlayers"}
 
static const NamespaceAndName AUTHORIZATION_COMPLETE {EXTERNALMEDIAPLAYER_NAMESPACE, "AuthorizationComplete"}
 
static const PlayRequestor testPlayRequestor {.type = "ALERT", .id = "123"}
 
static const std::string IDLE_PLAYBACK_STATE
 

Typedef Documentation

◆ PlayParams

Function Documentation

◆ createAdapterState()

static AdapterState alexaClientSDK::acsdkExternalMediaPlayer::test::createAdapterState ( )
static

Method to create an adapter state struct response to getState();

Returns
an adpater state partially filled with test values

◆ createAuthorizeDiscoveredPlayersPayload()

static std::string alexaClientSDK::acsdkExternalMediaPlayer::test::createAuthorizeDiscoveredPlayersPayload ( std::unordered_set< std::string >  players = std::unordered_set<std::string>())
static

Method to create AuthorizeDiscoveredPlayers payload.

Parameters
playersA set of players JSON objects.
Returns
A string representation of the payload.

◆ createLoginPayload()

static std::string alexaClientSDK::acsdkExternalMediaPlayer::test::createLoginPayload ( const std::string &  accessToken,
const std::string &  userName,
int64_t  refreshInterval,
bool  forceLogin,
const std::string &  playerId 
)
static

Method to create a Login payload with accessToken, userName, refresh interval, forceLogin, playerId.

Parameters
accessTokenThe access context of the user identifier.
userNameThe userName of the user logging in.
refreshIntervalThe duration in milliseconds for which the accessToken is valid.
forceLoginbool which signifies if the adapter has to a force a login or merely cache the access token.
playerIdThe business name of the player.
Returns
A string representation of the payload.

◆ createPayloadWithPlayerId()

static std::string alexaClientSDK::acsdkExternalMediaPlayer::test::createPayloadWithPlayerId ( const std::string &  playerId)
static

Method to create payload with only playerId.

Parameters
playerIdThe business name of the player.
Returns
A string representation of the payload.

◆ createPlayerJson()

static std::string alexaClientSDK::acsdkExternalMediaPlayer::test::createPlayerJson ( const std::string &  localPlayerId,
bool  authorized,
const std::string &  playerId,
const std::string &  skillToken 
)
static

Create the players json object.

Parameters
localPlayerIdThe localPlayerId.
authorizedWhether the player is authorized.
playerIdThe cloud assigned playerId.
skillTokenThe skillToken.
Returns
A string representation of the payload.

◆ createPlayPayload()

static std::string alexaClientSDK::acsdkExternalMediaPlayer::test::createPlayPayload ( const std::string &  playContext,
int  index,
int64_t  offsetInMilliseconds,
const std::string &  playerId,
const std::string &  skillToken,
const std::string &  playbackSessionId,
const std::string &  navigation,
bool  preload 
)
static

Method to create a Play payload with playContext, index, offsetInMilliseconds, playerId.

Parameters
playContextPlay context {Track/playlist/album/artist/station/podcast} identifier.
indexThe index of the media item in the container, if the container is indexable.
offsetInMillisecondsThe offset position within media item, in milliseconds.
playerIdThe business name of the player.
Returns
A string representation of the payload.

◆ createPlayPayloadNoContext()

static std::string alexaClientSDK::acsdkExternalMediaPlayer::test::createPlayPayloadNoContext ( int  index,
int64_t  offsetInMilliseconds,
const std::string &  playerId,
const std::string &  skillToken,
const std::string &  playbackSessionId,
const std::string &  navigation,
bool  preload 
)
static

Method to create a Play payload with only index, offsetInMilliseconds, playerId.

Parameters
indexThe index of the media item in the container, if the container is indexable.
offsetInMillisecondsThe offset position within media item, in milliseconds.
playerIdThe business name of the player.
Returns
A string representation of the payload.

◆ createPlayPayloadNoIndex()

static std::string alexaClientSDK::acsdkExternalMediaPlayer::test::createPlayPayloadNoIndex ( const std::string &  playContext,
int64_t  offsetInMilliseconds,
const std::string &  playerId,
const std::string &  skillToken,
const std::string &  playbackSessionId,
const std::string &  navigation,
bool  preload 
)
static

Method to create a Play payload with only playContext, offsetInMilliseconds and playerId.

Parameters
playContextPlay context {Track/playlist/album/artist/station/podcast} identifier.
offsetInMillisecondsThe offset position within media item, in milliseconds.
playerIdThe business name of the player.
Returns
A string representation of the payload.

◆ createPlayPayloadNoOffset()

static std::string alexaClientSDK::acsdkExternalMediaPlayer::test::createPlayPayloadNoOffset ( const std::string &  playContext,
int  index,
const std::string &  playerId,
const std::string &  skillToken,
const std::string &  playbackSessionId,
const std::string &  navigation,
bool  preload 
)
static

Method to create a Play payload with only playContext, index, playerId.

Parameters
playContextPlay context {Track/playlist/album/artist/station/podcast} identifier.
indexThe index of the media item in the container, if the container is indexable.
playerIdThe business name of the player.
Returns
A string representation of the payload.

◆ createPlayPayloadNoPlayerId()

static std::string alexaClientSDK::acsdkExternalMediaPlayer::test::createPlayPayloadNoPlayerId ( const std::string &  playContext,
int  index,
int64_t  offsetInMilliseconds,
const std::string &  skillToken,
const std::string &  playbackSessionId,
const std::string &  navigation,
bool  preload 
)
static

Method to create a Play payload with only playContext, index, offsetInMilliseconds.

Parameters
playContextPlay context {Track/playlist/album/artist/station/podcast} identifier.
indexThe index of the media item in the container, if the container is indexable.
offsetInMillisecondsThe offset position within media item, in milliseconds.
Returns
A string representation of the payload.

◆ createPlayPayloadWithParseError()

static std::string alexaClientSDK::acsdkExternalMediaPlayer::test::createPlayPayloadWithParseError ( const std::string &  playContext,
int  index,
int64_t  offsetInMilliseconds,
const std::string &  playerId,
const std::string &  skillToken,
const std::string &  playbackSessionId,
const std::string &  navigation,
bool  preload 
)
static

Method to create payload with parse error.

Parameters
playContextPlay context {Track/playlist/album/artist/station/podcast} identifier.
indexThe index of the media item in the container, if the container is indexable.
offsetInMillisecondsThe offset position within media item, in milliseconds.
playerIdThe business name of the player.
Returns
A string representation of the payload.

◆ createPlayPayloadWithPlayRequestor()

static std::string alexaClientSDK::acsdkExternalMediaPlayer::test::createPlayPayloadWithPlayRequestor ( const std::string &  playContext,
int  index,
int64_t  offsetInMilliseconds,
const std::string &  playerId,
const std::string &  skillToken,
const std::string &  playbackSessionId,
const std::string &  navigation,
bool  preload,
const PlayRequestor playRequestor 
)
static

Method to create a Play payload with playContext, index, offsetInMilliseconds, playerId, and playRequestor.

Parameters
playContextPlay context {Track/playlist/album/artist/station/podcast} identifier.
indexThe index of the media item in the container, if the container is indexable.
offsetInMillisecondsThe offset position within media item, in milliseconds.
playerIdThe business name of the player.
skillTokenThe token identifying the domain or skill associated with this player.
playbackSessionIdA UUID associated with the most recent Play directive.
navigationCommunicates desired visual display behavior for the app associated with playback.
preloadIndicates if Play directive is intended to preload the identified content only but not begin playback.
playRequestorThe playRequestor object of the play directive.
Returns
A string representation of the payload.

◆ createSeekPayload()

static std::string alexaClientSDK::acsdkExternalMediaPlayer::test::createSeekPayload ( int64_t  timeOffset,
const std::string &  playerId,
bool  adjustSeek 
)
static

Method to create a Seek payload.

Parameters
timeOffsetThe offset to seek to.
playerIdThe business name of the player.
adjustSeektrue offset adjusts seek relative to current position false offset is interpreted as an absolute offset.
Returns
A string representation of the payload.

◆ DIALOG_REQUEST_ID_TEST()

static const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::DIALOG_REQUEST_ID_TEST ( "DialogId_Test"  )
static

Dialog Request Id for testing.

◆ getIdleSessionStateJson()

static std::string alexaClientSDK::acsdkExternalMediaPlayer::test::getIdleSessionStateJson ( std::string  agent)
static

Get idle session state json object

Returns
A string representation of idle session state json object

◆ MATCHER_P2()

alexaClientSDK::acsdkExternalMediaPlayer::test::MATCHER_P2 ( EventNamed  ,
expectedNameSpace  ,
expectedName  ,
""   
)

Custom matcher to check an event of a certain name is sent. Returns true if the event with that name is sent.

◆ MESSAGE_ID_TEST()

static const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::MESSAGE_ID_TEST ( "MessageId_Test"  )
static

Message Id for testing.

◆ MESSAGE_ID_TEST2()

static const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::MESSAGE_ID_TEST2 ( "MessageId_Test2"  )
static

◆ MSP1_LOCAL_PLAYER_ID()

static const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::MSP1_LOCAL_PLAYER_ID ( "MSP1_LOCAL_PLAYER_ID"  )
static

Music service provider id 1.

◆ MSP1_PLAYER_ID()

static const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::MSP1_PLAYER_ID ( "MSP1_PLAYERID"  )
static

Cloud assigned playerId for this MSP.

◆ MSP1_SKILLTOKEN()

static const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::MSP1_SKILLTOKEN ( "MSP1_SKILLTOKEN"  )
static

Associated skillToken for this MSP.

◆ MSP2_LOCAL_PLAYER_ID()

static const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::MSP2_LOCAL_PLAYER_ID ( "MSP2_LOCAL_PLAYER_ID"  )
static

Music service provider id 2.

◆ MSP2_PLAYER_ID()

static const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::MSP2_PLAYER_ID ( "MSP2_PLAYERID"  )
static

Cloud assigned playerId for this MSP.

◆ MSP2_SKILLTOKEN()

static const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::MSP2_SKILLTOKEN ( "MSP2_SKILLTOKEN"  )
static

Associated skillToken for this MSP.

◆ MY_WAIT_TIMEOUT()

static std::chrono::milliseconds alexaClientSDK::acsdkExternalMediaPlayer::test::MY_WAIT_TIMEOUT ( 5000  )
static

Plenty of time for a test to complete.

◆ TAG()

static const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::TAG ( "ExternalMediaPlayerTest"  )
static

String to identify log entries originating from this file.

◆ TEST_F() [1/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
testHandleAuthorization   
)

Test authorization passthrough

◆ TEST_F() [2/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
testHandleLogin   
)

Test login passthrough

◆ TEST_F() [3/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
testHandleLogout   
)

Test logout passthrough

◆ TEST_F() [4/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
testHandlePlay   
)

Test play passthrough

◆ TEST_F() [5/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
testHandlePlayControl   
)

Test play control passthrough

◆ TEST_F() [6/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
testHandleSeek   
)

Test seek passthrough

◆ TEST_F() [7/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
testHandleAdjustSeek   
)

Test adjust seek passthrough

◆ TEST_F() [8/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
testHandleGetAdapterStates   
)

Test get adapter states passthrough

◆ TEST_F() [9/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
testHandleGetAdapterState   
)

Test get adapter states passthrough

◆ TEST_F() [10/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
testHandleSpeakerChange   
)

Test speaker change passthrough

◆ TEST_F() [11/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_createWithNullPointers   
)

Test create() with nullptrs

◆ TEST_F() [12/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_getConfiguration   
)

Test getConfiguration on an ExternalMediaPlayer. The operation succeeds.

◆ TEST_F() [13/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_callingProvideSessionState   
)

Test session state information on an ExternalMediaPlayer .

◆ TEST_F() [14/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_callingProvidePlaybackState   
)

Test playback state information on an ExternalMediaPlayer.

◆ TEST_F() [15/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_playParserError   
)

Test payload with parse error in ExternalMediaPlayer. This should fail.

◆ TEST_F() [16/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_playNoAdapter   
)

Test PLAY payload without an adapter in ExternalMediaPlayer. This should fail.

◆ TEST_F() [17/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_playNoPlayContext   
)

Test PLAY payload without play context in ExternalMediaPlayer. This should fail.

◆ TEST_F() [18/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_playNoPlayerId   
)

Test PLAY payload without playerId in ExternalMediaPlayer. This should fail.

◆ TEST_F() [19/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_playNoOffset   
)

Test PLAY payload without offsetin ExternalMediaPlayer. This should succeed.

◆ TEST_F() [20/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
testPlaywithPlayRequestor   
)

Test PLAY payload with playRequestor in ExternalMediaPlayer. This should succeed.

◆ TEST_F() [21/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_playNoIndex   
)

Test PLAY payload without index in ExternalMediaPlayer. This should succeed.

◆ TEST_F() [22/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_logout   
)

Test successful logout.

◆ TEST_F() [23/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_login   
)

Test successful login.

◆ TEST_F() [24/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_loginStateChangeObserverIsNotified   
)

Test observers of session state are correctly notified

◆ TEST_F() [25/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_playbackStateChangeObserverIsNotified   
)

Test observers of playback state are correctly notified

◆ TEST_F() [26/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_loginStateChangeObserverRemoval   
)

Test that after removal login observers are not called anymore

◆ TEST_F() [27/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_playbackStateChangeObserverRemoval   
)

Test that after removal playback state observers are not called anymore

◆ TEST_F() [28/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_play   
)

Test successful resume.

◆ TEST_F() [29/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_pause   
)

Test successful pause.

◆ TEST_F() [30/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
testStop   
)

Test successful stop.

◆ TEST_F() [31/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_stop   
)

Test successful stop.

◆ TEST_F() [32/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_next   
)

Test successful next.

◆ TEST_F() [33/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_previous   
)

Test successful previous.

◆ TEST_F() [34/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_startOver   
)

Test successful StarOver.

◆ TEST_F() [35/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_rewind   
)

Test successful rewind.

◆ TEST_F() [36/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_fastForward   
)

Test successful fast-forward.

◆ TEST_F() [37/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_enableRepeatOne   
)

Test successful EnableRepeatOne.

◆ TEST_F() [38/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_enableRepeat   
)

Test successful EnableRepeat.

◆ TEST_F() [39/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_disableRepeat   
)

Test successful DisableRepeat.

◆ TEST_F() [40/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_enableShuffle   
)

Test successful EnableShuffle.

◆ TEST_F() [41/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_disableShuffle   
)

Test successful DisableRepeat.

◆ TEST_F() [42/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_favorite   
)

Test successful Favorite.

◆ TEST_F() [43/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_unfavorite   
)

Test successful UnFavorite.

◆ TEST_F() [44/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_incorrectDirective   
)

Test incorrect directive.

◆ TEST_F() [45/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_seekFailure   
)

Test Seek failure passing incorrect field in payload.

◆ TEST_F() [46/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_seekSuccess   
)

Test successful Seek.

◆ TEST_F() [47/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_adjustSeekFailure   
)

Test AdjustSeek failure incorrect field in payload.

◆ TEST_F() [48/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_adjustSeekFailure2   
)

Test AdjustSeek failure passing in an incorrect offset.

◆ TEST_F() [49/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
test_adjustSeekSuccess   
)

Test AdjustSeek successful passing in correct payload and offset.

◆ TEST_F() [50/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
testReportDiscoveredPlayers   
)

Test that ReportDiscoveredPlayers is sent.

◆ TEST_F() [51/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
testTimer_AuthorizeDiscoveredPlayersSuccess   
)

Test successful AuthorizeDiscoveredPlayers directive processing.

◆ TEST_F() [52/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
testMultipleAuthorizeDiscoveredPlayersSuccess   
)

Test successful AuthorizeDiscoveredPlayers directive processing of multiple directives.

◆ TEST_F() [53/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
testSetPlayerInFocusSucceedsForAuthorized   
)

Test setPlayerInFocus succeeds for authorized players.

◆ TEST_F() [54/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
testSetPlayerInFocusFailsForAuthorized   
)

Test setPlayerInFocus fails for unauthorized players.

◆ TEST_F() [55/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
testSetPlayerInFocusNotfiesTemplateRuntimeObserver   
)

Test setPlayerInFocus notifies any RenderPlayerInfoCardsObservers.

◆ TEST_F() [56/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
testSamePlayerIdWhenHandleAuthorizedSuccess   
)

Test playerId is the same in sessionState and playbackState on handleAuthorized success.

◆ TEST_F() [57/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
testAddAdapterHandlerDiscovery   
)

Test adding an adapter handler and discovering it

◆ TEST_F() [58/58]

alexaClientSDK::acsdkExternalMediaPlayer::test::TEST_F ( ExternalMediaPlayerTest  ,
testAddAdapterHandlerDiscoveryAggregatedUntilStartup   
)

Test sending ReportDiscoveredPlayers aggregates adapters until startup.

◆ verifyAuthorizationCompletePayload()

static void alexaClientSDK::acsdkExternalMediaPlayer::test::verifyAuthorizationCompletePayload ( std::shared_ptr< MessageRequest request,
std::unordered_map< std::string, std::string >  expectedAuthorized,
std::unordered_set< std::string >  expectedDeauthorized = std::unordered_set<std::string>() 
)
static

Checks that the AuthorizationComplete event contains the expected authorized and deauthorized fields.

Parameters
requestThe AuthorizationComplete event sent.
expectedAuthorizedThe expected list of playerId to skillToken pairs to verify against.
expectedDeauthorizedThe expected list of deauthorized localPlayerId the verify against.

Variable Documentation

◆ ADJUSTSEEK_DIRECTIVE

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::ADJUSTSEEK_DIRECTIVE {SEEKCONTROLLER_NAMESPACE, "AdjustSeekPosition"}
static

◆ AUTHORIZATION_COMPLETE

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::AUTHORIZATION_COMPLETE {EXTERNALMEDIAPLAYER_NAMESPACE, "AuthorizationComplete"}
static

◆ AUTHORIZEDISCOVEREDPLAYERS_DIRECTIVE

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::AUTHORIZEDISCOVEREDPLAYERS_DIRECTIVE
static
Initial value:
"AuthorizeDiscoveredPlayers"}
static const std::string EXTERNALMEDIAPLAYER_NAMESPACE
Definition: ExternalMediaPlayerTest.cpp:92

◆ DISABLEREPEAT_DIRECTIVE

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::DISABLEREPEAT_DIRECTIVE {PLAYLISTCONTROLLER_NAMESPACE, "DisableRepeat"}
static

◆ DISABLESHUFFLE_DIRECTIVE

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::DISABLESHUFFLE_DIRECTIVE {PLAYLISTCONTROLLER_NAMESPACE, "DisableShuffle"}
static

◆ ENABLEREPEAT_DIRECTIVE

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::ENABLEREPEAT_DIRECTIVE {PLAYLISTCONTROLLER_NAMESPACE, "EnableRepeat"}
static

◆ ENABLEREPEATONE_DIRECTIVE

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::ENABLEREPEATONE_DIRECTIVE {PLAYLISTCONTROLLER_NAMESPACE, "EnableRepeatOne"}
static

◆ ENABLESHUFFLE_DIRECTIVE

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::ENABLESHUFFLE_DIRECTIVE {PLAYLISTCONTROLLER_NAMESPACE, "EnableShuffle"}
static

◆ EXTERNALMEDIAPLAYER_NAME

const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::EXTERNALMEDIAPLAYER_NAME = "ExternalMediaPlayerState"
static

◆ EXTERNALMEDIAPLAYER_NAMESPACE

const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::EXTERNALMEDIAPLAYER_NAMESPACE = "ExternalMediaPlayer"
static

◆ EXTERNALMEDIAPLAYER_STATE_NAMESPACE

const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::EXTERNALMEDIAPLAYER_STATE_NAMESPACE = "ExternalMediaPlayer"
static

◆ FASTFORWARD_DIRECTIVE

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::FASTFORWARD_DIRECTIVE {PLAYBACKCONTROLLER_NAMESPACE, "FastForward"}
static

◆ FAVORITE_DIRECTIVE

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::FAVORITE_DIRECTIVE {FAVORITESCONTROLLER_NAMESPACE, "Favorite"}
static

◆ FAVORITESCONTROLLER_NAMESPACE

const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::FAVORITESCONTROLLER_NAMESPACE = "Alexa.FavoritesController"
static

◆ IDLE_PLAYBACK_STATE

const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::IDLE_PLAYBACK_STATE
static

◆ LOGIN_DIRECTIVE

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::LOGIN_DIRECTIVE {EXTERNALMEDIAPLAYER_NAMESPACE, "Login"}
static

◆ LOGOUT_DIRECTIVE

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::LOGOUT_DIRECTIVE {EXTERNALMEDIAPLAYER_NAMESPACE, "Logout"}
static

◆ NEXT_DIRECTIVE

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::NEXT_DIRECTIVE {PLAYBACKCONTROLLER_NAMESPACE, "Next"}
static

◆ PAUSE_DIRECTIVE

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::PAUSE_DIRECTIVE {PLAYBACKCONTROLLER_NAMESPACE, "Pause"}
static

◆ PLAY_CONTEXT_TOKEN

const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::PLAY_CONTEXT_TOKEN = "testContextToken"
static

◆ PLAY_DIRECTIVE

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::PLAY_DIRECTIVE {EXTERNALMEDIAPLAYER_NAMESPACE, "Play"}
static

◆ PLAY_OFFSET

const std::chrono::milliseconds alexaClientSDK::acsdkExternalMediaPlayer::test::PLAY_OFFSET {100}
static

◆ PLAY_REQUESTOR

const PlayRequestor alexaClientSDK::acsdkExternalMediaPlayer::test::PLAY_REQUESTOR {.type = "ALERT", .id = "123"}
static

◆ PLAYBACK_STATE

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::PLAYBACK_STATE {PLAYBACKSTATEREPORTER_STATE_NAMESPACE, PLAYBACKSTATEREPORTER_NAME}
static

◆ PLAYBACK_TARGET

const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::PLAYBACK_TARGET = "testPlaybackTarget"
static

◆ PLAYBACKCONTROLLER_NAMESPACE

const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::PLAYBACKCONTROLLER_NAMESPACE = "Alexa.PlaybackController"
static

◆ PLAYBACKSTATEREPORTER_NAME

const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::PLAYBACKSTATEREPORTER_NAME = "playbackState"
static

◆ PLAYBACKSTATEREPORTER_STATE_NAMESPACE

const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::PLAYBACKSTATEREPORTER_STATE_NAMESPACE = "Alexa.PlaybackStateReporter"
static

◆ PLAYER_ID

const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::PLAYER_ID = "testPlayerId"
static

◆ PLAYER_STATE

const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::PLAYER_STATE = "IDLE"
static

◆ PLAYER_TRACK

const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::PLAYER_TRACK = "testTrack"
static

◆ PLAYER_USER_NAME

const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::PLAYER_USER_NAME = "userName"
static

◆ PLAYLISTCONTROLLER_NAMESPACE

const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::PLAYLISTCONTROLLER_NAMESPACE = "Alexa.PlaylistController"
static

◆ PREVIOUS_DIRECTIVE

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::PREVIOUS_DIRECTIVE {PLAYBACKCONTROLLER_NAMESPACE, "Previous"}
static

◆ PROVIDE_STATE_TOKEN_TEST

const unsigned int alexaClientSDK::acsdkExternalMediaPlayer::test::PROVIDE_STATE_TOKEN_TEST {1}
static

Provide State Token for testing.

◆ REPORT_DISCOVERED_PLAYERS

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::REPORT_DISCOVERED_PLAYERS {EXTERNALMEDIAPLAYER_NAMESPACE, "ReportDiscoveredPlayers"}
static

◆ RESUME_DIRECTIVE

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::RESUME_DIRECTIVE {PLAYBACKCONTROLLER_NAMESPACE, "Play"}
static

◆ REWIND_DIRECTIVE

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::REWIND_DIRECTIVE {PLAYBACKCONTROLLER_NAMESPACE, "Rewind"}
static

◆ SEEK_DIRECTIVE

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::SEEK_DIRECTIVE {SEEKCONTROLLER_NAMESPACE, "SetSeekPosition"}
static

◆ SEEKCONTROLLER_NAMESPACE

const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::SEEKCONTROLLER_NAMESPACE = "Alexa.SeekController"
static

◆ SESSION_ID

const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::SESSION_ID = "testSessionId"
static

◆ SESSION_STATE

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::SESSION_STATE {EXTERNALMEDIAPLAYER_STATE_NAMESPACE, EXTERNALMEDIAPLAYER_NAME}
static

◆ SKILL_TOKEN

const std::string alexaClientSDK::acsdkExternalMediaPlayer::test::SKILL_TOKEN = "testSkillToken"
static

◆ STARTOVER_DIRECTIVE

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::STARTOVER_DIRECTIVE {PLAYBACKCONTROLLER_NAMESPACE, "StartOver"}
static

◆ STOP_DIRECTIVE

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::STOP_DIRECTIVE {PLAYBACKCONTROLLER_NAMESPACE, "Stop"}
static

◆ testPlayRequestor

const PlayRequestor alexaClientSDK::acsdkExternalMediaPlayer::test::testPlayRequestor {.type = "ALERT", .id = "123"}
static

◆ UNFAVORITE_DIRECTIVE

const NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayer::test::UNFAVORITE_DIRECTIVE {FAVORITESCONTROLLER_NAMESPACE, "Unfavorite"}
static

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