#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/hash/md5.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "build/build_config.h"
#include "media/base/decoder_buffer.h"
#include "media/base/limits.h"
#include "media/base/media_util.h"
#include "media/base/test_data_util.h"
#include "media/base/test_helpers.h"
#include "media/base/video_frame.h"
#include "media/ffmpeg/ffmpeg_common.h"
#include "media/filters/dav1d_video_decoder.h"
#include "media/filters/in_memory_url_protocol.h"
#include "testing/gmock/include/gmock/gmock.h"
_;
namespace media {
namespace {
MATCHER(ContainsDecoderErrorLog, "") { … }
}
class Dav1dVideoDecoderTest : public testing::Test { … };
TEST_F(Dav1dVideoDecoderTest, Initialize_Normal) { … }
TEST_F(Dav1dVideoDecoderTest, Reinitialize_Normal) { … }
TEST_F(Dav1dVideoDecoderTest, Reinitialize_AfterDecodeFrame) { … }
TEST_F(Dav1dVideoDecoderTest, Reinitialize_AfterReset) { … }
TEST_F(Dav1dVideoDecoderTest, DecodeFrame_Normal) { … }
TEST_F(Dav1dVideoDecoderTest, DecodeFrame_8bitMono) { … }
TEST_F(Dav1dVideoDecoderTest, DecodeFrame_10bitMono) { … }
TEST_F(Dav1dVideoDecoderTest, DecodeFrame_12bitMono) { … }
TEST_F(Dav1dVideoDecoderTest, DecodeFrame_LargerWidth) { … }
TEST_F(Dav1dVideoDecoderTest, DecodeFrame_Error) { … }
TEST_F(Dav1dVideoDecoderTest, Reset_Initialized) { … }
TEST_F(Dav1dVideoDecoderTest, Reset_Decoding) { … }
TEST_F(Dav1dVideoDecoderTest, Reset_EndOfStream) { … }
TEST_F(Dav1dVideoDecoderTest, Destroy_Initialized) { … }
TEST_F(Dav1dVideoDecoderTest, Destroy_Decoding) { … }
TEST_F(Dav1dVideoDecoderTest, Destroy_EndOfStream) { … }
TEST_F(Dav1dVideoDecoderTest, FrameValidAfterPoolDestruction) { … }
}