#include "components/gwp_asan/client/extreme_lightweight_detector_malloc_shims.h"
#if PA_BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC)
#include "base/test/multiprocess_test.h"
#include "base/test/test_timeouts.h"
#include "partition_alloc/buildflags.h"
#include "partition_alloc/shim/allocator_shim_default_dispatch_to_partition_alloc.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/multiprocess_func_list.h"
namespace gwp_asan::internal {
namespace {
constexpr size_t kSamplingFrequency = …;
constexpr size_t kQuarantineCapacityInBytes = …;
constexpr size_t kLoopIterations = …;
constexpr int kSuccess = …;
constexpr int kFailure = …;
class ExtremeLightweightDetectorMallocShimsTest
: public base::MultiProcessTest { … };
MULTIPROCESS_TEST_MAIN_WITH_SETUP(
Basic,
ExtremeLightweightDetectorMallocShimsTest::MultiprocessTestSetup) { … }
TEST_F(ExtremeLightweightDetectorMallocShimsTest, Basic) { … }
}
}
#endif