#include <vector>
#include "base/strings/utf_string_conversions.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/test/test_browser_dialog.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 "chrome/common/webui_url_constants.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/data_model/autofill_profile.h"
#include "components/autofill/core/browser/data_model/credit_card.h"
#include "components/payments/content/payment_request.h"
#include "components/web_modal/web_contents_modal_dialog_manager.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "ui/views/controls/link.h"
#include "ui/views/controls/styled_label.h"
#include "url/gurl.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "chrome/browser/ash/system_web_apps/system_web_app_manager.h"
#endif
namespace payments {
namespace {
UnorderedElementsAre;
class PaymentRequestTest : public PaymentRequestBrowserTestBase { … };
IN_PROC_BROWSER_TEST_F(PaymentRequestTest, MultipleRequests) { … }
class PaymentRequestNoShippingTest : public PaymentRequestBrowserTestBase { … };
IN_PROC_BROWSER_TEST_F(PaymentRequestNoShippingTest, OpenAndNavigateTo404) { … }
IN_PROC_BROWSER_TEST_F(PaymentRequestNoShippingTest, OpenAndNavigateToSame) { … }
IN_PROC_BROWSER_TEST_F(PaymentRequestNoShippingTest, OpenAndReload) { … }
IN_PROC_BROWSER_TEST_F(PaymentRequestNoShippingTest, OpenAndClickCancel) { … }
IN_PROC_BROWSER_TEST_F(PaymentRequestNoShippingTest,
OrderSummaryAndClickCancel) { … }
IN_PROC_BROWSER_TEST_F(PaymentRequestNoShippingTest,
DISABLED_InactiveBrowserWindow) { … }
IN_PROC_BROWSER_TEST_F(PaymentRequestNoShippingTest, InvalidSSL) { … }
PaymentRequestAbortTest;
IN_PROC_BROWSER_TEST_F(PaymentRequestAbortTest, OpenThenAbort) { … }
PaymentRequestPaymentMethodIdentifierTest;
IN_PROC_BROWSER_TEST_F(PaymentRequestPaymentMethodIdentifierTest, Url_Valid) { … }
class PaymentsRequestVisualTest
: public SupportsTestDialog<PaymentRequestNoShippingTest> { … };
IN_PROC_BROWSER_TEST_F(PaymentsRequestVisualTest, InvokeUi_NoShipping) { … }
PaymentRequestSettingsLinkTest;
IN_PROC_BROWSER_TEST_F(PaymentRequestSettingsLinkTest, ClickSettingsLink) { … }
}
}