#include "components/reporting/metrics/one_shot_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 "base/test/test_future.h"
#include "base/time/time.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/metrics/metric_report_queue.h"
#include "components/reporting/proto/synced/metric_data.pb.h"
#include "components/reporting/util/status.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
Eq;
namespace reporting {
namespace {
constexpr char kEnableSettingPath[] = …;
class OneShotCollectorTest : public ::testing::Test { … };
TEST_F(OneShotCollectorTest, InitiallyEnabled) { … }
TEST_F(OneShotCollectorTest, InitiallyEnabled_Delayed) { … }
TEST_F(OneShotCollectorTest, NoMetricData) { … }
TEST_F(OneShotCollectorTest, InitiallyDisabled) { … }
TEST_F(OneShotCollectorTest, InitiallyDisabled_Delayed) { … }
TEST_F(OneShotCollectorTest, DefaultEnabled) { … }
TEST_F(OneShotCollectorTest, DefaultDisabled) { … }
}
}