#include "partition_alloc/lightweight_quarantine.h"
#include "partition_alloc/partition_alloc_for_testing.h"
#include "partition_alloc/partition_page.h"
#include "partition_alloc/partition_root.h"
#include "partition_alloc/partition_stats.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace partition_alloc {
#if !defined(MEMORY_TOOL_REPLACES_ALLOCATOR)
namespace {
QuarantineConfig;
QuarantineRoot;
QuarantineBranch;
class PartitionAllocLightweightQuarantineTest
: public testing::TestWithParam<QuarantineConfig> { … };
constexpr QuarantineConfig kConfigSmall = …;
constexpr QuarantineConfig kConfigLarge = …;
constexpr QuarantineConfig kConfigSmallThreadSafe = …;
constexpr QuarantineConfig kConfigLargeThreadSafe = …;
INSTANTIATE_TEST_SUITE_P(…);
}
TEST_P(PartitionAllocLightweightQuarantineTest, Basic) { … }
TEST_P(PartitionAllocLightweightQuarantineTest, TooLargeAllocation) { … }
#endif
}