chromium/base/metrics/persistent_histogram_allocator_unittest.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40284755): Remove this and spanify to fix the errors.
#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) {}

// Verify that when merging histograms from an allocator with the global
// StatisticsRecorder, if the histogram has no samples to be merged, then it
// is skipped (no lookup/registration of the histogram with the SR).
TEST_F(PersistentHistogramAllocatorTest,
       StatisticsRecorderMerge_IsDefinitelyEmpty) {}

TEST_F(PersistentHistogramAllocatorTest, MultipleSameSparseHistograms) {}

TEST_F(PersistentHistogramAllocatorTest, CustomRangesManager) {}

TEST_F(PersistentHistogramAllocatorTest, RangesDeDuplication) {}

TEST_F(PersistentHistogramAllocatorTest, MovePersistentFile) {}

}  // namespace base