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",
16 "compression_utils.cc",
17 "compression_utils.h",
20 "histogram_encoder.cc",
21 "histogram_encoder.h",
22 "machine_id_provider.h",
23 "machine_id_provider_stub.cc",
24 "machine_id_provider_win.cc",
29 "metrics_log_manager.cc",
30 "metrics_log_manager.h",
31 "metrics_log_uploader.cc",
32 "metrics_log_uploader.h",
33 "metrics_pref_names.cc",
34 "metrics_pref_names.h",
35 "metrics_provider.cc",
37 "metrics_reporting_scheduler.cc",
38 "metrics_reporting_scheduler.h",
41 "metrics_service_accessor.cc",
42 "metrics_service_accessor.h",
43 "metrics_service_client.cc",
44 "metrics_service_client.h",
45 "metrics_state_manager.cc",
46 "metrics_state_manager.h",
47 "metrics_switches.cc",
56 "//components/metrics/proto",
62 "//components/variations",
67 deps += [ ":serialization" ]
71 sources -= [ "machine_id_provider_stub.cc" ]
75 # GYP version: components/metrics.gypi:metrics_gpu
78 "gpu/gpu_metrics_provider.cc",
79 "gpu/gpu_metrics_provider.h",
87 "//content/public/browser",
93 # GYP version: components/metrics.gypi:metrics_net
94 static_library("net") {
96 "net/net_metrics_log_uploader.cc",
97 "net/net_metrics_log_uploader.h",
98 "net/network_metrics_provider.cc",
99 "net/network_metrics_provider.h",
100 "net/wifi_access_point_info_provider.cc",
101 "net/wifi_access_point_info_provider.h",
102 "net/wifi_access_point_info_provider_chromeos.cc",
103 "net/wifi_access_point_info_provider_chromeos.h",
116 # GYP version: components/metrics.gypi:metrics_profiler
117 source_set("profiler") {
119 "profiler/profiler_metrics_provider.cc",
120 "profiler/profiler_metrics_provider.h",
121 "profiler/tracking_synchronizer.cc",
122 "profiler/tracking_synchronizer.h",
123 "profiler/tracking_synchronizer_observer.cc",
124 "profiler/tracking_synchronizer_observer.h",
132 "//components/variations",
133 "//content/public/browser",
134 "//content/public/common",
138 # GYP version: components/metrics.gypi:metrics_test_support
139 source_set("test_support") {
141 "test_metrics_provider.cc",
142 "test_metrics_provider.h",
143 "test_metrics_service_client.cc",
144 "test_metrics_service_client.h",
156 # GYP version: components/metrics.gypi:metrics_serialization
157 source_set("serialization") {
159 "serialization/metric_sample.cc",
160 "serialization/metric_sample.h",
161 "serialization/serialization_utils.cc",
162 "serialization/serialization_utils.h",
170 source_set("unit_tests") {
173 "compression_utils_unittest.cc",
174 "daily_event_unittest.cc",
175 "histogram_encoder_unittest.cc",
176 "machine_id_provider_win_unittest.cc",
177 "metrics_hashes_unittest.cc",
178 "metrics_log_manager_unittest.cc",
179 "metrics_log_unittest.cc",
180 "metrics_reporting_scheduler_unittest.cc",
181 "metrics_service_unittest.cc",
182 "metrics_state_manager_unittest.cc",
183 "persisted_logs_unittest.cc",
184 "profiler/profiler_metrics_provider_unittest.cc",
185 "profiler/tracking_synchronizer_unittest.cc",
192 "//base:prefs_test_support",
193 "//base/test:test_support",
194 "//components/variations",
195 "//content/public/common",
199 # TODO(GYP): metrics_chromeos