1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 # GYP version: components/metrics.gypi:metrics
6 source_set("metrics") {
8 "call_stack_profile_metrics_provider.cc",
9 "call_stack_profile_metrics_provider.h",
10 "clean_exit_beacon.cc",
11 "clean_exit_beacon.h",
14 "cloned_install_detector.cc",
15 "cloned_install_detector.h",
18 "drive_metrics_provider.cc",
19 "drive_metrics_provider.h",
20 "drive_metrics_provider_android.cc",
21 "drive_metrics_provider_ios.mm",
22 "drive_metrics_provider_linux.cc",
23 "drive_metrics_provider_mac.mm",
24 "drive_metrics_provider_win.cc",
25 "histogram_encoder.cc",
26 "histogram_encoder.h",
27 "machine_id_provider.h",
28 "machine_id_provider_stub.cc",
29 "machine_id_provider_win.cc",
34 "metrics_log_manager.cc",
35 "metrics_log_manager.h",
36 "metrics_log_uploader.cc",
37 "metrics_log_uploader.h",
38 "metrics_pref_names.cc",
39 "metrics_pref_names.h",
40 "metrics_provider.cc",
42 "metrics_reporting_scheduler.cc",
43 "metrics_reporting_scheduler.h",
46 "metrics_service_accessor.cc",
47 "metrics_service_accessor.h",
48 "metrics_service_client.cc",
49 "metrics_service_client.h",
50 "metrics_state_manager.cc",
51 "metrics_state_manager.h",
52 "metrics_switches.cc",
61 "//components/metrics/proto",
67 "//components/compression",
68 "//components/variations",
72 deps += [ ":serialization" ]
76 sources -= [ "machine_id_provider_stub.cc" ]
80 # GYP version: components/metrics.gypi:metrics_gpu
83 "gpu/gpu_metrics_provider.cc",
84 "gpu/gpu_metrics_provider.h",
92 "//content/public/browser",
98 # GYP version: components/metrics.gypi:metrics_net
99 static_library("net") {
101 "net/net_metrics_log_uploader.cc",
102 "net/net_metrics_log_uploader.h",
103 "net/network_metrics_provider.cc",
104 "net/network_metrics_provider.h",
105 "net/wifi_access_point_info_provider.cc",
106 "net/wifi_access_point_info_provider.h",
107 "net/wifi_access_point_info_provider_chromeos.cc",
108 "net/wifi_access_point_info_provider_chromeos.h",
121 # GYP version: components/metrics.gypi:metrics_profiler
122 source_set("profiler") {
124 "profiler/profiler_metrics_provider.cc",
125 "profiler/profiler_metrics_provider.h",
126 "profiler/tracking_synchronizer.cc",
127 "profiler/tracking_synchronizer.h",
128 "profiler/tracking_synchronizer_observer.cc",
129 "profiler/tracking_synchronizer_observer.h",
137 "//components/variations",
138 "//content/public/browser",
139 "//content/public/common",
143 # GYP version: components/metrics.gypi:metrics_test_support
144 source_set("test_support") {
146 "test_metrics_provider.cc",
147 "test_metrics_provider.h",
148 "test_metrics_service_client.cc",
149 "test_metrics_service_client.h",
161 # GYP version: components/metrics.gypi:metrics_serialization
162 source_set("serialization") {
164 "serialization/metric_sample.cc",
165 "serialization/metric_sample.h",
166 "serialization/serialization_utils.cc",
167 "serialization/serialization_utils.h",
175 source_set("unit_tests") {
178 "call_stack_profile_metrics_provider_unittest.cc",
179 "daily_event_unittest.cc",
180 "drive_metrics_provider_unittest.cc",
181 "gpu/gpu_metrics_provider_unittest.cc",
182 "histogram_encoder_unittest.cc",
183 "machine_id_provider_win_unittest.cc",
184 "metrics_hashes_unittest.cc",
185 "metrics_log_manager_unittest.cc",
186 "metrics_log_unittest.cc",
187 "metrics_reporting_scheduler_unittest.cc",
188 "metrics_service_unittest.cc",
189 "metrics_state_manager_unittest.cc",
190 "net/net_metrics_log_uploader_unittest.cc",
191 "persisted_logs_unittest.cc",
192 "profiler/profiler_metrics_provider_unittest.cc",
193 "profiler/tracking_synchronizer_unittest.cc",
202 "//base:prefs_test_support",
203 "//base/test:test_support",
204 "//components/variations",
205 "//content/public/common",
210 sources += [ "serialization/serialization_utils_unittest.cc" ]
211 deps += [ ":serialization" ]
214 # TODO(GYP): metrics_chromeos