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
Auto-Submit: Nate Fischer <>
Reviewed-by: Tobias Sargeant <>
Commit-Queue: Nate Fischer <>
Cr-Commit-Position: refs/heads/master@{#641222}
1 file changed