#include "components/autofill/core/browser/form_parsing/merchant_promo_code_field_parser.h"
#include "components/autofill/core/browser/form_parsing/parsing_test_utils.h"
#include "components/autofill/core/common/autofill_payments_features.h"
ASCIIToUTF16;
namespace autofill {
class MerchantPromoCodeFieldParserTest
: public FormFieldParserTestBase,
public testing::TestWithParam<PatternProviderFeatureState> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(MerchantPromoCodeFieldParserTest, ParsePromoCode) { … }
TEST_P(MerchantPromoCodeFieldParserTest, ParsePromotionalCode) { … }
TEST_P(MerchantPromoCodeFieldParserTest, ParsePromoCodeWithPrefixAndSuffix) { … }
TEST_P(MerchantPromoCodeFieldParserTest, ParseCouponCode) { … }
TEST_P(MerchantPromoCodeFieldParserTest, ParseGiftCode) { … }
TEST_P(MerchantPromoCodeFieldParserTest, ParseDiscountCode) { … }
TEST_P(MerchantPromoCodeFieldParserTest, ParseNonPromoCode) { … }
}