#include <string>
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/ui/views/payments/payment_request_browsertest_base.h"
#include "chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h"
#include "components/autofill/core/browser/address_data_manager.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/personal_data_manager.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
namespace payments {
namespace {
const char16_t kNameFull[] = …;
const char16_t kPhoneNumber[] = …;
const char16_t kPhoneNumberInvalid[] = …;
const char16_t kEmailAddress[] = …;
const char16_t kEmailAddressInvalid[] = …;
std::string GetLocale() { … }
}
#if BUILDFLAG(IS_MAC)
#define MAYBE_PaymentRequestContactInfoEditorTest …
#else
#define MAYBE_PaymentRequestContactInfoEditorTest …
#endif
class MAYBE_PaymentRequestContactInfoEditorTest
: public PaymentRequestBrowserTestBase { … };
IN_PROC_BROWSER_TEST_F(MAYBE_PaymentRequestContactInfoEditorTest, HappyPath) { … }
IN_PROC_BROWSER_TEST_F(MAYBE_PaymentRequestContactInfoEditorTest,
EnterAcceleratorHappyPath) { … }
IN_PROC_BROWSER_TEST_F(MAYBE_PaymentRequestContactInfoEditorTest, Validation) { … }
IN_PROC_BROWSER_TEST_F(MAYBE_PaymentRequestContactInfoEditorTest,
ModifyExisting) { … }
IN_PROC_BROWSER_TEST_F(MAYBE_PaymentRequestContactInfoEditorTest,
ModifyExistingSelectsIt) { … }
IN_PROC_BROWSER_TEST_F(MAYBE_PaymentRequestContactInfoEditorTest,
HappyPathInIncognito) { … }
IN_PROC_BROWSER_TEST_F(MAYBE_PaymentRequestContactInfoEditorTest,
RetryWithPayerErrors) { … }
IN_PROC_BROWSER_TEST_F(
MAYBE_PaymentRequestContactInfoEditorTest,
RetryWithPayerErrors_HasSameValueButDifferentErrorsShown) { … }
IN_PROC_BROWSER_TEST_F(MAYBE_PaymentRequestContactInfoEditorTest,
RetryWithPayerErrors_NoPaymentOptions) { … }
}