#include "base/metrics/single_sample_metrics.h"
#include "base/metrics/dummy_histogram.h"
#include "base/test/gtest_util.h"
#include "base/test/metrics/histogram_tester.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
namespace {
const HistogramBase::Sample kMin = …;
const HistogramBase::Sample kMax = …;
const uint32_t kBucketCount = …;
const char kMetricName[] = …;
class SingleSampleMetricsTest : public testing::Test { … };
}
TEST_F(SingleSampleMetricsTest, DefaultFactoryGetSet) { … }
TEST_F(SingleSampleMetricsTest, CustomFactoryGetSet) { … }
TEST_F(SingleSampleMetricsTest, DefaultSingleSampleMetricNoValue) { … }
TEST_F(SingleSampleMetricsTest, DefaultSingleSampleMetricWithValue) { … }
TEST_F(SingleSampleMetricsTest, MultipleMetricsAreDistinct) { … }
}