#include "base/functional/callback_helpers.h"
#include "base/run_loop.h"
#include "chrome/browser/ui/autofill/payments/webauthn_dialog.h"
#include "chrome/browser/ui/autofill/payments/webauthn_dialog_controller_impl.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/webauthn_dialog_view.h"
#include "content/public/test/browser_test.h"
namespace autofill {
namespace {
constexpr char kOfferDialogName[] = …;
constexpr char kVerifyDialogName[] = …;
}
class WebauthnDialogBrowserTest : public DialogBrowserTest { … };
IN_PROC_BROWSER_TEST_F(WebauthnDialogBrowserTest, InvokeUi_Offer) { … }
IN_PROC_BROWSER_TEST_F(WebauthnDialogBrowserTest,
OfferDialog_CanCloseTabWhileDialogShowing) { … }
IN_PROC_BROWSER_TEST_F(WebauthnDialogBrowserTest,
OfferDialog_CanCloseBrowserWhileDialogShowing) { … }
IN_PROC_BROWSER_TEST_F(WebauthnDialogBrowserTest,
OfferDialog_ClickCancelButton) { … }
IN_PROC_BROWSER_TEST_F(WebauthnDialogBrowserTest, InvokeUi_Verify) { … }
IN_PROC_BROWSER_TEST_F(WebauthnDialogBrowserTest,
VerifyPendingDialog_CanCloseTabWhileDialogShowing) { … }
IN_PROC_BROWSER_TEST_F(WebauthnDialogBrowserTest,
VerifyPendingDialog_CanCloseBrowserWhileDialogShowing) { … }
IN_PROC_BROWSER_TEST_F(WebauthnDialogBrowserTest,
VerifyPendingDialog_VerificationFinishes) { … }
IN_PROC_BROWSER_TEST_F(WebauthnDialogBrowserTest,
VerifyPendingDialog_ClickCancelButton) { … }
}