Lines Matching refs:IsViablePhoneNumber
72 bool IsViablePhoneNumber(const string& number) const { in IsViablePhoneNumber() function in i18n::phonenumbers::PhoneNumberUtilTest
73 return phone_util_.IsViablePhoneNumber(number); in IsViablePhoneNumber()
137 EXPECT_TRUE(IsViablePhoneNumber(input)); in TEST_F()
149 EXPECT_FALSE(IsViablePhoneNumber(input)); in TEST_F()
2852 TEST_F(PhoneNumberUtilTest, IsViablePhoneNumber) { in TEST_F() argument
2853 EXPECT_FALSE(IsViablePhoneNumber("1")); in TEST_F()
2855 EXPECT_FALSE(IsViablePhoneNumber("1+1+1")); in TEST_F()
2856 EXPECT_FALSE(IsViablePhoneNumber("80+0")); in TEST_F()
2858 EXPECT_TRUE(IsViablePhoneNumber("00")); in TEST_F()
2859 EXPECT_TRUE(IsViablePhoneNumber("111")); in TEST_F()
2861 EXPECT_TRUE(IsViablePhoneNumber("0800-4-pizza")); in TEST_F()
2862 EXPECT_TRUE(IsViablePhoneNumber("0800-4-PIZZA")); in TEST_F()
2864 EXPECT_FALSE(IsViablePhoneNumber("08-PIZZA")); in TEST_F()
2865 EXPECT_FALSE(IsViablePhoneNumber("8-PIZZA")); in TEST_F()
2866 EXPECT_FALSE(IsViablePhoneNumber("12. March")); in TEST_F()
2872 EXPECT_TRUE(IsViablePhoneNumber("1\xE3\x80\x80" "34" /* "1 34" */)); in TEST_F()
2873 EXPECT_FALSE(IsViablePhoneNumber("1\xE3\x80\x80" "3+4" /* "1 3+4" */)); in TEST_F()
2876 EXPECT_TRUE(IsViablePhoneNumber("\xEF\xBC\x88" "1\xEF\xBC\x89\xE3\x80\x80" in TEST_F()
2879 EXPECT_TRUE(IsViablePhoneNumber("+1\xEF\xBC\x89\xE3\x80\x80" in TEST_F()