#include "components/reporting/metrics/metric_reporting_controller.h"
#include <memory>
#include <string>
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "components/reporting/metrics/fakes/fake_reporting_settings.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace reporting {
namespace {
constexpr char kSettingPath[] = …;
class MetricReportingControllerTest : public ::testing::Test { … };
TEST_F(MetricReportingControllerTest, InvalidPath_DefaultDisabled) { … }
TEST_F(MetricReportingControllerTest, InvalidPath_DefaultEnabled) { … }
TEST_F(MetricReportingControllerTest, TrustedCheck) { … }
TEST_F(MetricReportingControllerTest, InitiallyEnabled) { … }
TEST_F(MetricReportingControllerTest, InitiallyDisabled) { … }
TEST_F(MetricReportingControllerTest, SetCallbackAfterEnable) { … }
TEST_F(MetricReportingControllerTest, SetCallbackAfterDisable) { … }
}
}