#include "src/heap/cppgc/free-list.h"
#include <memory>
#include <numeric>
#include <vector>
#include "src/base/bits.h"
#include "src/heap/cppgc/globals.h"
#include "src/heap/cppgc/heap-object-header.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace cppgc {
namespace internal {
namespace {
class Block { … };
std::vector<Block> CreateEntries() { … }
FreeList CreatePopulatedFreeList(const std::vector<Block>& blocks) { … }
}
TEST(FreeListTest, Empty) { … }
TEST(FreeListTest, Add) { … }
TEST(FreeListTest, AddWasted) { … }
TEST(FreeListTest, Clear) { … }
TEST(FreeListTest, Move) { … }
TEST(FreeListTest, Append) { … }
#ifdef DEBUG
TEST(FreeListTest, AppendSelf) { … }
#endif
TEST(FreeListTest, Contains) { … }
TEST(FreeListTest, Allocate) { … }
}
}