#include "components/autofill/core/browser/form_parsing/parsing_test_utils.h"
#include "base/strings/utf_string_conversions.h"
#include "components/autofill/core/browser/form_parsing/buildflags.h"
#include "components/autofill/core/common/autofill_features.h"
namespace autofill {
namespace {
void UpdateRanks(std::vector<std::unique_ptr<AutofillField>>& fields) { … }
}
std::vector<PatternProviderFeatureState> PatternProviderFeatureState::All() { … }
FormFieldParserTestBase::FormFieldParserTestBase(
PatternProviderFeatureState pattern_provider_feature_state) { … }
FormFieldParserTestBase::~FormFieldParserTestBase() = default;
void FormFieldParserTestBase::AddFormFieldData(FormControlType control_type,
std::string_view name,
std::string_view label,
std::string_view placeholder,
int max_length,
FieldType expected_type) { … }
void FormFieldParserTestBase::AddFormFieldData(FormControlType control_type,
std::string_view name,
std::string_view label,
FieldType expected_type) { … }
void FormFieldParserTestBase::AddSelectOneFormFieldData(
std::string_view name,
std::string_view label,
const std::vector<SelectOption>& options,
FieldType expected_type) { … }
void FormFieldParserTestBase::AddTextFormFieldData(std::string_view name,
std::string_view label,
FieldType expected_type) { … }
void FormFieldParserTestBase::ClassifyAndVerify(
ParseResult parse_result,
const GeoIpCountryCode& client_country,
const LanguageCode& page_language) { … }
void FormFieldParserTestBase::ClassifyAndVerifyWithMultipleParses(
const GeoIpCountryCode& client_country,
const LanguageCode& page_language) { … }
void FormFieldParserTestBase::TestClassificationExpectations() { … }
FieldRendererId FormFieldParserTestBase::MakeFieldRendererId() { … }
void FormFieldParserTestBase::ClearFieldsAndExpectations() { … }
}