HomeSort by relevance Sort by last modified time
    Searched full:domainmatches (Results 1 - 5 of 5) sorted by null

  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
HttpCookieTest.java 96 * @tests java.net.HttpCookie#domainMatches(String, String).
107 boolean match = HttpCookie.domainMatches("hostname", "hostname");
110 match = HttpCookie.domainMatches(".com", "test.com");
113 match = HttpCookie.domainMatches(".com.", "test.com");
118 match = HttpCookie.domainMatches(".local", "hostname");
126 match = HttpCookie.domainMatches(".c.d", "a.b.c.d");
129 match = HttpCookie.domainMatches(".foo.com", "y.x.foo.com");
132 match = HttpCookie.domainMatches(".foo.com", "x.foo.com");
135 match = HttpCookie.domainMatches(".local", "hostname.local");
138 match = HttpCookie.domainMatches(".ajax.com", "a.ajax.com")
    [all...]
  /libcore/luni/src/main/java/java/net/
CookiePolicy.java 53 return HttpCookie.domainMatches(cookie.getDomain(), uri.getHost());
CookieStoreImpl.java 90 if (!HttpCookie.domainMatches(cookie.getDomain(), uri.getHost())) {
HttpCookie.java 89 public static boolean domainMatches(String domainPattern, String host) {
  /libcore/luni/src/test/java/libcore/java/net/
CookiesTest.java 392 assertFalse(HttpCookie.domainMatches("localhost", "localhost"));
393 assertFalse(HttpCookie.domainMatches("b", "b"));
397 assertTrue(HttpCookie.domainMatches("127.0.0.1", "127.0.0.1"));
398 assertFalse(HttpCookie.domainMatches("127.0.0.1", "127.0.0.0"));
399 assertFalse(HttpCookie.domainMatches("127.0.0.1", "localhost"));
414 assertTrue(HttpCookie.domainMatches(".android.com", "WWW.ANDROID.COM"));
415 assertFalse(HttpCookie.domainMatches("android.com", "WWW.ANDROID.COM"));

Completed in 188 milliseconds