Searched refs:cookieManager (Results 1 – 9 of 9) sorted by relevance
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowCookieManagerTest.java | 15 private final CookieManager cookieManager = CookieManager.getInstance(); field in ShadowCookieManagerTest 25 CookieManager cookieManager = CookieManager.getInstance(); in shouldSetAndGetACookie() local 28 cookieManager.setCookie(url, value); in shouldSetAndGetACookie() 29 assertThat(cookieManager.getCookie(url)).isEqualTo(value); in shouldSetAndGetACookie() 34 CookieManager cookieManager = CookieManager.getInstance(); in shouldGetCookieForUrl() local 37 cookieManager.setCookie(url1, value1); in shouldGetCookieForUrl() 41 cookieManager.setCookie(url2, value2); in shouldGetCookieForUrl() 43 assertThat(cookieManager.getCookie("http://www.google.com")).isEqualTo(value1); in shouldGetCookieForUrl() 44 assertThat(cookieManager.getCookie(url2)).isEqualTo(value2); in shouldGetCookieForUrl() 49 CookieManager cookieManager = CookieManager.getInstance(); in shouldGetCookieForHostInDomain() local [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
D | CookiesTest.java | 64 CookieManager cookieManager = new CookieManager(null, ACCEPT_ORIGINAL_SERVER); in testNetscapeResponse() local 65 CookieHandler.setDefault(cookieManager); in testNetscapeResponse() 76 List<HttpCookie> cookies = cookieManager.getCookieStore().getCookies(); in testNetscapeResponse() 92 CookieManager cookieManager = new CookieManager(null, ACCEPT_ORIGINAL_SERVER); in testRfc2109Response() local 93 CookieHandler.setDefault(cookieManager); in testRfc2109Response() 106 List<HttpCookie> cookies = cookieManager.getCookieStore().getCookies(); in testRfc2109Response() 122 CookieManager cookieManager = new CookieManager(null, ACCEPT_ORIGINAL_SERVER); in testRfc2965Response() local 123 CookieHandler.setDefault(cookieManager); in testRfc2965Response() 139 List<HttpCookie> cookies = cookieManager.getCookieStore().getCookies(); in testRfc2965Response() 156 CookieManager cookieManager = new CookieManager(null, ACCEPT_ORIGINAL_SERVER); in testQuotedAttributeValues() local [all …]
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowCookieManager.java | 11 private static RoboCookieManager cookieManager; field in ShadowCookieManager 16 cookieManager = null; in resetCookies() 21 if (cookieManager == null) { in getInstance() 22 cookieManager = new RoboCookieManager(); in getInstance() 24 return cookieManager; in getInstance()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | OkHttpClientTest.java | 114 CookieManager cookieManager = new CookieManager(); in copyWithDefaultsWhenDefaultIsGlobal() local 120 CookieManager.setDefault(cookieManager); in copyWithDefaultsWhenDefaultIsGlobal() 127 assertSame(cookieManager, client.getCookieHandler()); in copyWithDefaultsWhenDefaultIsGlobal()
|
D | CallTest.java | 1408 CookieManager cookieManager = new CookieManager(null, ACCEPT_ORIGINAL_SERVER); in redirectsDoNotIncludeTooManyCookies() local 1414 cookieManager.getCookieStore().add(server.url("/").uri(), cookie); in redirectsDoNotIncludeTooManyCookies() 1415 client.setCookieHandler(cookieManager); in redirectsDoNotIncludeTooManyCookies()
|
D | CacheTest.java | 83 private final CookieManager cookieManager = new CookieManager(); field in CacheTest 89 CookieHandler.setDefault(cookieManager); in setUp() 1791 for (HttpCookie cookie : cookieManager.getCookieStore().get(url.uri())) { in assertCookies()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/ |
D | HttpOverSpdyTest.java | 374 CookieManager cookieManager = new CookieManager(); in acceptAndTransmitCookies() local 375 client.client().setCookieHandler(cookieManager); in acceptAndTransmitCookies() 387 cookieManager.get(url.uri(), requestHeaders)); in acceptAndTransmitCookies()
|
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/ |
D | ResponseCacheTest.java | 101 private CookieManager cookieManager; field in ResponseCacheTest 111 cookieManager = new CookieManager(); in setUp() 112 CookieManager.setDefault(cookieManager); in setUp() 1563 for (HttpCookie cookie : cookieManager.getCookieStore().get(url.toURI())) { in assertCookies()
|
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/ |
D | UrlConnectionCacheTest.java | 88 private final CookieManager cookieManager = new CookieManager(); field in UrlConnectionCacheTest 94 CookieHandler.setDefault(cookieManager); in setUp() 1498 for (HttpCookie cookie : cookieManager.getCookieStore().get(url.toURI())) { in assertCookies()
|