#include <fcntl.h>
#include <stdint.h>
#include <memory>
#include "base/files/scoped_file.h"
#include "base/memory/madv_free_discardable_memory_allocator_posix.h"
#include "base/memory/madv_free_discardable_memory_posix.h"
#include "base/memory/page_size.h"
#include "base/tracing_buildflags.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#if BUILDFLAG(ENABLE_BASE_TRACING)
#include "base/trace_event/memory_allocator_dump.h"
#include "base/trace_event/process_memory_dump.h"
#endif
#define SUCCEED_IF_MADV_FREE_UNSUPPORTED() …
namespace base {
class MadvFreeDiscardableMemoryAllocatorPosixTest : public ::testing::Test { … };
TEST_F(MadvFreeDiscardableMemoryAllocatorPosixTest, AllocateAndUseMemory) { … }
}