#include "base/test/metrics/histogram_tester.h"
#include "build/build_config.h"
#include "chrome/browser/ui/autofill/payments/view_factory.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/test/test_browser_dialog.h"
#include "chrome/browser/ui/views/autofill/payments/card_unmask_authentication_selection_dialog_view.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/metrics/autofill_metrics.h"
#include "components/autofill/core/browser/ui/payments/card_unmask_authentication_selection_dialog_controller_impl.h"
#include "content/public/test/browser_test.h"
namespace autofill {
class CardUnmaskAuthenticationSelectionDialogBrowserTestBase
: public DialogBrowserTest { … };
class CardUnmaskAuthenticationSelectionDialogBrowserTestNonParameterized
: public CardUnmaskAuthenticationSelectionDialogBrowserTestBase { … };
IN_PROC_BROWSER_TEST_F(
CardUnmaskAuthenticationSelectionDialogBrowserTestNonParameterized,
AcceptedByUserAfterSelectingCvcAuthResultsMetricsLoggedAsExpected) { … }
ChallengeOptionTypes;
class CardUnmaskAuthenticationSelectionDialogBrowserTestParameterized
: public CardUnmaskAuthenticationSelectionDialogBrowserTestBase,
public testing::WithParamInterface<ChallengeOptionTypes> { … };
INSTANTIATE_TEST_SUITE_P(…);
IN_PROC_BROWSER_TEST_P(
CardUnmaskAuthenticationSelectionDialogBrowserTestParameterized,
InvokeUi_CardUnmaskAuthSelectionDialogDisplays) { … }
IN_PROC_BROWSER_TEST_P(
CardUnmaskAuthenticationSelectionDialogBrowserTestParameterized,
CanCloseTabWhileDialogShowing) { … }
IN_PROC_BROWSER_TEST_P(
CardUnmaskAuthenticationSelectionDialogBrowserTestParameterized,
CanCloseBrowserWhileDialogShowing) { … }
IN_PROC_BROWSER_TEST_P(
CardUnmaskAuthenticationSelectionDialogBrowserTestParameterized,
CanceledByUserAfterSelectionResultsMetricsLoggedAsExpected) { … }
}