#include "base/strings/utf_string_conversions.h"
#include "base/test/metrics/histogram_tester.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/autofill_test_utils.h"
#include "components/autofill/core/browser/data_model/autofill_profile.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/gtest/include/gtest/gtest.h"
#include "ui/views/controls/label.h"
#include "ui/views/view.h"
namespace payments {
namespace {
class PaymentRequestShowPromiseTest : public PaymentRequestBrowserTestBase { … };
IN_PROC_BROWSER_TEST_F(PaymentRequestShowPromiseTest, SingleOptionShipping) { … }
IN_PROC_BROWSER_TEST_F(PaymentRequestShowPromiseTest,
SingleOptionShippingWithUpdate) { … }
IN_PROC_BROWSER_TEST_F(PaymentRequestShowPromiseTest, CannotShipError) { … }
IN_PROC_BROWSER_TEST_F(PaymentRequestShowPromiseTest, SkipUI) { … }
IN_PROC_BROWSER_TEST_F(PaymentRequestShowPromiseTest, Reject) { … }
IN_PROC_BROWSER_TEST_F(PaymentRequestShowPromiseTest, Timeout) { … }
IN_PROC_BROWSER_TEST_F(PaymentRequestShowPromiseTest,
UnsupportedPaymentMethod) { … }
IN_PROC_BROWSER_TEST_F(PaymentRequestShowPromiseTest, InvalidDetails) { … }
IN_PROC_BROWSER_TEST_F(PaymentRequestShowPromiseTest,
ResolveWithEmptyDictionary) { … }
IN_PROC_BROWSER_TEST_F(PaymentRequestShowPromiseTest,
ResolveWithEmptyListsOfItems) { … }
}
}