[Cronet] Enable Brotli

Desktop / Chromium - xunjieli [chromium.org] - 18 April 2017 09:45 EDT

- removes the compile time flag to disable brotli when building Cronet.
- adds an API to enable Brotli on CronetEngine.- adds three basic java tests in BrotliTest.java

BUG=710633 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester

Review-Url: https://codereview.chromium.org/2805053005 Cr-Commit-Position: refs/heads/master@{#465216}

186d2bf [Cronet] Enable Brotli
components/cronet/android/BUILD.gn | 1 +
components/cronet/android/api.txt | 2 +
.../api/src/org/chromium/net/CronetEngine.java | 12 +++
.../src/org/chromium/net/ICronetEngineBuilder.java | 4 +
components/cronet/android/api_version.txt | 2 +-
.../android/cronet_url_request_context_adapter.cc | 4 +-
.../chromium/net/impl/CronetEngineBuilderImpl.java | 12 +++
.../chromium/net/impl/CronetUrlRequestContext.java | 6 +-
.../javatests/src/org/chromium/net/BrotliTest.java | 90 ++++++++++++++++++++++
.../src/org/chromium/net/Http2TestHandler.java | 21 +++++
.../test/src/org/chromium/net/Http2TestServer.java | 7 ++
components/cronet/stale_host_resolver_unittest.cc | 2 +
components/cronet/tools/cr_cronet.py | 2 +-
components/cronet/url_request_context_config.cc | 8 +-
components/cronet/url_request_context_config.h | 6 ++
.../cronet/url_request_context_config_unittest.cc | 4 +
tools/mb/mb_config.pyl | 2 +-
17 files changed, 175 insertions(+), 10 deletions(-)

Upstream: git.chromium.org


  • Share