Home
last modified time | relevance | path

Searched refs:isLiteralIpAddress (Results 1 – 4 of 4) sorted by relevance

/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DAddressUtilsTest.java54 assertTrue(AddressUtils.isLiteralIpAddress("127.0.0.1")); in test_isLiteralIpAddress_IPv4_Success()
55 assertTrue(AddressUtils.isLiteralIpAddress("255.255.255.255")); in test_isLiteralIpAddress_IPv4_Success()
56 assertTrue(AddressUtils.isLiteralIpAddress("0.0.00.000")); in test_isLiteralIpAddress_IPv4_Success()
57 assertTrue(AddressUtils.isLiteralIpAddress("192.009.010.19")); in test_isLiteralIpAddress_IPv4_Success()
58 assertTrue(AddressUtils.isLiteralIpAddress("254.249.190.094")); in test_isLiteralIpAddress_IPv4_Success()
62 assertFalse(AddressUtils.isLiteralIpAddress("127.0.0.1a")); in test_isLiteralIpAddress_IPv4_ExtraCharacters_Failure()
63 assertFalse(AddressUtils.isLiteralIpAddress(" 255.255.255.255")); in test_isLiteralIpAddress_IPv4_ExtraCharacters_Failure()
64 assertFalse(AddressUtils.isLiteralIpAddress("0.0.00.0009")); in test_isLiteralIpAddress_IPv4_ExtraCharacters_Failure()
65 assertFalse(AddressUtils.isLiteralIpAddress("192.009z.010.19")); in test_isLiteralIpAddress_IPv4_ExtraCharacters_Failure()
66 assertFalse(AddressUtils.isLiteralIpAddress("254.249..094")); in test_isLiteralIpAddress_IPv4_ExtraCharacters_Failure()
[all …]
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DAddressUtilsTest.java56 assertTrue(AddressUtils.isLiteralIpAddress("127.0.0.1")); in test_isLiteralIpAddress_IPv4_Success()
57 assertTrue(AddressUtils.isLiteralIpAddress("255.255.255.255")); in test_isLiteralIpAddress_IPv4_Success()
58 assertTrue(AddressUtils.isLiteralIpAddress("0.0.00.000")); in test_isLiteralIpAddress_IPv4_Success()
59 assertTrue(AddressUtils.isLiteralIpAddress("192.009.010.19")); in test_isLiteralIpAddress_IPv4_Success()
60 assertTrue(AddressUtils.isLiteralIpAddress("254.249.190.094")); in test_isLiteralIpAddress_IPv4_Success()
64 assertFalse(AddressUtils.isLiteralIpAddress("127.0.0.1a")); in test_isLiteralIpAddress_IPv4_ExtraCharacters_Failure()
65 assertFalse(AddressUtils.isLiteralIpAddress(" 255.255.255.255")); in test_isLiteralIpAddress_IPv4_ExtraCharacters_Failure()
66 assertFalse(AddressUtils.isLiteralIpAddress("0.0.00.0009")); in test_isLiteralIpAddress_IPv4_ExtraCharacters_Failure()
67 assertFalse(AddressUtils.isLiteralIpAddress("192.009z.010.19")); in test_isLiteralIpAddress_IPv4_ExtraCharacters_Failure()
68 assertFalse(AddressUtils.isLiteralIpAddress("254.249..094")); in test_isLiteralIpAddress_IPv4_ExtraCharacters_Failure()
[all …]
/external/conscrypt/common/src/main/java/org/conscrypt/
DAddressUtils.java46 && !isLiteralIpAddress(sniHostname) in isValidSniHostname()
54 static boolean isLiteralIpAddress(String hostname) { in isLiteralIpAddress() method in AddressUtils
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DAddressUtils.java47 && !isLiteralIpAddress(sniHostname) && !sniHostname.endsWith(".") in isValidSniHostname()
54 static boolean isLiteralIpAddress(String hostname) { in isLiteralIpAddress() method in AddressUtils