chromium/media/filters/dav1d_video_decoder_unittest.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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, "") {}

}  // namespace

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) {}

// Decode |i_frame_buffer_| and then a frame with a larger width and verify
// the output size was adjusted.
TEST_F(Dav1dVideoDecoderTest, DecodeFrame_LargerWidth) {}

// Decode a VP9 frame which should trigger a decoder error.
TEST_F(Dav1dVideoDecoderTest, DecodeFrame_Error) {}

// Test resetting when decoder has initialized but not decoded.
TEST_F(Dav1dVideoDecoderTest, Reset_Initialized) {}

// Test resetting when decoder has decoded single frame.
TEST_F(Dav1dVideoDecoderTest, Reset_Decoding) {}

// Test resetting when decoder has hit end of stream.
TEST_F(Dav1dVideoDecoderTest, Reset_EndOfStream) {}

// Test destruction when decoder has initialized but not decoded.
TEST_F(Dav1dVideoDecoderTest, Destroy_Initialized) {}

// Test destruction when decoder has decoded single frame.
TEST_F(Dav1dVideoDecoderTest, Destroy_Decoding) {}

// Test destruction when decoder has hit end of stream.
TEST_F(Dav1dVideoDecoderTest, Destroy_EndOfStream) {}

TEST_F(Dav1dVideoDecoderTest, FrameValidAfterPoolDestruction) {}

}  // namespace media