#include "components/gwp_asan/client/sampling_helpers.h"
#include "base/test/metrics/histogram_tester.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace gwp_asan::internal {
namespace {
constexpr size_t kSamplingFrequency = …;
constexpr size_t kAllocationsBeforeOom = …;
TEST(SamplingHelpers, DontRecordUnknownProcesses) { … }
TEST(SamplingHelpers, BasicFunctionality) { … }
TEST(SamplingHelpers, RecordClampedMax) { … }
TEST(SamplingHelpers, RecordNonActivated) { … }
TEST(SamplingHelpers, RecordActivated) { … }
}
}