AW: add helper methods in CookieManagerTest

No change to production logic, minor changes to test logic.

This adds more helper methods for common assertions in
CookieManagerTest. Some of the helper methods provide clearer assertion
output, although some are abstraction layers for what used to be several
statements (such as blockThirdPartyCookies()).

Bug: 941891
Test: run_webview_instrumentation_test_apk -f=CookieManagerTest#*
Cq-Include-Trybots: luci.chromium.try:android_mojo
Change-Id: I66bc6c70b635437ee227b0c07fc19753ed3f4989
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1522788
Auto-Submit: Nate Fischer <ntfschr@chromium.org>
Reviewed-by: Tobias Sargeant <tobiasjs@chromium.org>
Commit-Queue: Nate Fischer <ntfschr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#641222}
1 file changed