#include "components/autofill/core/browser/data_model/autofill_i18n_api.h"
#include <string>
#include <type_traits>
#include "base/containers/contains.h"
#include "base/ranges/algorithm.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/scoped_feature_list.h"
#include "components/autofill/core/browser/data_model/autofill_i18n_formatting_expressions.h"
#include "components/autofill/core/browser/data_model/autofill_i18n_parsing_expressions.h"
#include "components/autofill/core/browser/data_model/autofill_structured_address.h"
#include "components/autofill/core/browser/data_model/autofill_structured_address_component_test_api.h"
#include "components/autofill/core/browser/data_model/autofill_structured_address_format_provider.h"
#include "components/autofill/core/browser/data_model/autofill_structured_address_name.h"
#include "components/autofill/core/browser/field_types.h"
#include "components/autofill/core/browser/geo/country_data.h"
#include "components/autofill/core/common/autofill_features.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace autofill::i18n_model_definition {
namespace {
bool IsTree(AddressComponent* node, FieldTypeSet* visited_types) { … }
}
class AutofillI18nApiTest : public testing::Test { … };
TEST_F(AutofillI18nApiTest, GetAddressComponentModel_ReturnsNonEmptyModel) { … }
TEST_F(AutofillI18nApiTest, GetAddressComponentModel_ReturnedModelIsTree) { … }
TEST_F(AutofillI18nApiTest, GetAddressComponentModel_CountryNodeHasValue) { … }
TEST_F(AutofillI18nApiTest, GetLegacyAddressHierarchy) { … }
TEST_F(AutofillI18nApiTest, GetFormattingExpressions) { … }
TEST_F(AutofillI18nApiTest, ParseValueByI18nRegularExpression) { … }
TEST_F(AutofillI18nApiTest, GetStopwordsExpression) { … }
TEST_F(AutofillI18nApiTest, IsTypeEnabledForCountry) { … }
TEST_F(AutofillI18nApiTest, IsSynthesizedType) { … }
TEST_F(AutofillI18nApiTest, SynthesizedTypesAreAccessible) { … }
TEST_F(AutofillI18nApiTest, SynthesizedTypesAreSupportedButNotStorable) { … }
TEST_F(AutofillI18nApiTest, SynthesizedTypesDoNotSupportSetValueForType) { … }
}