chromium/gpu/command_buffer/common/id_allocator_test.cc

// Copyright 2011 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/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

// This file has the unit tests for the IdAllocator class.

#include <stdint.h>

#include "gpu/command_buffer/common/id_allocator.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace gpu {

class IdAllocatorTest : public testing::Test {};

// Checks basic functionality: AllocateID, FreeID, InUse.
TEST_F(IdAllocatorTest, TestBasic) {}

// Checks that the resource IDs are re-used after being freed.
TEST_F(IdAllocatorTest, TestAdvanced) {}

// Checks that we can choose our own ids and they won't be reused.
TEST_F(IdAllocatorTest, MarkAsUsed) {}

// Checks AllocateIdAtOrAbove.
TEST_F(IdAllocatorTest, AllocateIdAtOrAbove) {}

// Checks that AllocateIdAtOrAbove wraps around at the maximum value.
TEST_F(IdAllocatorTest, AllocateIdAtOrAboveWrapsAround) {}

TEST_F(IdAllocatorTest, RedundantFreeIsIgnored) {}

TEST_F(IdAllocatorTest, AllocateIDRange) {}

TEST_F(IdAllocatorTest, AllocateIDRangeEndNoEffect) {}

TEST_F(IdAllocatorTest, AllocateFullIDRange) {}

TEST_F(IdAllocatorTest, AllocateIDRangeNoWrapInRange) {}

TEST_F(IdAllocatorTest, AllocateIdMax) {}

TEST_F(IdAllocatorTest, ZeroIdCases) {}
}  // namespace gpu