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

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

Issue 2617883004: Initial UKMPageLoadMetricsObserver (Closed)
Patch Set: Class rename 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 static_library("ukm") { 7 static_library("ukm") {
8 sources = [ 8 sources = [
9 "metrics_reporting_scheduler.cc", 9 "metrics_reporting_scheduler.cc",
10 "metrics_reporting_scheduler.h", 10 "metrics_reporting_scheduler.h",
11 "persisted_logs_metrics_impl.cc", 11 "persisted_logs_metrics_impl.cc",
12 "persisted_logs_metrics_impl.h", 12 "persisted_logs_metrics_impl.h",
13 "ukm_pref_names.cc", 13 "ukm_pref_names.cc",
14 "ukm_pref_names.h", 14 "ukm_pref_names.h",
15 "ukm_service.cc", 15 "ukm_service.cc",
16 "ukm_service.h", 16 "ukm_service.h",
17 "ukm_source.cc",
18 "ukm_source.h",
17 ] 19 ]
18 20
19 deps = [ 21 deps = [
20 "//base", 22 "//base",
21 "//components/data_use_measurement/core", 23 "//components/data_use_measurement/core",
22 "//components/metrics", 24 "//components/metrics",
23 "//components/prefs", 25 "//components/prefs",
24 "//components/variations", 26 "//components/variations",
25 ] 27 ]
26 } 28 }
27 29
30 static_library("test_support") {
31 testonly = true
32 sources = [
33 "test_ukm_service.cc",
34 "test_ukm_service.h",
35 ]
36
37 public_deps = [
38 ":ukm",
39 ]
40 deps = [
41 "//base",
42 "//components/metrics:test_support",
43 "//components/prefs:test_support",
44 ]
45 }
46
28 source_set("unit_tests") { 47 source_set("unit_tests") {
29 testonly = true 48 testonly = true
30 sources = [ 49 sources = [
31 "ukm_service_unittest.cc", 50 "ukm_service_unittest.cc",
32 ] 51 ]
33 52
34 deps = [ 53 deps = [
54 ":test_support",
35 ":ukm", 55 ":ukm",
36 "//base", 56 "//base",
37 "//base/test:test_support", 57 "//base/test:test_support",
38 "//components/metrics", 58 "//components/metrics",
39 "//components/metrics:test_support", 59 "//components/metrics:test_support",
40 "//components/prefs:test_support", 60 "//components/prefs:test_support",
41 "//net:test_support", 61 "//net:test_support",
42 "//testing/gtest", 62 "//testing/gtest",
43 "//url", 63 "//url",
44 ] 64 ]
45 } 65 }
46 66
47 # Convenience testing target 67 # Convenience testing target
48 test("ukm_unittests") { 68 test("ukm_unittests") {
49 deps = [ 69 deps = [
50 ":unit_tests", 70 ":unit_tests",
51 "//base", 71 "//base",
52 "//base/test:run_all_unittests", 72 "//base/test:run_all_unittests",
53 "//base/test:test_support", 73 "//base/test:test_support",
54 ] 74 ]
55 } 75 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698