#include "components/autofill/core/browser/geo/phone_number_i18n.h"
#include <stddef.h>
#include <string>
#include "base/feature_list.h"
#include "base/strings/strcat.h"
#include "base/strings/utf_string_conversions.h"
#include "components/autofill/core/browser/data_model/autofill_profile.h"
#include "components/autofill/core/browser/field_types.h"
#include "components/autofill/core/common/autofill_features.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/libphonenumber/phonenumber_api.h"
namespace autofill {
ConstructPhoneNumber;
NormalizePhoneNumber;
ParsePhoneNumber;
PhoneNumbersMatch;
TEST(PhoneNumberI18NTest, NormalizePhoneNumber) { … }
struct ParseNumberTestCase { … };
namespace {
std::u16string GenerateTooLongString() { … }
}
class ParseNumberTest : public testing::TestWithParam<ParseNumberTestCase> { … };
TEST_P(ParseNumberTest, ParsePhoneNumber) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST(PhoneNumberI18NTest, ConstructPhoneNumber) { … }
TEST(PhoneNumberI18NTest, PhoneNumbersMatch) { … }
TEST(PhoneNumberUtilTest, FormatPhoneForResponse) { … }
TEST(PhoneNumberUtilTest, FormatPhoneNationallyForDisplay) { … }
TEST(PhoneNumberUtilTest, FormatPhoneForDisplay) { … }
struct PhoneNumberFormatCase { … };
class GetFormattedPhoneNumberForDisplayTest
: public testing::TestWithParam<PhoneNumberFormatCase> { … };
TEST_P(GetFormattedPhoneNumberForDisplayTest,
GetFormattedPhoneNumberForDisplay) { … }
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
}