// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/platform/wtf/allocator/partitions.h" #include <vector> #include "build/build_config.h" #include "partition_alloc/memory_reclaimer.h" #include "testing/gtest/include/gtest/gtest.h" namespace WTF { // Otherwise, PartitionAlloc doesn't allocate any memory, and the tests are // meaningless. #if !defined(MEMORY_TOOL_REPLACES_ALLOCATOR) class PartitionsTest : public ::testing::Test { … }; TEST_F(PartitionsTest, MemoryIsInitiallyCommitted) { … } TEST_F(PartitionsTest, Decommit) { … } #endif // !defined(MEMORY_TOOL_REPLACES_ALLOCATOR) } // namespace WTF