#include "components/metrics/content/subprocess_metrics_provider.h"
#include <memory>
#include <string>
#include <vector>
#include "base/metrics/histogram.h"
#include "base/metrics/histogram_flattener.h"
#include "base/metrics/histogram_snapshot_manager.h"
#include "base/metrics/persistent_histogram_allocator.h"
#include "base/metrics/persistent_memory_allocator.h"
#include "base/metrics/sparse_histogram.h"
#include "base/metrics/statistics_recorder.h"
#include "base/test/bind.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
IsEmpty;
UnorderedElementsAre;
namespace metrics {
namespace {
const uint32_t TEST_MEMORY_SIZE = …;
struct HistogramData { … };
class HistogramFlattenerDeltaRecorder : public base::HistogramFlattener { … };
class TestPersistentHistogramAllocator
: public base::PersistentHistogramAllocator { … };
}
class SubprocessMetricsProviderTest : public testing::Test { … };
TEST_F(SubprocessMetricsProviderTest, SnapshotMetrics) { … }
TEST_F(SubprocessMetricsProviderTest, SnapshotMetricsAsync) { … }
TEST_F(SubprocessMetricsProviderTest, AllocatorRefCounted) { … }
}