#include "chrome/browser/password_manager/generated_password_leak_detection_pref.h"
#include "base/memory/raw_ptr.h"
#include "build/chromeos_buildflags.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/signin/chrome_signin_client_factory.h"
#include "chrome/browser/signin/chrome_signin_client_test_util.h"
#include "chrome/browser/signin/identity_test_environment_profile_adaptor.h"
#include "chrome/browser/sync/sync_service_factory.h"
#include "chrome/test/base/testing_profile.h"
#include "components/password_manager/core/common/password_manager_pref_names.h"
#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
#include "components/signin/public/identity_manager/identity_test_environment.h"
#include "components/sync/test/test_sync_service.h"
#include "components/sync_preferences/testing_pref_service_syncable.h"
#include "content/public/test/browser_task_environment.h"
#include "services/network/test/test_url_loader_factory.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
constexpr char kTestProfileName[] = …;
std::unique_ptr<KeyedService> BuildTestSyncService(
content::BrowserContext* context) { … }
std::unique_ptr<TestingProfile> BuildTestProfile(
network::TestURLLoaderFactory& url_loader_factory) { … }
}
settings_api;
settings_private;
class GeneratedPasswordLeakDetectionPrefTest : public testing::Test { … };
TEST_F(GeneratedPasswordLeakDetectionPrefTest, NotifyPrefUpdates) { … }
TEST_F(GeneratedPasswordLeakDetectionPrefTest, UpdatePreference) { … }
TEST_F(GeneratedPasswordLeakDetectionPrefTest, ProfileState) { … }
TEST_F(GeneratedPasswordLeakDetectionPrefTest, ManagementState) { … }