Add bookkeeping requests to the request queue.
We'd never add requests which corresponded to
DISCONNECT_AT_START and FAIL_HANDSHAKE to the list of
received requests. This allows tests to determine whether
fallback requests were made or not.
While we're here, tidy up RecordedRequest#toString. It would
return "null" for bookkeeping requests and produce test outputs
like "expected <null> but was null".
Fixes CTS test URLConnectionTest#testSslFallback
(cherry picked from a4a53d9c9bf86165a5e2bd9ce4bcb834f09d)
bug: 10211309
Change-Id: I2ee1b523faf5c1b3387f5ca9f9ad19c0877e1ad5
3 files changed