Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/net/
DHostAndPortTest.java217 assertEquals("::1", HostAndPort.fromString("[::1]").requireBracketsForIPv6().getHostText()); in testRequireBracketsForIPv6()
218 assertEquals("::1", HostAndPort.fromString("[::1]:80").requireBracketsForIPv6().getHostText()); in testRequireBracketsForIPv6()
220 assertEquals("x", HostAndPort.fromString("x").requireBracketsForIPv6().getHostText()); in testRequireBracketsForIPv6()
221 assertEquals("x", HostAndPort.fromString("x:80").requireBracketsForIPv6().getHostText()); in testRequireBracketsForIPv6()
225 HostAndPort.fromString("::1").requireBracketsForIPv6(); in testRequireBracketsForIPv6()
/external/guava/guava/src/com/google/common/net/
DHostAndPort.java270 public HostAndPort requireBracketsForIPv6() { in requireBracketsForIPv6() method in HostAndPort