#include "chrome/browser/ssl/generated_https_first_mode_pref.h"
#include <memory>
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "base/values.h"
#include "chrome/browser/extensions/api/settings_private/generated_pref_test_base.h"
#include "chrome/browser/extensions/api/settings_private/generated_prefs_factory.h"
#include "chrome/browser/safe_browsing/advanced_protection_status_manager.h"
#include "chrome/browser/safe_browsing/advanced_protection_status_manager_factory.h"
#include "chrome/browser/signin/identity_test_environment_profile_adaptor.h"
#include "chrome/browser/ssl/https_first_mode_settings_tracker.h"
#include "chrome/common/chrome_features.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/base/testing_profile.h"
#include "components/signin/public/identity_manager/identity_test_environment.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
settings_api;
settings_private;
constexpr char kEmail[] = …;
class GeneratedHttpsFirstModePrefTest : public testing::Test { … };
TEST_F(GeneratedHttpsFirstModePrefTest,
AdvancedProtectionStatusChange_InitiallySignedIn) { … }
TEST_F(GeneratedHttpsFirstModePrefTest,
AdvancedProtectionStatusChange_InitiallyNotSignedIn) { … }
TEST_F(GeneratedHttpsFirstModePrefTest, UpdatePreference) { … }
TEST_F(GeneratedHttpsFirstModePrefTest, UpdatePref_HttpsFirstModeNewSettings) { … }
TEST_F(GeneratedHttpsFirstModePrefTest, ManagementState) { … }
TEST_F(GeneratedHttpsFirstModePrefTest,
ManagementState_HttpsFirstModeNewSettings) { … }
TEST_F(GeneratedHttpsFirstModePrefTest, SettingChangedMetricsLogged) { … }
TEST_F(GeneratedHttpsFirstModePrefTest,
SettingChangedMetricsLogged_BalancedMode) { … }