mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-11 06:36:11 +03:00
133 lines
2.9 KiB
Plaintext
133 lines
2.9 KiB
Plaintext
|
# 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 = [
|
||
|
"persisted_logs_metrics_impl.cc",
|
||
|
"persisted_logs_metrics_impl.h",
|
||
|
"ukm_pref_names.cc",
|
||
|
"ukm_pref_names.h",
|
||
|
"ukm_recorder_impl.cc",
|
||
|
"ukm_recorder_impl.h",
|
||
|
"ukm_reporting_service.cc",
|
||
|
"ukm_reporting_service.h",
|
||
|
"ukm_rotation_scheduler.cc",
|
||
|
"ukm_rotation_scheduler.h",
|
||
|
"ukm_service.cc",
|
||
|
"ukm_service.h",
|
||
|
"ukm_source.cc",
|
||
|
"ukm_source.h",
|
||
|
]
|
||
|
|
||
|
public_deps = [
|
||
|
"//components/metrics/proto",
|
||
|
"//services/metrics/public/cpp:metrics_cpp",
|
||
|
"//services/metrics/public/interfaces",
|
||
|
]
|
||
|
|
||
|
deps = [
|
||
|
"//base",
|
||
|
"//components/data_use_measurement/core",
|
||
|
"//components/metrics",
|
||
|
"//components/prefs",
|
||
|
"//components/variations",
|
||
|
"//url",
|
||
|
]
|
||
|
}
|
||
|
|
||
|
static_library("ukm_interface") {
|
||
|
sources = [
|
||
|
"ukm_interface.cc",
|
||
|
"ukm_interface.h",
|
||
|
]
|
||
|
|
||
|
public_deps = [
|
||
|
"//base",
|
||
|
"//services/metrics/public/cpp:metrics_cpp",
|
||
|
"//services/metrics/public/interfaces",
|
||
|
]
|
||
|
|
||
|
deps = [
|
||
|
":ukm",
|
||
|
"//mojo/public/cpp/bindings",
|
||
|
"//services/metrics/public/cpp:metrics_cpp",
|
||
|
]
|
||
|
}
|
||
|
|
||
|
# 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",
|
||
|
"observers/sync_disable_observer.cc",
|
||
|
"observers/sync_disable_observer.h",
|
||
|
]
|
||
|
|
||
|
deps = [
|
||
|
"//base",
|
||
|
"//components/history/core/browser",
|
||
|
"//components/sync",
|
||
|
]
|
||
|
}
|
||
|
|
||
|
static_library("test_support") {
|
||
|
testonly = true
|
||
|
sources = [
|
||
|
"test_ukm_recorder.cc",
|
||
|
"test_ukm_recorder.h",
|
||
|
]
|
||
|
|
||
|
public_deps = [
|
||
|
":ukm",
|
||
|
"//components/metrics/proto",
|
||
|
]
|
||
|
deps = [
|
||
|
"//base",
|
||
|
"//components/metrics:test_support",
|
||
|
"//components/prefs:test_support",
|
||
|
"//testing/gtest:gtest",
|
||
|
]
|
||
|
}
|
||
|
|
||
|
source_set("unit_tests") {
|
||
|
testonly = true
|
||
|
sources = [
|
||
|
"observers/sync_disable_observer_unittest.cc",
|
||
|
"ukm_service_unittest.cc",
|
||
|
]
|
||
|
|
||
|
deps = [
|
||
|
":observers",
|
||
|
":test_support",
|
||
|
":ukm",
|
||
|
"//base",
|
||
|
"//base/test:test_support",
|
||
|
"//components/metrics",
|
||
|
"//components/metrics:test_support",
|
||
|
"//components/prefs:test_support",
|
||
|
"//components/sync:test_support_driver",
|
||
|
"//components/variations",
|
||
|
"//net:test_support",
|
||
|
"//services/metrics/public/cpp:ukm_builders",
|
||
|
"//testing/gtest",
|
||
|
"//third_party/zlib/google:compression_utils",
|
||
|
"//url",
|
||
|
]
|
||
|
}
|
||
|
|
||
|
# Convenience testing target
|
||
|
test("ukm_unittests") {
|
||
|
deps = [
|
||
|
":unit_tests",
|
||
|
"//base",
|
||
|
"//base/test:run_all_unittests",
|
||
|
"//base/test:test_support",
|
||
|
]
|
||
|
}
|