chromium/chrome/browser/payments/payment_handler_enforce_full_delegation_browsertest.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/test/scoped_feature_list.h"
#include "chrome/test/payments/payment_request_platform_browsertest_base.h"
#include "components/payments/core/features.h"
#include "content/public/test/browser_test.h"

namespace payments {
namespace {

enum EnforceFullDelegationFlag {};

class PaymentHandlerEnforceFullDelegationTest
    : public PaymentRequestPlatformBrowserTestBase,
      public testing::WithParamInterface<EnforceFullDelegationFlag> {};

IN_PROC_BROWSER_TEST_P(PaymentHandlerEnforceFullDelegationTest,
                       ShowPaymentSheetWhenOnlySomeAppsAreSkipped) {}

// crbug.com/1468262: Flaky test on Android.
// crbug.com/1473404: Flaky test on ChromeOS and Windows.
#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN)
#define MAYBE_WhenEnabled_ShowPaymentSheet_WhenDisabled_Reject
#else
#define MAYBE_WhenEnabled_ShowPaymentSheet_WhenDisabled_Reject
#endif
IN_PROC_BROWSER_TEST_P(PaymentHandlerEnforceFullDelegationTest,
                       MAYBE_WhenEnabled_ShowPaymentSheet_WhenDisabled_Reject) {}

// Run all tests with both values for
// features::kEnforceFullDelegation.
INSTANTIATE_TEST_SUITE_P();
}  // namespace
}  // namespace payments