Home
last modified time | relevance | path

Searched refs:invalidNumber (Results 1 – 2 of 2) sorted by relevance

/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
DPhoneNumberUtilTest.java1180 PhoneNumber invalidNumber = new PhoneNumber(); in testIsValidForRegion() local
1182 invalidNumber.setCountryCode(3923).setNationalNumber(2366L); in testIsValidForRegion()
1183 assertFalse(phoneUtil.isValidNumberForRegion(invalidNumber, RegionCode.ZZ)); in testIsValidForRegion()
1184 assertFalse(phoneUtil.isValidNumberForRegion(invalidNumber, RegionCode.UN001)); in testIsValidForRegion()
1185 invalidNumber.setCountryCode(0); in testIsValidForRegion()
1186 assertFalse(phoneUtil.isValidNumberForRegion(invalidNumber, RegionCode.UN001)); in testIsValidForRegion()
1187 assertFalse(phoneUtil.isValidNumberForRegion(invalidNumber, RegionCode.ZZ)); in testIsValidForRegion()
1193 PhoneNumber invalidNumber = new PhoneNumber(); in testIsNotValidNumber() local
1194 invalidNumber.setCountryCode(39).setNationalNumber(23661830000L).setItalianLeadingZero(true); in testIsNotValidNumber()
1195 assertFalse(phoneUtil.isValidNumber(invalidNumber)); in testIsNotValidNumber()
[all …]
DShortNumberInfoTest.java100 PhoneNumber invalidNumber = new PhoneNumber(); in testGetExpectedCost() local
101 invalidNumber.setCountryCode(33).setNationalNumber(116123L); in testGetExpectedCost()
102 assertFalse(shortInfo.isValidShortNumber(invalidNumber)); in testGetExpectedCost()
104 shortInfo.getExpectedCost(invalidNumber)); in testGetExpectedCost()