#include "base/metrics/histogram.h"
#include <limits.h>
#include <stddef.h>
#include <stdint.h>
#include <climits>
#include <memory>
#include <string>
#include <vector>
#include "base/lazy_instance.h"
#include "base/logging.h"
#include "base/memory/raw_ptr.h"
#include "base/metrics/bucket_ranges.h"
#include "base/metrics/dummy_histogram.h"
#include "base/metrics/histogram_macros.h"
#include "base/metrics/metrics_hashes.h"
#include "base/metrics/persistent_histogram_allocator.h"
#include "base/metrics/persistent_memory_allocator.h"
#include "base/metrics/record_histogram_checker.h"
#include "base/metrics/sample_vector.h"
#include "base/metrics/statistics_recorder.h"
#include "base/pickle.h"
#include "base/strings/stringprintf.h"
#include "base/test/gtest_util.h"
#include "base/time/time.h"
#include "base/values.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
namespace {
const char kExpiredHistogramName[] = …;
class TestRecordHistogramChecker : public RecordHistogramChecker { … };
}
class HistogramTest : public testing::TestWithParam<bool> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(HistogramTest, BasicTest) { … }
TEST_P(HistogramTest, NameMatchTest) { … }
TEST_P(HistogramTest, DeltaTest) { … }
TEST_P(HistogramTest, UnloggedSamplesTest) { … }
TEST_P(HistogramTest, FinalDeltaTest) { … }
TEST_P(HistogramTest, IsDefinitelyEmpty_SnapshotDelta) { … }
TEST_P(HistogramTest, ExponentialRangesTest) { … }
TEST_P(HistogramTest, LinearRangesTest) { … }
TEST_P(HistogramTest, SingleValueEnumerationHistogram) { … }
TEST_P(HistogramTest, ArrayToCustomEnumRangesTest) { … }
TEST_P(HistogramTest, CustomHistogramTest) { … }
TEST_P(HistogramTest, CustomHistogramWithOnly2Buckets) { … }
TEST_P(HistogramTest, AddCountTest) { … }
TEST_P(HistogramTest, AddCount_LargeValuesDontOverflow) { … }
TEST_P(HistogramTest, AddCount_LargeCountsDontOverflow) { … }
TEST_P(HistogramTest, BoundsTest) { … }
TEST_P(HistogramTest, BucketPlacementTest) { … }
TEST_P(HistogramTest, CorruptSampleCounts) { … }
TEST_P(HistogramTest, CorruptBucketBounds) { … }
TEST_P(HistogramTest, HistogramSerializeInfo) { … }
TEST_P(HistogramTest, CustomHistogramSerializeInfo) { … }
TEST_P(HistogramTest, BadConstruction) { … }
TEST_P(HistogramTest, FactoryTime) { … }
TEST_P(HistogramTest, ScaledLinearHistogram) { … }
TEST(HistogramDeathTest, BadRangesTest) { … }
TEST_P(HistogramTest, ExpiredHistogramTest) { … }
TEST_P(HistogramTest, CheckGetCountAndBucketData) { … }
TEST_P(HistogramTest, WriteAscii) { … }
TEST_P(HistogramTest, ToGraphDict) { … }
TEST_P(HistogramTest, ToGraphDictNormalize) { … }
}