Add throttling support to MockWebServer

This adds non-blocking throttling support to MockWebServer.
Most of the changes are patched across from OkHttp's version
(minus SPDY changes).

The motivation is to make an upstream OkHttp change easier
to apply, but having fewer differences with the OkHttp version
should be beneficial.

Bug: 18083851
Change-Id: I63367baa46897d02ca5d3fa86f3ab83712b8addf
4 files changed
tree: b3a5ffe5caaddb9ac91a15025a89c8e84d64bf2e
  1. src/
  2. Android.mk
  3. COPYING
  4. MODULE_LICENSE_APACHE2