// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <string> #include "chrome/test/payments/payment_request_platform_browsertest_base.h" #include "content/public/test/browser_test.h" #include "content/public/test/browser_test_utils.h" namespace payments { namespace { class PaymentHandlerEnableDelegationsTest : public PaymentRequestPlatformBrowserTestBase { … }; IN_PROC_BROWSER_TEST_F(PaymentHandlerEnableDelegationsTest, InvalidDelegations) { … } // Since the payment handler can provide shipping and there is only one app, the // browser skips the payment sheet and goes straight to payment processing. IN_PROC_BROWSER_TEST_F(PaymentHandlerEnableDelegationsTest, ShippingDelegation) { … } // Since the payment handler can provide the contact information and there is // only one app, the browser should skip the payment sheet and go straight to // payment processing. IN_PROC_BROWSER_TEST_F(PaymentHandlerEnableDelegationsTest, ContactDelegation) { … } // Since the payment handler can provide the shipping address and contact // information and there is only one app, the browser should skip the payment // sheet and go straight to payment processing. IN_PROC_BROWSER_TEST_F(PaymentHandlerEnableDelegationsTest, AllDelegations) { … } // Shipping section must exist in payment sheet since shipping address is // requested and won't be provided by the selected payment handler. IN_PROC_BROWSER_TEST_F(PaymentHandlerEnableDelegationsTest, PartialDelegation_ShippingNotSupported) { … } // Contact section must exist in payment sheet since payer's name and email are // requested and won't be provided by the selected payment handler. IN_PROC_BROWSER_TEST_F(PaymentHandlerEnableDelegationsTest, PartialDelegation_ContactInfoNotSupported) { … } } // namespace } // namespace payments