#include "base/metrics/histogram_snapshot_manager.h"
#include <memory>
#include <string>
#include <vector>
#include "base/containers/contains.h"
#include "base/memory/raw_ptr.h"
#include "base/metrics/histogram_delta_serialization.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/sample_vector.h"
#include "base/metrics/statistics_recorder.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
namespace {
const std::string kHistogramName = …;
const std::string kStabilityHistogramName = …;
void UmaStabilityHistogramBoolean(const std::string& name, bool sample) { … }
}
class HistogramFlattenerDeltaRecorder : public HistogramFlattener { … };
class HistogramSnapshotManagerTest : public testing::Test { … };
TEST_F(HistogramSnapshotManagerTest, PrepareDeltasNoFlagsFilter) { … }
TEST_F(HistogramSnapshotManagerTest, PrepareDeltasUmaHistogramFlagFilter) { … }
TEST_F(HistogramSnapshotManagerTest,
PrepareDeltasUmaStabilityHistogramFlagFilter) { … }
TEST_F(HistogramSnapshotManagerTest, SnapshotUnloggedSamplesNoFlagsFilter) { … }
TEST_F(HistogramSnapshotManagerTest,
SnapshotUnloggedSamplesUmaHistogramFlagFilter) { … }
TEST_F(HistogramSnapshotManagerTest,
SnapshotUnloggedSamplesUmaStabilityHistogramFlagFilter) { … }
}