Add four more tests for WebSockets over HTTP/2.

Test that response status code 302 results in failure.  Also
test that complete, incomplete, and failed requests are logged to UMA
appropriately.

Since this further increases the number of optional test parameters that
are only changed from their default value in a small number of tests,
default arguments are increasingly inelegant for this purpose.  Instead,
introduce private members and setters for Timer, additional response
data, and HTTP/2 response status code.

Bug: 801564
Change-Id: I79e8b7648351e4dfa26b31c87ac14eefa93ccb36
Reviewed-on: https://chromium-review.googlesource.com/949365
Reviewed-by: Adam Rice <ricea@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#541085}
1 file changed