#include "components/autofill/core/browser/ui/payments/card_unmask_prompt_view.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/memory/raw_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/single_thread_task_runner.h"
#include "build/build_config.h"
#include "chrome/browser/ui/autofill/payments/card_unmask_prompt_view_tester.h"
#include "chrome/browser/ui/autofill/payments/create_card_unmask_prompt_view.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/browser/ui/test/test_browser_dialog.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/payments/card_unmask_delegate.h"
#include "components/autofill/core/browser/payments/payments_autofill_client.h"
#include "components/autofill/core/browser/ui/payments/card_unmask_prompt_controller_impl.h"
#include "components/autofill/core/browser/ui/payments/card_unmask_prompt_options.h"
#include "components/user_prefs/user_prefs.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/test_utils.h"
namespace autofill {
namespace {
constexpr const char kExpiryExpired[] = …;
constexpr const char kExpiryValidTemporaryError[] = …;
constexpr const char kExpiryValidPermanentError[] = …;
class TestCardUnmaskDelegate : public CardUnmaskDelegate { … };
class TestCardUnmaskPromptController : public CardUnmaskPromptControllerImpl { … };
class CardUnmaskPromptViewBrowserTest : public DialogBrowserTest { … };
IN_PROC_BROWSER_TEST_F(CardUnmaskPromptViewBrowserTest, InvokeUi_expired) { … }
IN_PROC_BROWSER_TEST_F(CardUnmaskPromptViewBrowserTest, InvokeUi_valid) { … }
IN_PROC_BROWSER_TEST_F(CardUnmaskPromptViewBrowserTest,
InvokeUi_valid_TemporaryError) { … }
IN_PROC_BROWSER_TEST_F(CardUnmaskPromptViewBrowserTest,
InvokeUi_valid_PermanentError) { … }
IN_PROC_BROWSER_TEST_F(CardUnmaskPromptViewBrowserTest, DisplayUI) { … }
IN_PROC_BROWSER_TEST_F(CardUnmaskPromptViewBrowserTest,
EarlyCloseAfterSuccess) { … }
IN_PROC_BROWSER_TEST_F(CardUnmaskPromptViewBrowserTest,
CloseTabWhileDialogShowing) { … }
}
}