AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
FFmpegUrlInputControllerTest.cpp File Reference
#include <memory>
#include <sstream>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <libavformat/avformat.h>
#include <libavformat/avio.h>
#include <libavutil/common.h>
#include <libavutil/error.h>
#include <AVSCommon/Utils/PlaylistParser/IterativePlaylistParserInterface.h>
#include <AVSCommon/Utils/Memory/Memory.h>
#include "PlaylistParser/MockContentFetcher.h"
#include <PlaylistParser/IterativePlaylistParser.h>
#include "AndroidSLESMediaPlayer/FFmpegUrlInputController.h"
Include dependency graph for FFmpegUrlInputControllerTest.cpp:

Classes

class  alexaClientSDK::mediaPlayer::android::test::MockContentFetcherFactory
 Mocks the content fetcher factory. More...
 
class  alexaClientSDK::mediaPlayer::android::test::MockPlaylistParser
 
class  alexaClientSDK::mediaPlayer::android::test::FFmpegUrlInputControllerTest
 

Namespaces

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

Functions

 alexaClientSDK::mediaPlayer::android::test::TEST_F (FFmpegUrlInputControllerTest, test_createSucceed)
 Test input controller create succeed. More...
 
 alexaClientSDK::mediaPlayer::android::test::TEST_F (FFmpegUrlInputControllerTest, test_createNullParserFailed)
 Test input controller create with null playlist parser failed. More...
 
 alexaClientSDK::mediaPlayer::android::test::TEST_F (FFmpegUrlInputControllerTest, test_createEmptyUrlFailed)
 Test input controller create with empty url failed. More...
 
 alexaClientSDK::mediaPlayer::android::test::TEST_F (FFmpegUrlInputControllerTest, test_createInvalidUrlFailed)
 Test input controller create with null playlist parser failed. More...
 
 alexaClientSDK::mediaPlayer::android::test::TEST_F (FFmpegUrlInputControllerTest, test_getContextSucceed)
 Test input controller getContext. More...
 
 alexaClientSDK::mediaPlayer::android::test::TEST_F (FFmpegUrlInputControllerTest, test_getContextOffsetSucceed)
 Test input controller getContext with non-zero offset. More...
 
 alexaClientSDK::mediaPlayer::android::test::TEST_F (FFmpegUrlInputControllerTest, test_getContextInvalidUrl)
 Test input controller getContext. More...
 
 alexaClientSDK::mediaPlayer::android::test::TEST_F (FFmpegUrlInputControllerTest, test_getContextAfterNext)
 Test get context after switching files. More...
 
 alexaClientSDK::mediaPlayer::android::test::TEST_F (FFmpegUrlInputControllerTest, test_hasNext)
 Test has next when parser isn't done. More...
 
 alexaClientSDK::mediaPlayer::android::test::TEST_F (FFmpegUrlInputControllerTest, test_done)
 Test has next after playlist parser is done. More...
 
 alexaClientSDK::mediaPlayer::android::test::TEST_F (FFmpegUrlInputControllerTest, test_playlistRepeat)
 Test parsing playlist with repeat on. More...
 
 alexaClientSDK::mediaPlayer::android::test::TEST_F (FFmpegUrlInputControllerTest, test_mediaUrlRepeat)
 Test parsing media url with repeat on. More...
 
int main (int argc, char **argv)
 

Variables

static const std::string alexaClientSDK::mediaPlayer::android::test::PLAYLIST_URL {"playlist"}
 Represent a dummy url that will be used as playlist. More...
 
static const std::string alexaClientSDK::mediaPlayer::android::test::MEDIA_URL_1 {"url1"}
 Constant string used to mock a media url. More...
 
static const std::string alexaClientSDK::mediaPlayer::android::test::MP3_FILE_PATH {"/fox_dog.mp3"}
 MP3 test file path relative to the input folder. More...
 
static const std::chrono::seconds alexaClientSDK::mediaPlayer::android::test::DURATION {5}
 MP3 approximate duration. More...
 
static const bool alexaClientSDK::mediaPlayer::android::test::DO_NOT_REPEAT = false
 
static const std::chrono::milliseconds alexaClientSDK::mediaPlayer::android::test::ZERO_OFFSET = std::chrono::milliseconds::zero()
 Zero offset. More...
 
static std::string alexaClientSDK::mediaPlayer::android::test::INPUT_FOLDER
 Test file path. More...
 
static const PlaylistEntry alexaClientSDK::mediaPlayer::android::test::INVALID_URL_ENTRY = PlaylistEntry::createErrorEntry(MEDIA_URL_1)
 Constant struct used to mock return of playlist next() method. Calls to getContext with this entry will fail. More...
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

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