chromium/components/viz/service/frame_sinks/video_capture/shared_memory_video_frame_pool_unittest.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "components/viz/service/frame_sinks/video_capture/shared_memory_video_frame_pool.h"

#include <memory>

#include "media/base/video_frame.h"
#include "media/base/video_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"

VideoFrame;

namespace viz {
namespace {

constexpr gfx::Size kSize =;
constexpr media::VideoPixelFormat kFormat =;

void ExpectValidHandleForDelivery(
    const base::ReadOnlySharedMemoryRegion& region) {}

TEST(SharedMemoryVideoFramePoolTest, FramesConfiguredCorrectly) {}

TEST(SharedMemoryVideoFramePoolTest, UsesAvailableBuffersIfPossible) {}

TEST(SharedMemoryVideoFramePoolTest, ReachesCapacityLimit) {}

TEST(SharedMemoryVideoFramePoolTest, ReportsCorrectUtilization) {}

// Returns true iff each plane of the given |frame| is filled with
// |values[plane]|.
bool PlanesAreFilledWithValues(const VideoFrame& frame, const uint8_t* values) {}

TEST(SharedMemoryVideoFramePoolTest, FramesReturnedWhenPoolIsGone) {}

}  // namespace
}  // namespace viz