#include "components/autofill/core/browser/data_model/autofill_structured_address_name.h"
#include <stddef.h>
#include <map>
#include <string>
#include <vector>
#include "base/feature_list.h"
#include "base/logging.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/scoped_feature_list.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_test_utils.h"
#include "components/autofill/core/browser/data_model/autofill_structured_address_utils.h"
#include "components/autofill/core/common/autofill_features.h"
#include "testing/gtest/include/gtest/gtest.h"
ASCIIToUTF16;
namespace autofill {
AddressComponentTestValues;
namespace {
struct NameParserTestRecord { … };
struct LastNameParserTestRecord { … };
void TestNameParsing(const std::u16string& full,
const std::u16string& first,
const std::u16string& middle,
const std::u16string& last,
const std::u16string& last_first,
const std::u16string& last_conjunction,
const std::u16string& last_second) { … }
void TestLastNameParsing(const std::u16string& last_name,
const std::u16string& target_first,
const std::u16string& target_conjunction,
const std::u16string& target_second) { … }
}
TEST(AutofillStructuredName, ParseLastName) { … }
TEST(AutofillStructuredName, ParseFullName) { … }
TEST(AutofillStructuredName, HasCjkNameCharacteristics) { … }
TEST(AutofillStructuredName, HasHispanicLatinxNameCharacteristics) { … }
TEST(AutofillStructuredName, HasMiddleNameInitialsCharacteristics) { … }
TEST(AutofillStructuredName, ReduceToInitials) { … }
TEST(AutofillStructuredName, GetNameMiddleInitial) { … }
TEST(AutofillStructuredName, TestGetSupportedTypes_FullName) { … }
TEST(AutofillStructuredName, TestSettingMiddleNameInitial) { … }
TEST(AutofillStructuredName, MergePermutedNames) { … }
TEST(AutofillStructuredName, TestPopulationOfNameFull) { … }
TEST(AutofillStructuredName,
MergeNamesByCombiningSubstructureObservations_FullName) { … }
TEST(AutofillStructuredName, TestCopyConstructor) { … }
TEST(AutofillStructuredName,
MigrationFromLegacyStructure_WithFullName_Unverified) { … }
TEST(AutofillStructuredName, MigrationFromLegacyStructure_WithoutFullName) { … }
TEST(AutofillStructuredName, MergeSubsetLastname) { … }
TEST(AutofillStructuredName, MergeSubsetLastname_WithNonSpaceSeparators) { … }
TEST(AutofillStructuredName, MergeSubsetLastname2) { … }
}