chromium/media/gpu/chromeos/mailbox_frame_registry_unittest.cc

// Copyright 2024 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/gpu/chromeos/mailbox_frame_registry.h"

#include "gpu/command_buffer/common/mailbox.h"
#include "media/base/video_frame.h"
#include "media/gpu/chromeos/video_frame_resource.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace media {

namespace {
// A helper to generate a VideoFrame-backed FrameResource.
scoped_refptr<FrameResource> GenerateFrame(base::TimeDelta timestamp) {}

}  // namespace

class MailboxFrameRegistryTest : public ::testing::Test {};

// This tests registering a frame, accessing it, unregistering it, and ensuring
// that it is cleared from the registry.
TEST_F(MailboxFrameRegistryTest, RegisterAccessUnregister) {}

// This tests registering a frame, accessing it, and the frame's lifecycle.
TEST_F(MailboxFrameRegistryTest, CheckRegistryLifecycle) {}

// The does a negative test of registering a frame with an unregistered mailbox.
TEST_F(MailboxFrameRegistryTest, InvalidFrameAccess) {}

}  // namespace media