chromium/components/autofill/core/browser/data_model/credit_card_benefit_test_api.h

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

#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_DATA_MODEL_CREDIT_CARD_BENEFIT_TEST_API_H_
#define COMPONENTS_AUTOFILL_CORE_BROWSER_DATA_MODEL_CREDIT_CARD_BENEFIT_TEST_API_H_

#include "base/memory/raw_ref.h"
#include "components/autofill/core/browser/data_model/credit_card_benefit.h"
#include "url/origin.h"

namespace autofill {

// Exposes some testing operations for CreditCardBenefitBase shared fields.
class CreditCardBenefitBaseTestApi {};

// Exposes some testing operations for CreditCardCategoryBenefit.
class CreditCardCategoryBenefitTestApi : public CreditCardBenefitBaseTestApi {};

// Exposes some testing operations for CreditCardMerchantBenefit.
class CreditCardMerchantBenefitTestApi : public CreditCardBenefitBaseTestApi {};

inline CreditCardBenefitBaseTestApi test_api(CreditCardBenefit& benefit) {}

inline CreditCardBenefitBaseTestApi test_api(CreditCardBenefitBase& benefit) {}

inline CreditCardCategoryBenefitTestApi test_api(
    CreditCardCategoryBenefit& category_benefit) {}

inline CreditCardMerchantBenefitTestApi test_api(
    CreditCardMerchantBenefit& merchant_benefit) {}

}  // namespace autofill

#endif  // COMPONENTS_AUTOFILL_CORE_BROWSER_DATA_MODEL_CREDIT_CARD_BENEFIT_TEST_API_H_