#include "src/zone/zone-allocator.h"
#include <list>
#include <vector>
#include "test/unittests/test-utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace v8 {
namespace internal {
template <template <typename T> typename Allocator>
void TestWithStdContainers() { … }
ZoneAllocatorTest;
TEST_F(ZoneAllocatorTest, UseWithStdContainers) { … }
RecyclingZoneAllocatorTest;
TEST_F(RecyclingZoneAllocatorTest, ReuseSameSize) { … }
TEST_F(RecyclingZoneAllocatorTest, ReuseSmallerSize) { … }
TEST_F(RecyclingZoneAllocatorTest, DontReuseTooSmallSize) { … }
TEST_F(RecyclingZoneAllocatorTest, ReuseMultipleSize) { … }
TEST_F(RecyclingZoneAllocatorTest, DontChainSmallerSizes) { … }
TEST_F(RecyclingZoneAllocatorTest, UseWithStdContainers) { … }
}
}