| Index: components/cronet/ios/BUILD.gn
|
| diff --git a/components/cronet/ios/BUILD.gn b/components/cronet/ios/BUILD.gn
|
| index be173c3bbc5127a03aa69c8ea3a5ca8fd8cfe3d9..218b7804306fae9625892e55ad8c3604f5a349cd 100644
|
| --- a/components/cronet/ios/BUILD.gn
|
| +++ b/components/cronet/ios/BUILD.gn
|
| @@ -6,6 +6,7 @@ import("//build/buildflag_header.gni")
|
| import("//build/util/version.gni")
|
| import("//chrome/version.gni")
|
| import("//testing/test.gni")
|
| +import("//third_party/protobuf/proto_library.gni")
|
| import("//url/features.gni")
|
|
|
| assert(!is_component_build, "Cronet requires static library build.")
|
| @@ -23,18 +24,32 @@ process_version("cronet_version_header") {
|
| ]
|
| }
|
|
|
| +proto_library("cronet_cert_proto") {
|
| + visibility = [ ":cronet" ]
|
| +
|
| + sources = [
|
| + "//components/cronet/cert/proto/cert_verification.proto",
|
| + ]
|
| +
|
| + extra_configs = [ "//build/config/compiler:wexit_time_destructors" ]
|
| +}
|
| +
|
| source_set("cronet_sources") {
|
| deps = [
|
| + ":cronet_cert_proto",
|
| ":cronet_version_header",
|
| "//base:base",
|
| "//components/metrics:metrics",
|
| "//components/metrics/proto:proto",
|
| "//components/prefs:prefs",
|
| "//net",
|
| + "//third_party/protobuf:protobuf_lite",
|
| "//url",
|
| ]
|
|
|
| sources = [
|
| + "../cert/cert_verifier_cache_persister.cc",
|
| + "../cert/cert_verifier_cache_persister.h",
|
| "../histogram_manager.cc",
|
| "../histogram_manager.h",
|
| "../url_request_context_config.cc",
|
| @@ -76,6 +91,17 @@ bundle_data("cronet_test_bundle_data") {
|
| ]
|
| }
|
|
|
| +bundle_data("cronet_unittests_bundle_data") {
|
| + testonly = true
|
| + sources = [
|
| + "//net/data/ssl/certificates/ok_cert.pem",
|
| + "//net/data/ssl/certificates/root_ca_cert.pem",
|
| + ]
|
| + outputs = [
|
| + "{{bundle_resources_dir}}/{{source_file_part}}",
|
| + ]
|
| +}
|
| +
|
| test("cronet_test") {
|
| testonly = true
|
| sources = [
|
| @@ -86,6 +112,7 @@ test("cronet_test") {
|
| ]
|
|
|
| deps = [
|
| + ":cronet_cert_proto",
|
| ":cronet_sources",
|
| ":cronet_test_bundle_data",
|
| ":cronet_version_header",
|
| @@ -100,17 +127,21 @@ test("cronet_test") {
|
|
|
| test("cronet_unittests") {
|
| sources = [
|
| + "//components/cronet/cert/cert_verifier_cache_persister_unittest.cc",
|
| "//components/cronet/histogram_manager_unittest.cc",
|
| "//components/cronet/run_all_unittests.cc",
|
| "//components/cronet/url_request_context_config_unittest.cc",
|
| ]
|
|
|
| deps = [
|
| + ":cronet_cert_proto",
|
| ":cronet_sources",
|
| + ":cronet_test_bundle_data",
|
| "//base",
|
| "//base/test:test_support",
|
| "//components/metrics",
|
| "//net",
|
| + "//net:test_support",
|
| "//testing/gtest",
|
| ]
|
| }
|
|
|