#include <string>
#include <utility>
#include "base/command_line.h"
#include "base/containers/contains.h"
#include "base/feature_list.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/metrics/histogram_samples.h"
#include "base/metrics/statistics_recorder.h"
#include "base/path_service.h"
#include "base/run_loop.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/run_until.h"
#include "base/test/scoped_feature_list.h"
#include "base/threading/thread_restrictions.h"
#include "build/build_config.h"
#include "build/buildflag.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/password_manager/chrome_password_manager_client.h"
#include "chrome/browser/password_manager/password_manager_test_base.h"
#include "chrome/browser/password_manager/password_manager_uitest_util.h"
#include "chrome/browser/password_manager/passwords_navigation_observer.h"
#include "chrome/browser/password_manager/profile_password_store_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/autofill/chrome_autofill_client.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_navigator_params.h"
#include "chrome/browser/ui/login/login_handler.h"
#include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h"
#include "chrome/browser/ui/tabs/tab_enums.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/browser/ui/test/test_browser_dialog.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/autofill/content/browser/content_autofill_client.h"
#include "components/autofill/content/browser/content_autofill_driver.h"
#include "components/autofill/content/browser/content_autofill_driver_factory.h"
#include "components/autofill/content/browser/test_autofill_client_injector.h"
#include "components/autofill/content/common/mojom/autofill_driver.mojom-test-utils.h"
#include "components/autofill/content/common/mojom/autofill_driver.mojom.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/field_types.h"
#include "components/autofill/core/browser/proto/api_v1.pb.h"
#include "components/autofill/core/common/autofill_features.h"
#include "components/autofill/core/common/autofill_switches.h"
#include "components/autofill/core/common/form_field_data.h"
#include "components/autofill/core/common/mojom/autofill_types.mojom-shared.h"
#include "components/autofill/core/common/unique_ids.h"
#include "components/input/native_web_keyboard_event.h"
#include "components/password_manager/content/browser/content_password_manager_driver.h"
#include "components/password_manager/content/browser/content_password_manager_driver_factory.h"
#include "components/password_manager/core/browser/features/password_features.h"
#include "components/password_manager/core/browser/form_parsing/password_field_prediction.h"
#include "components/password_manager/core/browser/http_auth_manager.h"
#include "components/password_manager/core/browser/http_auth_observer.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_client.h"
#include "components/password_manager/core/browser/password_manager_driver.h"
#include "components/password_manager/core/browser/password_store/password_store_interface.h"
#include "components/password_manager/core/browser/password_store/test_password_store.h"
#include "components/password_manager/core/common/password_manager_features.h"
#include "components/signin/public/base/signin_buildflags.h"
#include "components/version_info/version_info.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
#include "content/public/test/back_forward_cache_util.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/content_browser_test_utils.h"
#include "content/public/test/prerender_test_util.h"
#include "content/public/test/test_utils.h"
#include "content/public/test/url_loader_interceptor.h"
#include "google_apis/gaia/gaia_switches.h"
#include "net/base/filename_util.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/http_request.h"
#include "net/test/embedded_test_server/http_response.h"
#include "services/network/public/cpp/is_potentially_trustworthy.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "third_party/blink/public/common/input/web_input_event.h"
#include "third_party/blink/public/common/input/web_keyboard_event.h"
#include "ui/events/keycodes/keyboard_codes.h"
#include "ui/gfx/geometry/point.h"
#if BUILDFLAG(ENABLE_DICE_SUPPORT)
#include "chrome/browser/password_manager/password_manager_signin_intercept_test_helper.h"
#include "chrome/browser/signin/dice_web_signin_interceptor.h"
#include "chrome/browser/signin/identity_manager_factory.h"
#include "components/signin/public/identity_manager/identity_manager.h"
#include "components/signin/public/identity_manager/primary_account_mutator.h"
#endif
ParsingResult;
CreateFieldPrediction;
ASCIIToUTF16;
Feature;
_;
ElementsAre;
Field;
Pair;
SizeIs;
namespace password_manager {
namespace {
class PasswordManagerBrowserTest : public PasswordManagerBrowserTestBase { … };
class PasswordManagerAutofillPopupBrowserTest
: public PasswordManagerBrowserTest { … };
class PasswordManagerVotingBrowserTest : public PasswordManagerBrowserTest { … };
class PasswordManagerBackForwardCacheBrowserTest
: public PasswordManagerBrowserTest { … };
class MockHttpAuthObserver : public password_manager::HttpAuthObserver { … };
GURL GetFileURL(const char* filename) { … }
std::unique_ptr<net::test_server::HttpResponse> HandleTestAuthRequest(
const net::test_server::HttpRequest& request) { … }
void TestPromptNotShown(const char* failure_message,
content::WebContents* web_contents) { … }
std::string GeneratePasswordFormForAction(const GURL& action_url) { … }
void InjectBlankFrameWithPasswordForm(content::WebContents* web_contents,
const GURL& action_url) { … }
void InjectFrameWithPasswordForm(content::WebContents* web_contents,
const GURL& action_url) { … }
void SubmitInjectedPasswordForm(content::WebContents* web_contents,
content::RenderFrameHost* frame,
const GURL& action_url) { … }
void SetUrlAsTrustworthy(const std::string& url) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, PromptForNormalSubmit) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, NoPromptIfFormReappeared) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PromptIfChangePasswordFormReappearedEmpty) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
NoPromptIfFormReappearedWithPartsHidden) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
NoPromptIfFormReappearedInputOutsideFor) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
NoPromptAfterCredentialsAPIPasswordStore) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PromptForSubmitWithSameDocumentNavigation) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
LoginSuccessWithUnrelatedForm) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, LoginFailed) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PromptForSubmitUsingJavaScript) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, PromptForDynamicForm) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, NoPromptForNavigation) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
NoPromptForSubFrameNavigation) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
NoPromptForSameFormWithDifferentAction) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, NoPromptForActionMutation) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
NoPromptForFormWithEnteredUsername) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PromptForDifferentFormWithEmptyAction) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PromptAfterSubmitWithSubFrameNavigation) { … }
IN_PROC_BROWSER_TEST_F(
PasswordManagerBrowserTest,
NoPromptForFailedLoginFromMainFrameWithMultiFramesSameDocument) { … }
IN_PROC_BROWSER_TEST_F(
PasswordManagerBrowserTest,
NoPromptForFailedLoginFromSubFrameWithMultiFramesSameDocument) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, PromptForXHRSubmit) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PromptForXHRSubmitWithoutNavigation) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PromptForXHRSubmitWithoutNavigation_SignupForm) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
NoPromptForXHRSubmitWithoutNavigationWithUnfilledForm) { … }
IN_PROC_BROWSER_TEST_F(
PasswordManagerBrowserTest,
NoPromptForXHRSubmitWithoutNavigationWithUnfilledForm_SignupForm) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, PromptForFetchSubmit) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PromptForFetchSubmitWithoutNavigation) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PromptForFetchSubmitWithoutNavigation_SignupForm) { … }
IN_PROC_BROWSER_TEST_F(
PasswordManagerBrowserTest,
NoPromptForFetchSubmitWithoutNavigationWithUnfilledForm) { … }
IN_PROC_BROWSER_TEST_F(
PasswordManagerBrowserTest,
NoPromptForFetchSubmitWithoutNavigationWithUnfilledForm_SignupForm) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, NoPromptIfLinkClicked) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerVotingBrowserTest,
VerifyPasswordGenerationUpload) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, PromptForSubmitFromIframe) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PromptForInputElementWithoutName) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PromptForInputElementWithoutId) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PromptForInputElementWithoutIdAndName) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, NoPromptForFileSchemeURLs) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
NoPromptForLandingPageWithHTTPErrorStatusCode) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, DeleteFrameBeforeSubmit) { … }
class PasswordManagerOverwritePlaceholderTest
: public PasswordManagerBrowserTest { … };
IN_PROC_BROWSER_TEST_F(PasswordManagerOverwritePlaceholderTest,
FillIfServerPredictionSaysUsernameIsPlaceholder) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerOverwritePlaceholderTest,
NonPlaceholderPasswordNotOverwritten) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
FillIfUsernameIsPlaceholder) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
UsernameAndPasswordValueAccessible) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PasswordValueAccessibleOnSubmit) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
DontPromptForPasswordFormWithDefaultValue) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
DontPromptForPasswordFormWithReadonlyPasswordField) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PromptWhenEnableAutomaticPasswordSavingSwitchIsNotSet) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, NoPromptWhenReloading) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
FormsAddedBetweenParsingAndRendering) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
HiddenFormAddedBetweenParsingAndRendering) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, SlowPageFill) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, NoLastLoadGoodLastLoad) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PreferPasswordFormManagerWhichFinishedMatching) { … }
IN_PROC_BROWSER_TEST_F(
PasswordManagerBrowserTest,
NoPromptForSeparateLoginFormWhenSwitchingFromHttpsToHttp) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
HttpMigratedCredentialAutofilled) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
ObsoleteHttpCredentialMovedOnMigrationToHstsSite) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PromptWhenPasswordFormWithoutUsernameFieldSubmitted) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, ReCreatedFormsGetFilled) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, DuplicateFormsGetFilled) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
DeletedPasswordIsNotRevived) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PromptForPushStateWhenFormDisappears) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
NoPromptForPushStateWhenFormPersists) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PromptForPushStateWhenFormWithEmptyActionDisappears) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PromptForPushStateWhenFormWithEmptyActionPersists) { … }
IN_PROC_BROWSER_TEST_F(
PasswordManagerBrowserTest,
PromptForPushStateWhenFormDisappears_ParametersInOrigins) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PromptForPushStateWhenFormPersists_ParametersInOrigins) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerAutofillPopupBrowserTest,
InFrameNavigationDoesNotClearPopupState) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, ChangePwdFormBubbleShown) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
ChangePwdFormPushStateBubbleShown) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, NoPromptOnBack) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
ChangingTextToPasswordFieldOnSignupForm) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
SavingOnManyPasswordFieldsTest) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
SaveWhenIFrameDestroyedOnFormSubmit) { … }
IN_PROC_BROWSER_TEST_F(
PasswordManagerBrowserTest,
IFrameDetachedRightAfterFormSubmission_UpdateBubbleShown) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PSLMatchedCrossSiteFillTest) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PSLUnMatchedCrossSiteFillTest) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
SameOriginIframeAutoFillTest) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, ChangePwdNoAccountStored) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, ChangePwd1AccountStored) { … }
class PasswordManagerBrowserTestWithAutofillDisabled
: public PasswordManagerBrowserTest { … };
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTestWithAutofillDisabled,
PasswordOverriddenUpdateBubbleShown) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PasswordNotOverriddenUpdateBubbleNotShown) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
MultiplePasswordsWithPasswordSelectionEnabled) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
ChangePwdWhenTheFormContainNotUsernameTextfield) { … }
IN_PROC_BROWSER_TEST_F(
PasswordManagerBrowserTest,
AutofillSuggestionsForPasswordFormWithAmbiguousIdAttribute) { … }
IN_PROC_BROWSER_TEST_F(
PasswordManagerBrowserTest,
AutofillSuggestionsForPasswordFormWithoutNameOrIdAttribute) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
AutofillSuggestionsForChangePwdWithEmptyNames) { … }
IN_PROC_BROWSER_TEST_F(
PasswordManagerBrowserTest,
AutofillSuggestionsForChangePwdWithEmptyNamesAndAutocomplete) { … }
IN_PROC_BROWSER_TEST_F(
PasswordManagerBrowserTest,
AutofillSuggestionsForChangePwdWithEmptyNamesButOnlyNewPwdField) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, BasicAuthSeparateRealms) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, ProxyAuthFilling) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
AutofillSuggestionsHiddenPasswordForm) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
AutofillSuggestionsForProblematicPasswordForm) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
AutofillSuggestionsForProblematicAmbiguousPasswordForm) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
DISABLED_InternalsPage_Renderer) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, InternalsPage_Browser) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PasswordRetryFormSaveNoUsernameCredentials) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PasswordRetryFormNoBubbleWhenPasswordTheSame) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PasswordRetryFormUpdateBubbleShown) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
NoCrashWhenNavigatingWithOpenAccountPicker) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
PromptForSubmitWithAutocompleteOff) { … }
IN_PROC_BROWSER_TEST_F(
PasswordManagerBrowserTest,
SkipZeroClickNotToggledAfterSuccessfulSubmissionWithAPI) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
SkipZeroClickNotToggledAfterSuccessfulAutofill) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, ReattachWebContents) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
FillWhenFormWithHiddenUsername) { … }
class PasswordManagerDialogBrowserTest
: public SupportsTestDialog<PasswordManagerBrowserTestBase> { … };
IN_PROC_BROWSER_TEST_F(PasswordManagerDialogBrowserTest, InvokeUi_normal) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, AboutBlankFramesAreIgnored) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, AboutBlankPopupsAreIgnored) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
ExistingAboutBlankPasswordsAreNotUsed) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
NoRendererKillWithDataURLFrames) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
NoRendererKillWithBlobURLFrames) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, CorrectEntryForHttpAuth) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
HTTPAuthRealmAfterHTMLBlocklistedIsNotBlocked) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
HTMLLoginAfterHTTPAuthBlocklistedIsNotBlocked) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
HTMLLoginAfterHTMLBlocklistedIsBlocklisted) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
NoSilentOverwriteOnPSLMatch) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
NoFillGaiaReauthenticationForm) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
NoFillGaiaWithSkipSavePasswordForm) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, FormDynamicallyChanged) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, ParserAnnotations) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
ProfileTypeMetricSubmission) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBackForwardCacheBrowserTest,
SavePasswordOnRestoredPage) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBackForwardCacheBrowserTest,
NotCachedIfCredentialsAPIUsed) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBackForwardCacheBrowserTest,
CredentialsAPIOnlyCalledOnRestoredPage) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
DetectFormSubmissionOnIframe) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
ShowPasswordManagerNoBrowser) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, FormWithoutTextInputs) { … }
#if BUILDFLAG(ENABLE_DICE_SUPPORT)
class PasswordManagerBrowserTestWithSigninInterception
: public PasswordManagerBrowserTest { … };
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTestWithSigninInterception,
InterceptionBubbleSuppressedByPasswordUpdate) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTestWithSigninInterception,
SaveGaiaPassword) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTestWithSigninInterception,
SavePasswordSuppressedBeforeSignin) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTestWithSigninInterception,
SavePasswordSuppressedAfterSignin) { … }
#endif
class MockPrerenderPasswordManagerDriver
: public autofill::mojom::PasswordManagerDriverInterceptorForTesting { … };
class MockPrerenderPasswordManagerDriverInjector
: public content::WebContentsObserver { … };
class PasswordManagerPrerenderBrowserTest : public PasswordManagerBrowserTest { … };
IN_PROC_BROWSER_TEST_F(PasswordManagerPrerenderBrowserTest,
ChromePasswordManagerClientInPrerender) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerPrerenderBrowserTest,
SavePasswordInPrerender) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerPrerenderBrowserTest,
MojoDeferringInPrerender) { … }
class MockPasswordManagerDriverInjector : public content::WebContentsObserver { … };
class PasswordManagerCredentiallessIframeTest
: public PasswordManagerBrowserTest { … };
IN_PROC_BROWSER_TEST_F(PasswordManagerCredentiallessIframeTest, NoFormsSeen) { … }
IN_PROC_BROWSER_TEST_F(PasswordManagerCredentiallessIframeTest,
DisablePasswordManagerOnCredentiallessIframe) { … }
}
}