summaryrefslogtreecommitdiff
path: root/chromium/components/cronet/BUILD.gn
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-01-31 16:33:43 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-02-06 16:33:22 +0000
commitda51f56cc21233c2d30f0fe0d171727c3102b2e0 (patch)
tree4e579ab70ce4b19bee7984237f3ce05a96d59d83 /chromium/components/cronet/BUILD.gn
parentc8c2d1901aec01e934adf561a9fdf0cc776cdef8 (diff)
downloadqtwebengine-chromium-da51f56cc21233c2d30f0fe0d171727c3102b2e0.tar.gz
BASELINE: Update Chromium to 65.0.3525.40
Also imports missing submodules Change-Id: I36901b7c6a325cda3d2c10cedb2186c25af3b79b Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/components/cronet/BUILD.gn')
-rw-r--r--chromium/components/cronet/BUILD.gn67
1 files changed, 67 insertions, 0 deletions
diff --git a/chromium/components/cronet/BUILD.gn b/chromium/components/cronet/BUILD.gn
new file mode 100644
index 00000000000..a1fee45030f
--- /dev/null
+++ b/chromium/components/cronet/BUILD.gn
@@ -0,0 +1,67 @@
+# 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.cc",
+ "cronet_url_request.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",
+ ]
+}