#include "chrome/browser/safe_browsing/extension_telemetry/extension_telemetry_config_manager.h"
#include "chrome/browser/safe_browsing/extension_telemetry/extension_signal.h"
#include "chrome/test/base/testing_profile.h"
#include "components/safe_browsing/core/common/proto/csd.pb.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
ExtensionInfo;
TelemetryReport;
namespace safe_browsing {
namespace {
constexpr uint32_t kMaxUintValue = …;
constexpr uint64_t kMaxUint64Value = …;
constexpr uint32_t kDefaultReportingInterval = …;
constexpr uint32_t kDefaultWritesPerInterval = …;
constexpr uint32_t kDefaultVersion = …;
constexpr uint32_t kReportingInterval = …;
constexpr uint32_t kWritesPerInterval = …;
constexpr uint32_t kVersion = …;
constexpr uint64_t kExtension1SignalEnables = …;
constexpr uint64_t kExtension2SignalEnables = …;
constexpr char kExtension1[] = …;
constexpr char kExtension2[] = …;
}
class ExtensionTelemetryConfigManagerTest : public ::testing::Test { … };
ExtensionTelemetryConfigManagerTest::ExtensionTelemetryConfigManagerTest()
: … { … }
void ExtensionTelemetryConfigManagerTest::InitConfigWithMaxValues() { … }
void ExtensionTelemetryConfigManagerTest::InitConfig() { … }
TEST_F(ExtensionTelemetryConfigManagerTest, InitializesSignalEnables) { … }
TEST_F(ExtensionTelemetryConfigManagerTest, InitializesWithMaxInputValues) { … }
TEST_F(ExtensionTelemetryConfigManagerTest, SavesAndLoadsConfigFromPrefs) { … }
TEST_F(ExtensionTelemetryConfigManagerTest,
ReturnsDefaultValuesIfNoPrefsDataPresent) { … }
}