chromium/base/test/scoped_amount_of_physical_memory_override.h

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef BASE_TEST_SCOPED_AMOUNT_OF_PHYSICAL_MEMORY_OVERRIDE_H_
#define BASE_TEST_SCOPED_AMOUNT_OF_PHYSICAL_MEMORY_OVERRIDE_H_

#include <stdint.h>

#include <optional>

namespace base::test {

// Sets the amount of physical memory in MB override on construction, and
// removes it when the object goes out of scope. This class is intended to be
// used by tests that need to override the amount of physical memory on the
// system to validate different system conditions.
class ScopedAmountOfPhysicalMemoryOverride {};

}  // namespace base::test

#endif  // BASE_TEST_SCOPED_AMOUNT_OF_PHYSICAL_MEMORY_OVERRIDE_H_