#include "components/autofill/core/browser/autofill_data_util.h"
#include "base/strings/utf_string_conversions.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/data_model/autofill_profile.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace autofill {
namespace data_util {
namespace {
kAddress;
kEmail;
kName;
kPhone;
TEST(AutofillDataUtilTest, DetermineGroupsForHomeNameAndAddress) { … }
TEST(AutofillDataUtilTest, DetermineGroupsForHomeNamePhoneAndEmail) { … }
TEST(AutofillDataUtilTest, DetermineGroupsForUnknownFieldType) { … }
TEST(AutofillDataUtilTest, DetermineGroupsForNoFieldTypes) { … }
struct IsCJKNameTestCase { … };
class IsCJKNameTest : public testing::TestWithParam<IsCJKNameTestCase> { … };
TEST_P(IsCJKNameTest, IsCJKName) { … }
INSTANTIATE_TEST_SUITE_P(…);
struct FullNameTestCase { … };
class SplitNameTest : public testing::TestWithParam<FullNameTestCase> { … };
TEST_P(SplitNameTest, SplitName) { … }
INSTANTIATE_TEST_SUITE_P(…);
class JoinNamePartsTest : public testing::TestWithParam<FullNameTestCase> { … };
TEST_P(JoinNamePartsTest, JoinNameParts) { … }
INSTANTIATE_TEST_SUITE_P(…);
struct ValidCountryCodeTestCase { … };
class ValidCountryCodeTest
: public testing::TestWithParam<ValidCountryCodeTestCase> { … };
TEST_P(ValidCountryCodeTest, ValidCountryCode) { … }
INSTANTIATE_TEST_SUITE_P(…);
}
}
}