#include "base/metrics/persistent_sample_map.h"
#include <memory>
#include "base/memory/ptr_util.h"
#include "base/metrics/persistent_histogram_allocator.h"
#include "base/test/gtest_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
namespace {
std::unique_ptr<PersistentHistogramAllocator> CreateHistogramAllocator(
size_t bytes) { … }
std::unique_ptr<PersistentHistogramAllocator> DuplicateHistogramAllocator(
PersistentHistogramAllocator* original) { … }
TEST(PersistentSampleMapTest, AccumulateTest) { … }
TEST(PersistentSampleMapTest, Accumulate_LargeValuesDontOverflow) { … }
TEST(PersistentSampleMapTest, AddSubtractTest) { … }
TEST(PersistentSampleMapTest, PersistenceTest) { … }
TEST(PersistentSampleMapIteratorTest, IterateTest) { … }
TEST(PersistentSampleMapIteratorTest, SkipEmptyRanges) { … }
TEST(PersistentSampleMapIteratorDeathTest, IterateDoneTest) { … }
}
}