AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
FFmpegAttachmentInputControllerTest.cpp File Reference
#include <array>
#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/AVS/Attachment/AttachmentReader.h>
#include <AVSCommon/Utils/AudioFormat.h>
#include <Audio/Data/med_alerts_notification_01.mp3.h>
#include "AndroidSLESMediaPlayer/FFmpegAttachmentInputController.h"
Include dependency graph for FFmpegAttachmentInputControllerTest.cpp:

Classes

class  alexaClientSDK::mediaPlayer::android::test::MockAttachmentReader
 This class mocks an attachment reader that reads from the INPUT_CSTR. More...
 
class  alexaClientSDK::mediaPlayer::android::test::MockEmptyAttachmentReader
 A mock AttachmentReader that mocks reading from an empty attachment (immediate EOF). More...
 

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 (FFmpegAttachmentInputControllerTest, test_createFailed)
 Test create controller fail. More...
 
 alexaClientSDK::mediaPlayer::android::test::TEST (FFmpegAttachmentInputControllerTest, test_rawArgument)
 Test raw input format. More...
 
 alexaClientSDK::mediaPlayer::android::test::TEST (FFmpegAttachmentInputControllerTest, test_readOk)
 Test read from attachment reader. More...
 
 alexaClientSDK::mediaPlayer::android::test::TEST (FFmpegAttachmentInputControllerTest, test_getCurrentFormatContextOnEmptyInput)
 Test opening empty input from attachment reader. More...
 
 alexaClientSDK::mediaPlayer::android::test::TEST (FFmpegAttachmentInputControllerTest, test_readEof)
 Test read from stream until the end. More...
 

Variables

static constexpr size_t alexaClientSDK::mediaPlayer::android::test::BUFFER_SIZE = 1024
 The size of the buffers used to read input. More...
 
static const size_t alexaClientSDK::mediaPlayer::android::test::INPUT_SIZE = applicationUtilities::resources::audio::data::med_alerts_notification_01_mp3_len
 The size of the input buffer. More...
 
static const auto alexaClientSDK::mediaPlayer::android::test::INPUT_CSTR = applicationUtilities::resources::audio::data::med_alerts_notification_01_mp3
 An input buffer with an mp3 file. More...
 

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