AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
List of all members
alexaClientSDK::captions::test::MockCaptionManager Class Reference

#include <MockCaptionManager.h>

Inheritance diagram for alexaClientSDK::captions::test::MockCaptionManager:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::captions::test::MockCaptionManager:
Collaboration graph
[legend]

Public Member Functions

CaptionFrameParseListenerInterface methods
 MOCK_METHOD1 (onParsed, void(const CaptionFrame &))
 
CaptionManagerInterface methods
 MOCK_METHOD1 (setCaptionPresenter, void(const std::shared_ptr< CaptionPresenterInterface > &))
 
 MOCK_METHOD2 (onCaption, void(uint64_t sourceId, const captions::CaptionData &))
 
 MOCK_METHOD1 (setMediaPlayers, void(const std::vector< std::shared_ptr< avsCommon::utils::mediaPlayer::MediaPlayerInterface >> &))
 
 MOCK_METHOD1 (addMediaPlayer, void(const std::shared_ptr< avsCommon::utils::mediaPlayer::MediaPlayerInterface > &))
 
 MOCK_METHOD1 (removeMediaPlayer, void(const std::shared_ptr< avsCommon::utils::mediaPlayer::MediaPlayerInterface > &))
 
 MOCK_CONST_METHOD0 (isEnabled, bool())
 
MediaPlayerObserverInterface methods
 MOCK_METHOD2 (onPlaybackStarted, void(SourceId, const avsCommon::utils::mediaPlayer::MediaPlayerState &))
 
 MOCK_METHOD2 (onPlaybackFinished, void(SourceId, const avsCommon::utils::mediaPlayer::MediaPlayerState &))
 
 MOCK_METHOD4 (onPlaybackError, void(SourceId, const avsCommon::utils::mediaPlayer::ErrorType &, std::string, const avsCommon::utils::mediaPlayer::MediaPlayerState &))
 
 MOCK_METHOD2 (onFirstByteRead, void(SourceId, const avsCommon::utils::mediaPlayer::MediaPlayerState &))
 
- Public Member Functions inherited from alexaClientSDK::captions::CaptionFrameParseListenerInterface
virtual ~CaptionFrameParseListenerInterface ()=default
 
virtual void onParsed (const CaptionFrame &captionFrame)=0
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::utils::mediaPlayer::MediaPlayerObserverInterface
virtual ~MediaPlayerObserverInterface ()=default
 
virtual void onFirstByteRead (SourceId id, const MediaPlayerState &state)=0
 
virtual void onPlaybackStarted (SourceId id, const MediaPlayerState &state)=0
 
virtual void onPlaybackFinished (SourceId id, const MediaPlayerState &state)=0
 
virtual void onPlaybackError (SourceId id, const ErrorType &type, std::string error, const MediaPlayerState &state)=0
 
virtual void onPlaybackPaused (SourceId, const MediaPlayerState &)
 
virtual void onPlaybackResumed (SourceId, const MediaPlayerState &)
 
virtual void onPlaybackStopped (SourceId, const MediaPlayerState &)
 
virtual void onBufferUnderrun (SourceId, const MediaPlayerState &)
 
virtual void onBufferRefilled (SourceId, const MediaPlayerState &)
 
virtual void onBufferingComplete (SourceId, const MediaPlayerState &)
 
virtual void onSeeked (SourceId, const MediaPlayerState &, const MediaPlayerState &)
 
virtual void onTags (SourceId, std::unique_ptr< const VectorOfTags >, const MediaPlayerState &)
 
- Public Member Functions inherited from alexaClientSDK::captions::CaptionManagerInterface
virtual ~CaptionManagerInterface ()=default
 
virtual void onCaption (CaptionFrame::MediaPlayerSourceId sourceId, const CaptionData &captionData)=0
 
virtual void setCaptionPresenter (const std::shared_ptr< CaptionPresenterInterface > &presenter)=0
 
virtual void setMediaPlayers (const std::vector< std::shared_ptr< avsCommon::utils::mediaPlayer::MediaPlayerInterface >> &mediaPlayers)=0
 
virtual void addMediaPlayer (const std::shared_ptr< avsCommon::utils::mediaPlayer::MediaPlayerInterface > &mediaPlayer)=0
 
virtual void removeMediaPlayer (const std::shared_ptr< avsCommon::utils::mediaPlayer::MediaPlayerInterface > &mediaPlayer)=0
 
virtual bool isEnabled () const =0
 

Additional Inherited Members

- Public Types inherited from alexaClientSDK::avsCommon::utils::mediaPlayer::MediaPlayerObserverInterface
enum  TagType {
  TagType::STRING, TagType::UINT, TagType::INT, TagType::DOUBLE,
  TagType::BOOLEAN
}
 The different types of metadata "stream tags". More...
 
using SourceId = MediaPlayerInterface::SourceId
 A type that identifies which source is currently being operated on. More...
 
typedef std::vector< TagKeyValueTypeVectorOfTags
 

Member Function Documentation

◆ MOCK_CONST_METHOD0()

alexaClientSDK::captions::test::MockCaptionManager::MOCK_CONST_METHOD0 ( isEnabled  ,
bool()   
)

◆ MOCK_METHOD1() [1/5]

alexaClientSDK::captions::test::MockCaptionManager::MOCK_METHOD1 ( onParsed  ,
void(const CaptionFrame &)   
)

◆ MOCK_METHOD1() [2/5]

alexaClientSDK::captions::test::MockCaptionManager::MOCK_METHOD1 ( setCaptionPresenter  ,
void(const std::shared_ptr< CaptionPresenterInterface > &)   
)

◆ MOCK_METHOD1() [3/5]

alexaClientSDK::captions::test::MockCaptionManager::MOCK_METHOD1 ( setMediaPlayers  ,
void(const std::vector< std::shared_ptr< avsCommon::utils::mediaPlayer::MediaPlayerInterface >> &)   
)

◆ MOCK_METHOD1() [4/5]

alexaClientSDK::captions::test::MockCaptionManager::MOCK_METHOD1 ( addMediaPlayer  ,
void(const std::shared_ptr< avsCommon::utils::mediaPlayer::MediaPlayerInterface > &)   
)

◆ MOCK_METHOD1() [5/5]

alexaClientSDK::captions::test::MockCaptionManager::MOCK_METHOD1 ( removeMediaPlayer  ,
void(const std::shared_ptr< avsCommon::utils::mediaPlayer::MediaPlayerInterface > &)   
)

◆ MOCK_METHOD2() [1/4]

alexaClientSDK::captions::test::MockCaptionManager::MOCK_METHOD2 ( onCaption  ,
void(uint64_t sourceId, const captions::CaptionData &)   
)

◆ MOCK_METHOD2() [2/4]

alexaClientSDK::captions::test::MockCaptionManager::MOCK_METHOD2 ( onPlaybackStarted  ,
void(SourceId, const avsCommon::utils::mediaPlayer::MediaPlayerState &)   
)

◆ MOCK_METHOD2() [3/4]

alexaClientSDK::captions::test::MockCaptionManager::MOCK_METHOD2 ( onPlaybackFinished  ,
void(SourceId, const avsCommon::utils::mediaPlayer::MediaPlayerState &)   
)

◆ MOCK_METHOD2() [4/4]

alexaClientSDK::captions::test::MockCaptionManager::MOCK_METHOD2 ( onFirstByteRead  ,
void(SourceId, const avsCommon::utils::mediaPlayer::MediaPlayerState &)   
)

◆ MOCK_METHOD4()

alexaClientSDK::captions::test::MockCaptionManager::MOCK_METHOD4 ( onPlaybackError  ,
void(SourceId, const avsCommon::utils::mediaPlayer::ErrorType &, std::string, const avsCommon::utils::mediaPlayer::MediaPlayerState &)   
)

The documentation for this class was generated from the following file:

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