#include <memory>
#include <string>
#include <tuple>
#include <vector>
#include "base/strings/utf_string_conversions.h"
#include "base/test/scoped_feature_list.h"
#include "components/autofill/core/browser/autofill_field.h"
#include "components/autofill/core/browser/form_parsing/autofill_scanner.h"
#include "components/autofill/core/browser/form_parsing/form_field_parser.h"
#include "components/autofill/core/browser/form_parsing/parsing_test_utils.h"
#include "components/autofill/core/browser/form_structure.h"
#include "components/autofill/core/common/autofill_features.h"
#include "components/autofill/core/common/autofill_payments_features.h"
#include "testing/gmock/include/gmock/gmock-matchers.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace autofill {
class FormFieldParserTest
: public FormFieldParserTestBase,
public ::testing::TestWithParam<PatternProviderFeatureState> { … };
INSTANTIATE_TEST_SUITE_P(…);
struct MatchTestCase { … };
class MatchTest : public testing::TestWithParam<MatchTestCase> { … };
const MatchTestCase kMatchTestCases[]{ … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(MatchTest, Match) { … }
TEST_P(FormFieldParserTest, ParseFormFieldsIgnoreCheckableElements) { … }
TEST_P(FormFieldParserTest, ParseFormFieldsEnforceMinFillableFields) { … }
TEST_P(FormFieldParserTest, TestParseableLabels) { … }
TEST_P(FormFieldParserTest, ParseSingleFieldFormsInsideParseFormField) { … }
TEST_P(FormFieldParserTest, ParseFormFieldsForSingleFieldPromoCode) { … }
TEST_P(FormFieldParserTest, ParseSingleFieldFormsIban) { … }
TEST_P(FormFieldParserTest, ParseStandaloneCVCFields) { … }
struct ParseInAnyOrderTestcase { … };
class ParseInAnyOrderTest
: public testing::TestWithParam<ParseInAnyOrderTestcase> { … };
const ParseInAnyOrderTestcase kParseInAnyOrderTestcases[]{ … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(ParseInAnyOrderTest, ParseInAnyOrder) { … }
TEST_P(FormFieldParserTest, ParseFormRequires3DistinctFieldTypes) { … }
TEST_P(FormFieldParserTest, ParseStandaloneZipDisabledForUS) { … }
TEST_P(FormFieldParserTest, ParseStandaloneZipEnabledForBR) { … }
TEST_P(FormFieldParserTest, ParseStandaloneEmail) { … }
TEST_P(FormFieldParserTest, ParseStandaloneEmailWithNoEmailFields) { … }
TEST_P(FormFieldParserTest, ParseStandaloneEmailSimilarToAddressName) { … }
}