AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Macros | Typedefs | Functions | Variables
FFmpegDecoderTest.cpp File Reference
#include <fstream>
#include <thread>
#include <tuple>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <AVSCommon/AVS/Attachment/AttachmentWriter.h>
#include <AVSCommon/AVS/Attachment/InProcessAttachment.h>
#include <AVSCommon/Utils/Logger/LoggerSinkManager.h>
#include <AndroidUtilities/AndroidLogger.h>
#include "AndroidSLESMediaPlayer/FFmpegAttachmentInputController.h"
#include "AndroidSLESMediaPlayer/FFmpegDecoder.h"
Include dependency graph for FFmpegDecoderTest.cpp:

Classes

class  alexaClientSDK::mediaPlayer::android::test::FFmpegDecoderTest
 

Namespaces

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

Macros

#define TAG   "FFmpegDecoderTest"
 String to identify log entries originating from this file. More...
 
#define LX(event)   alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)
 

Typedefs

using alexaClientSDK::mediaPlayer::android::test::Byte = FFmpegDecoder::Byte
 

Functions

static const std::string alexaClientSDK::mediaPlayer::android::test::MP3_FILE_PATH ("/fox_dog.mp3")
 MP3 test file path relative to the input folder. More...
 
 alexaClientSDK::mediaPlayer::android::test::TEST_F (FFmpegDecoderTest, test_createSucceed)
 Test decoder create. More...
 
 alexaClientSDK::mediaPlayer::android::test::TEST_F (FFmpegDecoderTest, test_createFailedNullReader)
 Test decoder create with null reader. More...
 
 alexaClientSDK::mediaPlayer::android::test::TEST_F (FFmpegDecoderTest, test_decodeFullFile)
 Test decoding an entire file. More...
 
 alexaClientSDK::mediaPlayer::android::test::TEST_F (FFmpegDecoderTest, test_truncatedInput)
 Test that it's possible to decode a file that was been truncated past the header. More...
 
 alexaClientSDK::mediaPlayer::android::test::TEST_F (FFmpegDecoderTest, test_corruptedInput)
 Test that the decoder recovers if the file is missing parts of it. More...
 
 alexaClientSDK::mediaPlayer::android::test::TEST_F (FFmpegDecoderTest, test_invalidInput)
 Test that the decoder will error if input has invalid media. More...
 
 alexaClientSDK::mediaPlayer::android::test::TEST_F (FFmpegDecoderTest, test_readSmallBuffer)
 Check that read with a buffer that is too small fails. More...
 
 alexaClientSDK::mediaPlayer::android::test::TEST_F (FFmpegDecoderTest, test_abortInitialization)
 Check that we can abort the decoding during initialization. More...
 
 alexaClientSDK::mediaPlayer::android::test::TEST_F (FFmpegDecoderTest, test_alarmVolumeRamp)
 
int main (int argc, char **argv)
 

Variables

static const std::vector< size_t > alexaClientSDK::mediaPlayer::android::test::RECEIVE_SIZES {std::numeric_limits<size_t>::max()}
 Configure MockAttachmentReader to simulate getting the entire file before being read. More...
 
static std::string alexaClientSDK::mediaPlayer::android::test::inputFolder
 Test input folder. More...
 

Macro Definition Documentation

◆ LX

#define LX (   event)    alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)

Create a LogEntry using this file's TAG and the specified event string.

Parameters
Theevent string for this LogEntry.

◆ TAG

#define TAG   "FFmpegDecoderTest"

String to identify log entries originating from this file.

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