forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Cronet] Extract common CronetURLRequestContext from Android CronetUR…
…LRequestContextAdapter. Note: - Patchset 1 copies android/cronet_url_request_context_adapter.* into cronet_url_request_context.* - android/cronet_url_request_context_adapter.* use cronet_url_request_context.* - cronet_global_state.h defines cross-platform API used to initialize and maintain Cronet state shared by multiple engines. Bug: 786559 Cq-Include-Trybots: master.tryserver.chromium.android:android_cronet_tester Change-Id: I1cbe2162584745580e54bd0838a4a2303d7e6970 Reviewed-on: https://chromium-review.googlesource.com/840702 Commit-Queue: Misha Efimov <mef@chromium.org> Reviewed-by: John Abd-El-Malek <jam@chromium.org> Reviewed-by: Paul Jensen <pauljensen@chromium.org> Cr-Commit-Position: refs/heads/master@{#528628}
- Loading branch information
Misha Efimov
authored and
Commit Bot
committed
Jan 11, 2018
1 parent
72a9788
commit 1770a1b
Showing
11 changed files
with
1,255 additions
and
751 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Copyright 2017 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
import("//build/util/process_version.gni") | ||
import("//build/util/version.gni") | ||
import("//testing/test.gni") | ||
|
||
process_version("cronet_version_header") { | ||
template_file = "//components/cronet/version.h.in" | ||
sources = [ | ||
"//chrome/VERSION", | ||
] | ||
output = "$target_gen_dir/version.h" | ||
extra_args = [ | ||
"-e", | ||
"VERSION_FULL=\"%s.%s.%s.%s\" % (MAJOR,MINOR,BUILD,PATCH)", | ||
] | ||
} | ||
|
||
# Cronet common implementation. | ||
source_set("cronet_common") { | ||
sources = [ | ||
"cronet_global_state.h", | ||
"cronet_prefs_manager.cc", | ||
"cronet_prefs_manager.h", | ||
"cronet_url_request_context.cc", | ||
"cronet_url_request_context.h", | ||
"histogram_manager.cc", | ||
"histogram_manager.h", | ||
"host_cache_persistence_manager.cc", | ||
"host_cache_persistence_manager.h", | ||
"stale_host_resolver.cc", | ||
"stale_host_resolver.h", | ||
"url_request_context_config.cc", | ||
"url_request_context_config.h", | ||
] | ||
deps = [ | ||
":cronet_version_header", | ||
"//base", | ||
"//components/metrics:metrics", | ||
"//components/prefs:prefs", | ||
"//net", | ||
"//third_party/metrics_proto", | ||
] | ||
} | ||
|
||
# Unit tests for Cronet common implementation. | ||
source_set("cronet_common_unittests") { | ||
testonly = true | ||
|
||
deps = [ | ||
":cronet_common", | ||
"//components/prefs:test_support", | ||
"//net:test_support", | ||
] | ||
|
||
sources = [ | ||
"histogram_manager_unittest.cc", | ||
"host_cache_persistence_manager_unittest.cc", | ||
"run_all_unittests.cc", | ||
"stale_host_resolver_unittest.cc", | ||
"url_request_context_config_unittest.cc", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.