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

Side by Side Diff: components/ukm/BUILD.gn

Issue 2883563002: Refactor UKM interface for mojo-ification (Closed)
Patch Set: Fix uma_session_stats.cc Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 # Copyright 2017 The Chromium Authors. All rights reserved. 1 # Copyright 2017 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//testing/test.gni") 5 import("//testing/test.gni")
6 6
7 # The Url-Keyed Metrics (UKM) service is responsible for gathering and 7 # The Url-Keyed Metrics (UKM) service is responsible for gathering and
8 # uploading reports that contain fine grained performance metrics including 8 # uploading reports that contain fine grained performance metrics including
9 # URLs for top-level navigations. 9 # URLs for top-level navigations.
10 static_library("ukm") { 10 static_library("ukm") {
11 sources = [ 11 sources = [
12 "persisted_logs_metrics_impl.cc", 12 "persisted_logs_metrics_impl.cc",
13 "persisted_logs_metrics_impl.h", 13 "persisted_logs_metrics_impl.h",
14 "ukm_entry.cc",
15 "ukm_entry.h",
16 "ukm_entry_builder.cc",
17 "ukm_entry_builder.h",
18 "ukm_pref_names.cc", 14 "ukm_pref_names.cc",
19 "ukm_pref_names.h", 15 "ukm_pref_names.h",
16 "ukm_recorder_impl.cc",
17 "ukm_recorder_impl.h",
20 "ukm_reporting_service.cc", 18 "ukm_reporting_service.cc",
21 "ukm_reporting_service.h", 19 "ukm_reporting_service.h",
22 "ukm_rotation_scheduler.cc", 20 "ukm_rotation_scheduler.cc",
23 "ukm_rotation_scheduler.h", 21 "ukm_rotation_scheduler.h",
24 "ukm_service.cc", 22 "ukm_service.cc",
25 "ukm_service.h", 23 "ukm_service.h",
26 "ukm_source.cc", 24 "ukm_source.cc",
27 "ukm_source.h", 25 "ukm_source.h",
28 ] 26 ]
29 27
28 public_deps = [
29 "//components/metrics/proto",
30 "//components/ukm/public",
31 ]
32
30 deps = [ 33 deps = [
31 "//base", 34 "//base",
32 "//components/data_use_measurement/core", 35 "//components/data_use_measurement/core",
33 "//components/metrics", 36 "//components/metrics",
34 "//components/prefs", 37 "//components/prefs",
35 "//components/variations", 38 "//components/variations",
36 "//url", 39 "//url",
37 ] 40 ]
38 } 41 }
39 42
40 # Helper library for observing signals that we need to clear any local data. 43 # Helper library for observing signals that we need to clear any local data.
41 static_library("observers") { 44 static_library("observers") {
42 sources = [ 45 sources = [
43 "observers/history_delete_observer.cc", 46 "observers/history_delete_observer.cc",
44 "observers/history_delete_observer.h", 47 "observers/history_delete_observer.h",
45 "observers/sync_disable_observer.cc", 48 "observers/sync_disable_observer.cc",
46 "observers/sync_disable_observer.h", 49 "observers/sync_disable_observer.h",
47 ] 50 ]
48 51
49 deps = [ 52 deps = [
50 "//base", 53 "//base",
51 "//components/history/core/browser", 54 "//components/history/core/browser",
52 "//components/sync", 55 "//components/sync",
53 ] 56 ]
54 } 57 }
55 58
56 static_library("test_support") { 59 static_library("test_support") {
57 testonly = true 60 testonly = true
58 sources = [ 61 sources = [
59 "test_ukm_service.cc", 62 "test_ukm_recorder.cc",
60 "test_ukm_service.h", 63 "test_ukm_recorder.h",
61 ] 64 ]
62 65
63 public_deps = [ 66 public_deps = [
64 ":ukm", 67 ":ukm",
68 "//components/metrics/proto",
65 ] 69 ]
66 deps = [ 70 deps = [
67 "//base", 71 "//base",
68 "//components/metrics:test_support", 72 "//components/metrics:test_support",
69 "//components/prefs:test_support", 73 "//components/prefs:test_support",
70 ] 74 ]
71 } 75 }
72 76
73 source_set("unit_tests") { 77 source_set("unit_tests") {
74 testonly = true 78 testonly = true
(...skipping 22 matching lines...) Expand all
97 101
98 # Convenience testing target 102 # Convenience testing target
99 test("ukm_unittests") { 103 test("ukm_unittests") {
100 deps = [ 104 deps = [
101 ":unit_tests", 105 ":unit_tests",
102 "//base", 106 "//base",
103 "//base/test:run_all_unittests", 107 "//base/test:run_all_unittests",
104 "//base/test:test_support", 108 "//base/test:test_support",
105 ] 109 ]
106 } 110 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698