#include "components/autofill/core/browser/data_model/phone_number.h"
#include <string>
#include "base/containers/contains.h"
#include "base/feature_list.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/autofill_type.h"
#include "components/autofill/core/browser/data_model/autofill_profile.h"
#include "components/autofill/core/browser/field_types.h"
#include "components/autofill/core/browser/geo/phone_number_i18n.h"
#include "components/autofill/core/common/autofill_features.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
ASCIIToUTF16;
namespace autofill {
constexpr char kLocale[] = …;
struct MatchingTypesTestCase { … };
void MatchingTypesTest(const std::u16string& number,
const std::u16string& country,
bool trunk_types_enabled,
const std::vector<MatchingTypesTestCase>& tests) { … }
TEST(PhoneNumberTest, Matcher) { … }
TEST(PhoneNumberTest, Matcher_TrunkTypes) { … }
TEST(PhoneNumberTest, Matcher_DisambiguateWholeNumber) { … }
TEST(PhoneNumberTest, CountryCodeNotInMatchingTypes) { … }
TEST(PhoneNumberTest, Matcher_DE) { … }
TEST(PhoneNumberTest, Matcher_TrunkTypes_DE) { … }
TEST(PhoneNumberTest, SetInfo) { … }
TEST(PhoneNumberTest, InferCountryCallingCode) { … }
TEST(PhoneNumberTest, UpdateCachedPhoneNumber) { … }
TEST(PhoneNumberTest, PhoneCombineHelper) { … }
TEST(PhoneNumberTest, HelperSetsAllPhoneFieldTypes) { … }
TEST(PhoneNumberTest, InternationalPhoneHomeCityAndNumber_US) { … }
TEST(PhoneNumberTest, InternationalPhoneHomeCityAndNumber_DE) { … }
TEST(PhoneNumberTest, TrunkPrefix) { … }
TEST(PhoneNumberTest, NumberPreAndSuffixes) { … }
TEST(PhoneNumberTest, Extension) { … }
struct PhoneImportAndGetTestCase { … };
class PhoneImportAndGetTest
: public ::testing::TestWithParam<PhoneImportAndGetTestCase> { … };
TEST_P(PhoneImportAndGetTest, TestSettingAndParsing) { … }
INSTANTIATE_TEST_SUITE_P(…);
}