History log of /libcore/luni/src/test/java/libcore/java/net/CookiesTest.java
Revision Date Author Comments
7363410d6ab95420d62cc5e2ee52801a693781eb 27-Jan-2016 Narayan Kamath <narayan@google.com> Revert "Revert "Cookies: Add targetSdkVersion based compatibility for domain matching.""

This reverts commit 225d1301a97641464a1b437219eb60853260b28c.

bug: 26456024
Change-Id: I1bf63a71a3b950b37a0fa8eb6e04c14f67fd8737
225d1301a97641464a1b437219eb60853260b28c 27-Jan-2016 Narayan Kamath <narayan@google.com> Revert "Cookies: Add targetSdkVersion based compatibility for domain matching."

This reverts commit 1e7abd80b139d532f53d6ca8a2a0b5671fa1fb43.

Change-Id: Iefc1342b628ee241bbb999b59ca0fa211bedf5b9
1e7abd80b139d532f53d6ca8a2a0b5671fa1fb43 27-Jan-2016 Narayan Kamath <narayan@google.com> Cookies: Add targetSdkVersion based compatibility for domain matching.

This change also consolidates our three CookieManager related tests
into a single test so that it can be easily extended to test both the
M compatibility mode and the current behaviour.

bug: 26456024
Change-Id: I153e69d471c83744c0420a07313e0fda70a80e6b
166e79a4003cd3fcb5d03c9306b48d9f19757065 16-Nov-2015 Neil Fuller <nfuller@google.com> Fix for CookieStoreImpl and more tests around Cookie handling

CookieStoreImpl was not using the same key for retrieval as
for storage. It was working because of the fall-back
"domain" match.

Bug: https://code.google.com/p/android/issues/detail?id=193475
Bug: 25682357
Change-Id: I57767d29525cc8697965c5272a6f6d8410b327d1
38af3fcf15a4e01f6557100b5328f479c3443e4d 14-Dec-2011 Jesse Wilson <jessewilson@google.com> Don't use ".local" if the local host name is fully qualified.

Running this test on the host will otherwise fail because the
host machine had a hostname like ridgeview.corp.android.com,
which doesn't match the ".local" domain.

Change-Id: Id81b01a4b87bb301fce1d7d64b6501990b9934c3
http://b/3041920
d9624e23a39f2ddf32dc51c3dabf60998567e762 25-Jul-2011 Jesse Wilson <jessewilson@google.com> Fix overly-strict cookie test.

My intention in this test was that derived headers were
passed to the cookie handler. I recently refactored the
HTTP client and some headers are now set very late; I need
to adjust this test's expectations to match.

Change-Id: Id605a213defaa25c0355ee581997233383658420
09336c914b4fc813e493acc82469b9ad89fd8694 07-Jun-2011 Jesse Wilson <jessewilson@google.com> Use external/mockwebserver in libcore

Change-Id: I4dac34f88b23484643bce31e5f25ac6eb1fea426
9531eea15052eccc004b5f853ab4452becf7a8ab 06-May-2011 Jesse Wilson <jessewilson@google.com> Test that headers aren't accidentally transferred across requests.

We used to have a bug where we'd only ever add headers. So if
a request was redirected from a.com to b.com to c.com, then
c.com would be able to see cookies from the other two hosts.

This was fixed by the HttpEngine refactor, but tests haven't
been added until now.

Change-Id: I01588fe9662aae7404fef4d4b2c4f0468e7c670d
http://b/3180373
f162edaa335461474b020027bb2e85eb3be2c179 14-Jan-2011 Jesse Wilson <jessewilson@google.com> Fix HTTP cookie to do case mapping with Locale.US.

While I'm here fix a MockWebServer bug I recently introduced
that broke cookie tests that needed to know port numbers before
responses were enqueued.

Change-Id: Idb2389ac5ed66656248c10aeb68209641acc0a68
http://b/3325637
02ae9cdb41eba8faf9c9c78dae71b82592625f9f 08-Dec-2010 Jesse Wilson <jessewilson@google.com> Fix CookieTest to handle the HTTP request line ("GET / HTTP/1.1") map entry.

This map entry has a null key; the test wasn't expecting that.

Change-Id: I9029008a9a7b0e02f3995a7003b8e0c348d80581
4557728efb66c455a52b7669a8eefef7a9e54854 11-Aug-2010 Jesse Wilson <jessewilson@google.com> Moving tests to be under the libcore.* package.

This is indended to make it easier to run on VMs that restrict the packages
from which application classes can be loaded. For example, on the RI you need
to use the bootclasspath to load these tests.

Change-Id: I52193f35c5fcca18b5a3e1d280505b1e29b388af