chromium/media/video/video_encode_accelerator_adapter_test.cc

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

#include "media/video/video_encode_accelerator_adapter.h"

#include <memory>
#include <string>

#include "base/functional/callback_helpers.h"
#include "base/logging.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/scoped_refptr.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/thread_pool.h"
#include "base/test/bind.h"
#include "base/test/gmock_callback_support.h"
#include "base/test/task_environment.h"
#include "base/threading/thread.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "components/viz/test/test_context_provider.h"
#include "media/base/bitrate.h"
#include "media/base/media_util.h"
#include "media/base/video_frame.h"
#include "media/base/video_util.h"
#include "media/video/fake_video_encode_accelerator.h"
#include "media/video/gpu_video_accelerator_factories.h"
#include "media/video/mock_gpu_video_accelerator_factories.h"
#include "media/video/mock_video_encode_accelerator.h"
#include "media/video/video_encoder_info.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/libyuv/include/libyuv.h"
#include "ui/gfx/color_space.h"

_;
AtLeast;
Field;
Invoke;
Return;
SaveArg;
Values;
WithArgs;

namespace media {

class VideoEncodeAcceleratorAdapterTest
    : public ::testing::TestWithParam<VideoPixelFormat> {};

TEST_F(VideoEncodeAcceleratorAdapterTest, PreInitialize) {}

TEST_F(VideoEncodeAcceleratorAdapterTest, InitializeAfterFirstFrame) {}

TEST_F(VideoEncodeAcceleratorAdapterTest, TemporalSvc) {}

TEST_F(VideoEncodeAcceleratorAdapterTest, FlushDuringInitialize) {}

TEST_F(VideoEncodeAcceleratorAdapterTest, InitializationError) {}

TEST_F(VideoEncodeAcceleratorAdapterTest, EncodingError) {}

TEST_P(VideoEncodeAcceleratorAdapterTest, TwoFramesResize) {}

TEST_F(VideoEncodeAcceleratorAdapterTest, AutomaticResizeSupport) {}

TEST_P(VideoEncodeAcceleratorAdapterTest, RunWithAllPossibleInputConversions) {}

TEST_F(VideoEncodeAcceleratorAdapterTest, DroppedFrame) {}

TEST_F(VideoEncodeAcceleratorAdapterTest,
       ChangeOptions_ChangeVariableBitrateSmokeTest) {}

TEST_F(VideoEncodeAcceleratorAdapterTest, ChangeOptions_ChangeFrameSize) {}

TEST_F(VideoEncodeAcceleratorAdapterTest,
       ChangeOptions_ChangeFrameSizeNotSupported) {}

INSTANTIATE_TEST_SUITE_P();

}  // namespace media