| Index: components/ukm/BUILD.gn
|
| diff --git a/components/ukm/BUILD.gn b/components/ukm/BUILD.gn
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5ff3768b77f376ff406ebdb991ddd15e5e502cac
|
| --- /dev/null
|
| +++ b/components/ukm/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("//testing/test.gni")
|
| +
|
| +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",
|
| + ]
|
| +}
|
| +
|
| +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",
|
| + ]
|
| +}
|
|
|