#include "components/autofill/core/browser/form_parsing/address_field_parser.h"
#include <memory>
#include <vector>
#include "base/memory/ptr_util.h"
#include "base/test/scoped_feature_list.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 {
class AddressFieldParserTest
: public FormFieldParserTestBase,
public ::testing::TestWithParam<PatternProviderFeatureState> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(AddressFieldParserTest, Empty) { … }
TEST_P(AddressFieldParserTest, NonParse) { … }
TEST_P(AddressFieldParserTest, ParseOneLineAddress) { … }
TEST_P(AddressFieldParserTest, ParseTwoLineAddress) { … }
TEST_P(AddressFieldParserTest, ParseThreeLineAddress) { … }
TEST_P(AddressFieldParserTest, ParseStreetAddressFromTextArea) { … }
TEST_P(AddressFieldParserTest, ParseOneLineAddressPL) { … }
TEST_P(AddressFieldParserTest, ParseStreetNameAndHouseNumberAptPL) { … }
TEST_P(AddressFieldParserTest, ParseStreetNameAndHouseNumbertPL) { … }
TEST_P(AddressFieldParserTest, ParseStreetNameHouseNumbertAndAptNumPL) { … }
TEST_P(AddressFieldParserTest, ParseStreetNameAndHouseNumber) { … }
TEST_P(AddressFieldParserTest,
ParseStreetNameAndHouseNumberAndApartmentNumber) { … }
TEST_P(AddressFieldParserTest, ParseAsAddressLine2AfterStreetNameNotEnabled) { … }
TEST_P(AddressFieldParserTest, ParseAsAddressLine2AfterStreetNameEnabled) { … }
TEST_P(AddressFieldParserTest, NotParseStreetNameWithoutHouseNumber) { … }
TEST_P(AddressFieldParserTest, NotParseHouseNumberWithoutStreetName) { … }
TEST_P(AddressFieldParserTest, ParseDependentLocality) { … }
TEST_P(AddressFieldParserTest, ParseLandmark) { … }
TEST_P(AddressFieldParserTest, ParseBetweenStreets) { … }
TEST_P(AddressFieldParserTest, ParseBetweenStreetsLines) { … }
TEST_P(AddressFieldParserTest, ParseAdminLevel2) { … }
TEST_P(AddressFieldParserTest, ParseOverflow) { … }
TEST_P(AddressFieldParserTest, ParseOverflowAndLandmark) { … }
TEST_P(AddressFieldParserTest, ParseCity) { … }
TEST_P(AddressFieldParserTest, ParseState) { … }
TEST_P(AddressFieldParserTest, ParseZip) { … }
TEST_P(AddressFieldParserTest, ParseZipFileExtension) { … }
TEST_P(AddressFieldParserTest, ParseStateAndZipOneLabel) { … }
TEST_P(AddressFieldParserTest, ParseCountry) { … }
TEST_P(AddressFieldParserTest, ParseCompany) { … }
TEST_P(AddressFieldParserTest,
ParseDependentLocalityCityStateCountryZipcodeTogether) { … }
TEST_P(AddressFieldParserTest, ParseAmbiguousCountryState) { … }
TEST_P(AddressFieldParserTest, ParseAmbiguousCountryState2) { … }
TEST_P(AddressFieldParserTest, ParseTurkishCityStateWithLabelPrecedence) { … }
TEST_P(AddressFieldParserTest, NotParseAddressName_TR) { … }
TEST_P(AddressFieldParserTest, NotParseAddressName_BR) { … }
TEST_P(AddressFieldParserTest, ParseAddressComponentsSequenceAsAddressLine1) { … }
TEST_P(AddressFieldParserTest, ParseAddressComponentsSequenceAsStreetAddress) { … }
}