AW: add test coverage for setAcceptCookie
No change to production logic, only tests. The #setAcceptCookie() API should not expose already-set cookies via the "Cookie" header or via document.cookie. Current test coverage only checks WebView does not honor the Set-Cookie header or assignments to document.cookie. So, this adds a test to handle this case. This test does not work (yet) for the network service path, so this adds the test to the filter. This also removes an accidentally duplicated line in another test (which I observed while writing this one). R=tobiasjs@chromium.org Bug: 936317 Test: run_webview_instrumentation_test_apk \ Test: -f=CookieManagerTest.testAcceptCookie_falseDoNotSendCookies Cq-Include-Trybots: master.tryserver.chromium.android:android_mojo Change-Id: Ic0ed4b73d6f7fd2275438b63fc2c01a4d76d9c8e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1507282Reviewed-by:Tobias Sargeant <tobiasjs@chromium.org> Commit-Queue: Nate Fischer <ntfschr@chromium.org> Cr-Commit-Position: refs/heads/master@{#638741}
Showing
Please register or sign in to comment