chromium/chrome/browser/payments/secure_payment_confirmation_opt_out_browsertest.cc

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

#include "chrome/browser/payments/secure_payment_confirmation_browsertest.h"
#include "components/autofill/core/browser/test_event_waiter.h"
#include "components/payments/content/payment_manifest_web_data_service.h"
#include "components/payments/content/secure_payment_confirmation_app.h"
#include "components/payments/core/secure_payment_confirmation_credential.h"
#include "components/webdata_services/web_data_service_wrapper_factory.h"
#include "content/public/test/browser_test.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace payments {
namespace {

SecurePaymentConfirmationOptOutTest;

Event2;

IN_PROC_BROWSER_TEST_F(SecurePaymentConfirmationOptOutTest,
                       ShowOptOutOfferedAndTaken) {}

IN_PROC_BROWSER_TEST_F(SecurePaymentConfirmationOptOutTest,
                       ShowOptOutOfferedButNotTaken) {}

IN_PROC_BROWSER_TEST_F(SecurePaymentConfirmationOptOutTest,
                       ShowOptOutNotOffered) {}

IN_PROC_BROWSER_TEST_F(SecurePaymentConfirmationOptOutTest,
                       ShowOptOutDefaultsToNotOffered) {}

IN_PROC_BROWSER_TEST_F(SecurePaymentConfirmationOptOutTest,
                       ShowOptOutNoMatchingCredsOfferedAndTaken) {}

IN_PROC_BROWSER_TEST_F(SecurePaymentConfirmationOptOutTest,
                       ShowOptOutNoMatchingCredsOfferedButNotTaken) {}

IN_PROC_BROWSER_TEST_F(SecurePaymentConfirmationOptOutTest,
                       ShowOptOutNoMatchingCredsNotOffered) {}

IN_PROC_BROWSER_TEST_F(SecurePaymentConfirmationOptOutTest,
                       ShowOptOutNoMatchingCredsDefaultsToNotOffered) {}

class SecurePaymentConfirmationOptOutDisabledTest
    : public SecurePaymentConfirmationOptOutTest {};

// The SPC opt-out experience should not be available if the Blink runtime flag
// is disabled.
IN_PROC_BROWSER_TEST_F(SecurePaymentConfirmationOptOutDisabledTest,
                       RequiresRuntimeFlag) {}

}  // namespace
}  // namespace payments