#include "components/autofill/core/browser/form_parsing/address_field_parser_ng.h"
#include <memory>
#include "base/memory/ptr_util.h"
#include "components/autofill/core/browser/field_types.h"
#include "components/autofill/core/browser/form_parsing/parsing_test_utils.h"
#include "components/autofill/core/common/autofill_features.h"
#include "components/autofill/core/common/form_field_data.h"
namespace autofill {
namespace {
void InitFeaturesForIN(base::test::ScopedFeatureList& features) { … }
}
class AddressFieldParserTestNG
: public FormFieldParserTestBase,
public ::testing::TestWithParam<PatternProviderFeatureState> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(AddressFieldParserTestNG, Empty) { … }
TEST_P(AddressFieldParserTestNG, NonParse) { … }
TEST_P(AddressFieldParserTestNG, ParseOneLineAddress) { … }
TEST_P(AddressFieldParserTestNG, ParseTwoLineAddress) { … }
TEST_P(AddressFieldParserTestNG, ParseThreeLineAddress) { … }
TEST_P(AddressFieldParserTestNG, ParseStreetAddressFromTextArea) { … }
TEST_P(AddressFieldParserTestNG, ParseStreetNameAndHouseNumber) { … }
TEST_P(AddressFieldParserTestNG,
ParseStreetNameAndHouseNumberAndApartmentNumber) { … }
TEST_P(AddressFieldParserTestNG, ParseAsAddressLine2AfterStreetNameNotEnabled) { … }
TEST_P(AddressFieldParserTestNG, ParseAsAddressLine2AfterStreetNameEnabled) { … }
TEST_P(AddressFieldParserTestNG, NotParseStreetNameWithoutHouseNumber) { … }
TEST_P(AddressFieldParserTestNG, NotParseHouseNumberWithoutStreetName) { … }
TEST_P(AddressFieldParserTestNG, ParseDependentLocality) { … }
TEST_P(AddressFieldParserTestNG, ParseLandmark) { … }
TEST_P(AddressFieldParserTestNG, ParseBetweenStreets) { … }
TEST_P(AddressFieldParserTestNG, ParseBetweenStreetsLines) { … }
TEST_P(AddressFieldParserTestNG, ParseAdminLevel2) { … }
TEST_P(AddressFieldParserTestNG, ParseOverflow) { … }
TEST_P(AddressFieldParserTestNG, ParseOverflowAndLandmark) { … }
TEST_P(AddressFieldParserTestNG, ParseCity) { … }
TEST_P(AddressFieldParserTestNG, ParseState) { … }
TEST_P(AddressFieldParserTestNG, ParseZip) { … }
TEST_P(AddressFieldParserTestNG, ParseZipFileExtension) { … }
TEST_P(AddressFieldParserTestNG, ParseStateAndZipOneLabel) { … }
TEST_P(AddressFieldParserTestNG, ParseCountry) { … }
TEST_P(AddressFieldParserTestNG, ParseCompany) { … }
TEST_P(AddressFieldParserTestNG,
ParseDependentLocalityCityStateCountryZipcodeTogether) { … }
TEST_P(AddressFieldParserTestNG, ParseAmbiguousCountryState) { … }
TEST_P(AddressFieldParserTestNG, ParseAmbiguousCountryState2) { … }
TEST_P(AddressFieldParserTestNG, ParseTurkishCityStateWithLabelPrecedence) { … }
TEST_P(AddressFieldParserTestNG, NotParseAddressName_TR) { … }
TEST_P(AddressFieldParserTestNG, NotParseAddressName_BR) { … }
TEST_P(AddressFieldParserTestNG, ParseAddressComponentsSequenceAsAddressLine1) { … }
TEST_P(AddressFieldParserTestNG,
ParseAddressComponentsSequenceAsStreetAddress) { … }
TEST_P(AddressFieldParserTestNG, IN_Building_Locality_Landmark) { … }
TEST_P(AddressFieldParserTestNG, IN_Building_Locality_Landmark_AsAddressLines) { … }
TEST_P(AddressFieldParserTestNG, IN_Building_LocalityAndLandmark) { … }
TEST_P(AddressFieldParserTestNG, IN_BuildingAndLocality_Landmark) { … }
TEST_P(AddressFieldParserTestNG, IN_BuildingAndLandmark_Locality) { … }
}