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

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

Issue 2653693004: UKM Sync Observer (Closed)
Patch Set: Suppress recording and fix tests Created 3 years, 10 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") {
(...skipping 18 matching lines...) Expand all
29 "//components/variations", 29 "//components/variations",
30 "//url", 30 "//url",
31 ] 31 ]
32 } 32 }
33 33
34 # Helper library for observing signals that we need to clear any local data. 34 # Helper library for observing signals that we need to clear any local data.
35 static_library("observers") { 35 static_library("observers") {
36 sources = [ 36 sources = [
37 "observers/history_delete_observer.cc", 37 "observers/history_delete_observer.cc",
38 "observers/history_delete_observer.h", 38 "observers/history_delete_observer.h",
39 "observers/sync_disable_observer.cc",
40 "observers/sync_disable_observer.h",
39 ] 41 ]
40 42
41 deps = [ 43 deps = [
42 "//base", 44 "//base",
43 "//components/history/core/browser", 45 "//components/history/core/browser",
44 ] 46 ]
45 } 47 }
46 48
47 static_library("test_support") { 49 static_library("test_support") {
48 testonly = true 50 testonly = true
49 sources = [ 51 sources = [
50 "test_ukm_service.cc", 52 "test_ukm_service.cc",
51 "test_ukm_service.h", 53 "test_ukm_service.h",
52 ] 54 ]
53 55
54 public_deps = [ 56 public_deps = [
55 ":ukm", 57 ":ukm",
56 ] 58 ]
57 deps = [ 59 deps = [
58 "//base", 60 "//base",
59 "//components/metrics:test_support", 61 "//components/metrics:test_support",
60 "//components/prefs:test_support", 62 "//components/prefs:test_support",
61 ] 63 ]
62 } 64 }
63 65
64 source_set("unit_tests") { 66 source_set("unit_tests") {
65 testonly = true 67 testonly = true
66 sources = [ 68 sources = [
69 "observers/sync_disable_observer_unittest.cc",
67 "ukm_service_unittest.cc", 70 "ukm_service_unittest.cc",
68 ] 71 ]
69 72
70 deps = [ 73 deps = [
74 ":observers",
71 ":test_support", 75 ":test_support",
72 ":ukm", 76 ":ukm",
73 "//base", 77 "//base",
74 "//base/test:test_support", 78 "//base/test:test_support",
75 "//components/metrics", 79 "//components/metrics",
76 "//components/metrics:test_support", 80 "//components/metrics:test_support",
77 "//components/prefs:test_support", 81 "//components/prefs:test_support",
82 "//components/sync:test_support_driver",
78 "//net:test_support", 83 "//net:test_support",
79 "//testing/gtest", 84 "//testing/gtest",
80 "//third_party/zlib:compression_utils", 85 "//third_party/zlib:compression_utils",
81 "//url", 86 "//url",
82 ] 87 ]
83 } 88 }
84 89
85 # Convenience testing target 90 # Convenience testing target
86 test("ukm_unittests") { 91 test("ukm_unittests") {
87 deps = [ 92 deps = [
88 ":unit_tests", 93 ":unit_tests",
89 "//base", 94 "//base",
90 "//base/test:run_all_unittests", 95 "//base/test:run_all_unittests",
91 "//base/test:test_support", 96 "//base/test:test_support",
92 ] 97 ]
93 } 98 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698