Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Unified Diff: components/ukm/BUILD.gn

Issue 2567263003: Basic UkmService implementation (Closed)
Patch Set: Rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/ukm/BUILD.gn
diff --git a/components/ukm/BUILD.gn b/components/ukm/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..5b97d07fc98382a7b66f922ace57e9f0e4e22ded
--- /dev/null
+++ b/components/ukm/BUILD.gn
@@ -0,0 +1,71 @@
+# 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("//testing/test.gni")
+
+# The Url-Keyed Metrics (UKM) service is responsible for gathering and
+# uploading reports that contain fine grained performance metrics including
+# URLs for top-level navigations.
+static_library("ukm") {
+ sources = [
+ "metrics_reporting_scheduler.cc",
+ "metrics_reporting_scheduler.h",
+ "persisted_logs_metrics_impl.cc",
+ "persisted_logs_metrics_impl.h",
+ "ukm_pref_names.cc",
+ "ukm_pref_names.h",
+ "ukm_service.cc",
+ "ukm_service.h",
+ ]
+
+ deps = [
+ "//base",
+ "//components/data_use_measurement/core",
+ "//components/metrics",
+ "//components/prefs",
+ "//components/variations",
+ ]
+}
+
+# Helper library for observing signals that we need to clear any local data.
+static_library("observers") {
+ sources = [
+ "observers/history_delete_observer.cc",
+ "observers/history_delete_observer.h",
+ ]
+
+ deps = [
+ "//base",
+ "//components/history/core/browser",
+ ]
+}
+
+source_set("unit_tests") {
+ testonly = true
+ sources = [
+ "ukm_service_unittest.cc",
+ ]
+
+ deps = [
+ ":ukm",
+ "//base",
+ "//base/test:test_support",
+ "//components/metrics",
+ "//components/metrics:test_support",
+ "//components/prefs:test_support",
+ "//net:test_support",
+ "//testing/gtest",
+ "//url",
+ ]
+}
+
+# Convenience testing target
+test("ukm_unittests") {
+ deps = [
+ ":unit_tests",
+ "//base",
+ "//base/test:run_all_unittests",
+ "//base/test:test_support",
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698