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

Classes

class  MockMediaPlayer
 A mock MediaPlayer for unit tests. More...
 
class  MockMediaPlayerHelper
 

Functions

static const std::chrono::milliseconds DEFAULT_TIME (50)
 Default time parameter. More...
 
 TEST (PlaybackContextTest, test_validateHeadersWithEmptyAndValidData)
 
 TEST (PlaybackContextTest, test_validateMixValidInvalidHeaders)
 
 TEST (PlaybackContextTest, test_validateHeadersWithMaxValueSize)
 
 TEST (PlaybackContextTest, test_headersWithMaxKeySize)
 
 TEST (PlaybackContextTest, test_headersWithMaliciousCharacters)
 
static void notifyPlaybackStarted (std::shared_ptr< MediaPlayerObserverInterface > observer, MediaPlayerInterface::SourceId sourceId, const MediaPlayerState &state)
 
static void notifyPlaybackPaused (std::shared_ptr< MediaPlayerObserverInterface > observer, MediaPlayerInterface::SourceId sourceId, const MediaPlayerState &state)
 
static void notifyPlaybackResumed (std::shared_ptr< MediaPlayerObserverInterface > observer, MediaPlayerInterface::SourceId sourceId, const MediaPlayerState &state)
 
static void notifyPlaybackStopped (std::shared_ptr< MediaPlayerObserverInterface > observer, MediaPlayerInterface::SourceId sourceId, const MediaPlayerState &state)
 
static void notifyPlaybackFinished (std::shared_ptr< MediaPlayerObserverInterface > observer, MediaPlayerInterface::SourceId sourceId, const MediaPlayerState &state)
 
static void notifyPlaybackError (std::shared_ptr< MediaPlayerObserverInterface > observer, MediaPlayerInterface::SourceId sourceId, const MediaPlayerState &state)
 
static void notifySeekComplete (std::shared_ptr< MediaPlayerObserverInterface > observer, MediaPlayerInterface::SourceId sourceId, const MediaPlayerState &state)
 

Variables

static const std::string AUTHORIZATION = "Authorization"
 
static const std::string COOKIE = "Cookie"
 
static const std::chrono::milliseconds WAIT_LOOP_INTERVAL {1}
 

Function Documentation

◆ DEFAULT_TIME()

static const std::chrono::milliseconds alexaClientSDK::avsCommon::utils::mediaPlayer::test::DEFAULT_TIME ( 50  )
static

Default time parameter.

◆ notifyPlaybackError()

static void alexaClientSDK::avsCommon::utils::mediaPlayer::test::notifyPlaybackError ( std::shared_ptr< MediaPlayerObserverInterface observer,
MediaPlayerInterface::SourceId  sourceId,
const MediaPlayerState state 
)
static

◆ notifyPlaybackFinished()

static void alexaClientSDK::avsCommon::utils::mediaPlayer::test::notifyPlaybackFinished ( std::shared_ptr< MediaPlayerObserverInterface observer,
MediaPlayerInterface::SourceId  sourceId,
const MediaPlayerState state 
)
static

◆ notifyPlaybackPaused()

static void alexaClientSDK::avsCommon::utils::mediaPlayer::test::notifyPlaybackPaused ( std::shared_ptr< MediaPlayerObserverInterface observer,
MediaPlayerInterface::SourceId  sourceId,
const MediaPlayerState state 
)
static

◆ notifyPlaybackResumed()

static void alexaClientSDK::avsCommon::utils::mediaPlayer::test::notifyPlaybackResumed ( std::shared_ptr< MediaPlayerObserverInterface observer,
MediaPlayerInterface::SourceId  sourceId,
const MediaPlayerState state 
)
static

◆ notifyPlaybackStarted()

static void alexaClientSDK::avsCommon::utils::mediaPlayer::test::notifyPlaybackStarted ( std::shared_ptr< MediaPlayerObserverInterface observer,
MediaPlayerInterface::SourceId  sourceId,
const MediaPlayerState state 
)
static

◆ notifyPlaybackStopped()

static void alexaClientSDK::avsCommon::utils::mediaPlayer::test::notifyPlaybackStopped ( std::shared_ptr< MediaPlayerObserverInterface observer,
MediaPlayerInterface::SourceId  sourceId,
const MediaPlayerState state 
)
static

◆ notifySeekComplete()

static void alexaClientSDK::avsCommon::utils::mediaPlayer::test::notifySeekComplete ( std::shared_ptr< MediaPlayerObserverInterface observer,
MediaPlayerInterface::SourceId  sourceId,
const MediaPlayerState state 
)
static

◆ TEST() [1/5]

alexaClientSDK::avsCommon::utils::mediaPlayer::test::TEST ( PlaybackContextTest  ,
test_validateHeadersWithEmptyAndValidData   
)

◆ TEST() [2/5]

alexaClientSDK::avsCommon::utils::mediaPlayer::test::TEST ( PlaybackContextTest  ,
test_validateMixValidInvalidHeaders   
)

◆ TEST() [3/5]

alexaClientSDK::avsCommon::utils::mediaPlayer::test::TEST ( PlaybackContextTest  ,
test_validateHeadersWithMaxValueSize   
)

◆ TEST() [4/5]

alexaClientSDK::avsCommon::utils::mediaPlayer::test::TEST ( PlaybackContextTest  ,
test_headersWithMaxKeySize   
)

◆ TEST() [5/5]

alexaClientSDK::avsCommon::utils::mediaPlayer::test::TEST ( PlaybackContextTest  ,
test_headersWithMaliciousCharacters   
)

Variable Documentation

◆ AUTHORIZATION

const std::string alexaClientSDK::avsCommon::utils::mediaPlayer::test::AUTHORIZATION = "Authorization"
static

◆ COOKIE

const std::string alexaClientSDK::avsCommon::utils::mediaPlayer::test::COOKIE = "Cookie"
static

◆ WAIT_LOOP_INTERVAL

const std::chrono::milliseconds alexaClientSDK::avsCommon::utils::mediaPlayer::test::WAIT_LOOP_INTERVAL {1}
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