#include "chrome/browser/ui/passwords/manage_passwords_test.h"
#include <string>
#include <utility>
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/password_manager/password_manager_test_base.h"
#include "chrome/browser/password_manager/profile_password_store_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/signin/identity_manager_factory.h"
#include "chrome/browser/sync/sync_service_factory.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_command_controller.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "components/autofill/core/common/form_data_test_api.h"
#include "components/password_manager/core/browser/form_saver.h"
#include "components/password_manager/core/browser/form_saver_impl.h"
#include "components/password_manager/core/browser/mock_password_form_manager_for_ui.h"
#include "components/password_manager/core/browser/password_form.h"
#include "components/password_manager/core/browser/password_form_manager.h"
#include "components/password_manager/core/browser/password_manager_metrics_util.h"
#include "components/password_manager/core/browser/password_manager_test_utils.h"
#include "components/password_manager/core/browser/password_save_manager_impl.h"
#include "components/password_manager/core/browser/password_store/test_password_store.h"
#include "components/password_manager/core/browser/possible_username_data.h"
#include "components/password_manager/core/browser/stub_form_saver.h"
#include "components/password_manager/core/common/password_manager_features.h"
#include "components/password_manager/core/common/password_manager_pref_names.h"
#include "components/signin/public/identity_manager/account_info.h"
#include "components/signin/public/identity_manager/identity_test_utils.h"
#include "components/sync/test/test_sync_service.h"
#include "content/public/test/test_utils.h"
ASCIIToUTF16;
PasswordFormManager;
PossibleUsernameData;
PossibleUsernameFieldIdentifier;
Return;
ReturnRef;
namespace {
constexpr char16_t kTestUsername[] = …;
}
ManagePasswordsTest::ManagePasswordsTest() { … }
ManagePasswordsTest::~ManagePasswordsTest() = default;
void ManagePasswordsTest::SetUpOnMainThread() { … }
void ManagePasswordsTest::SetUpInProcessBrowserTestFixture() { … }
void ManagePasswordsTest::ExecuteManagePasswordsCommand() { … }
void ManagePasswordsTest::SetupManagingPasswords(
const GURL& password_form_url) { … }
void ManagePasswordsTest::SetupPendingPassword() { … }
void ManagePasswordsTest::SetupAutomaticPassword() { … }
void ManagePasswordsTest::SetupAutoSignin(
std::vector<std::unique_ptr<password_manager::PasswordForm>>
local_credentials) { … }
void ManagePasswordsTest::SetupSafeState() { … }
void ManagePasswordsTest::SetupMoreToFixState() { … }
void ManagePasswordsTest::SetupMovingPasswords() { … }
void ManagePasswordsTest::ConfigurePasswordSync(
SyncConfiguration configuration) { … }
std::unique_ptr<base::HistogramSamples> ManagePasswordsTest::GetSamples(
const char* histogram) { … }
ManagePasswordsUIController* ManagePasswordsTest::GetController() { … }
std::unique_ptr<PasswordFormManager> ManagePasswordsTest::CreateFormManager(
password_manager::PasswordStoreInterface* profile_store,
password_manager::PasswordStoreInterface* account_store) { … }