chromium/cc/layers/video_layer_impl_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 "cc/layers/video_layer_impl.h"

#include <stddef.h>

#include "base/functional/callback_helpers.h"
#include "cc/layers/video_frame_provider_client_impl.h"
#include "cc/test/fake_video_frame_provider.h"
#include "cc/test/layer_tree_impl_test_base.h"
#include "cc/trees/single_thread_proxy.h"
#include "components/viz/common/gpu/raster_context_provider.h"
#include "components/viz/common/quads/draw_quad.h"
#include "components/viz/common/quads/texture_draw_quad.h"
#include "components/viz/common/quads/yuv_video_draw_quad.h"
#include "components/viz/service/display/output_surface.h"
#include "media/base/media_switches.h"
#include "media/base/video_frame.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace cc {
namespace {

// NOTE: We cannot use DebugScopedSetImplThreadAndMainThreadBlocked in these
// tests because it gets destroyed before the VideoLayerImpl is destroyed. This
// causes a DCHECK in VideoLayerImpl's destructor to fail.
static void DebugSetImplThreadAndMainThreadBlocked(
    TaskRunnerProvider* task_runner_provider) {}

TEST(VideoLayerImplTest, Occlusion) {}

TEST(VideoLayerImplTest, OccludesOtherLayers) {}

TEST(VideoLayerImplTest, DidBecomeActiveShouldSetActiveVideoLayer) {}

TEST(VideoLayerImplTest, Rotated0) {}

TEST(VideoLayerImplTest, Rotated90) {}

TEST(VideoLayerImplTest, Rotated180) {}

TEST(VideoLayerImplTest, Rotated270) {}

TEST(VideoLayerImplTest, SoftwareVideoFrameGeneratesYUVQuad) {}

TEST(VideoLayerImplTest, HibitSoftwareVideoFrameGeneratesYUVQuad) {}

TEST(VideoLayerImplTest, NativeYUVFrameGeneratesYUVQuad) {}

TEST(VideoLayerImplTest, NativeARGBFrameGeneratesTextureQuad) {}

TEST(VideoLayerImplTest, GetDamageReasons) {}

}  // namespace
}  // namespace cc