#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "base/metrics/persistent_histogram_allocator.h"
#include "base/files/file.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/memory/raw_ptr.h"
#include "base/metrics/bucket_ranges.h"
#include "base/metrics/histogram.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/persistent_memory_allocator.h"
#include "base/metrics/sparse_histogram.h"
#include "base/metrics/statistics_recorder.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
class PersistentHistogramAllocatorTest : public testing::Test { … };
TEST_F(PersistentHistogramAllocatorTest, CreateAndIterate) { … }
TEST_F(PersistentHistogramAllocatorTest, ConstructPaths) { … }
TEST_F(PersistentHistogramAllocatorTest, CreateWithFile) { … }
TEST_F(PersistentHistogramAllocatorTest, CreateSpareFile) { … }
TEST_F(PersistentHistogramAllocatorTest, StatisticsRecorderMerge) { … }
TEST_F(PersistentHistogramAllocatorTest,
StatisticsRecorderMerge_IsDefinitelyEmpty) { … }
TEST_F(PersistentHistogramAllocatorTest, MultipleSameSparseHistograms) { … }
TEST_F(PersistentHistogramAllocatorTest, CustomRangesManager) { … }
TEST_F(PersistentHistogramAllocatorTest, RangesDeDuplication) { … }
TEST_F(PersistentHistogramAllocatorTest, MovePersistentFile) { … }
}