chromium/components/gwp_asan/client/extreme_lightweight_detector_malloc_shims_unittest.cc

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

#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 =;

// Number of loop iterations required to definitely hit a sampled allocation.
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) {}

}  // namespace

}  // namespace gwp_asan::internal

#endif  // PA_BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC)