#include "components/reporting/metrics/manual_collector.h"
#include <memory>
#include <string>
#include <vector>
#include "base/run_loop.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/task_environment.h"
#include "components/reporting/metrics/collector_base.h"
#include "components/reporting/metrics/fakes/fake_metric_report_queue.h"
#include "components/reporting/metrics/fakes/fake_reporting_settings.h"
#include "components/reporting/metrics/fakes/fake_sampler.h"
#include "components/reporting/proto/synced/metric_data.pb.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
Eq;
namespace reporting {
namespace {
constexpr char kEnableSettingPath[] = …;
class ManualCollectorTest : public testing::Test { … };
TEST_F(ManualCollectorTest, InitiallyEnabled) { … }
TEST_F(ManualCollectorTest, InitiallyDisabled) { … }
TEST_F(ManualCollectorTest, NoMetricData) { … }
TEST_F(ManualCollectorTest, DefaultEnabled) { … }
TEST_F(ManualCollectorTest, DefaultDisabled) { … }
}
}