chromium/third_party/blink/renderer/platform/media/video_frame_compositor_unittest.cc

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

#include "third_party/blink/public/platform/media/video_frame_compositor.h"

#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/scoped_refptr.h"
#include "base/run_loop.h"
#include "base/synchronization/waitable_event.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/gmock_callback_support.h"
#include "base/test/simple_test_tick_clock.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "components/viz/common/frame_sinks/begin_frame_args.h"
#include "components/viz/common/surfaces/frame_sink_id.h"
#include "media/base/video_frame.h"
#include "media/video/fake_gpu_memory_buffer.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/platform/web_video_frame_submitter.h"

namespace blink {

RunClosure;
_;
AnyNumber;
DoAll;
Eq;
Return;
StrictMock;

RenderingMode;

class MockWebVideoFrameSubmitter : public WebVideoFrameSubmitter {};

class VideoFrameCompositorTest
    : public media::VideoRendererSink::RenderCallback,
      public testing::Test {};

TEST_F(VideoFrameCompositorTest, InitialValues) {}

TEST_F(VideoFrameCompositorTest, SetIsSurfaceVisible) {}

TEST_F(VideoFrameCompositorTest, SetIsPageVisible) {}

TEST_F(VideoFrameCompositorTest, PaintSingleFrame) {}

TEST_F(VideoFrameCompositorTest, RenderFiresPresentationCallback) {}

TEST_F(VideoFrameCompositorTest, PresentationCallbackForcesBeginFrames) {}

TEST_F(VideoFrameCompositorTest, MultiplePresentationCallbacks) {}

TEST_F(VideoFrameCompositorTest, VideoRendererSinkFrameDropped) {}

TEST_F(VideoFrameCompositorTest, VideoRendererSinkGetCurrentFrameNoDrops) {}

TEST_F(VideoFrameCompositorTest, StartFiresBackgroundRender) {}

TEST_F(VideoFrameCompositorTest, BackgroundRenderTicks) {}

TEST_F(VideoFrameCompositorTest,
       UpdateCurrentFrameWorksWhenBackgroundRendered) {}

TEST_F(VideoFrameCompositorTest, UpdateCurrentFrameIfStale) {}

TEST_F(VideoFrameCompositorTest, UpdateCurrentFrameIfStale_ClientBypass) {}

TEST_F(VideoFrameCompositorTest, PreferredRenderInterval) {}

TEST_F(VideoFrameCompositorTest, OnContextLost) {}

}  // namespace blink