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.h",
131 "//components/variations",
132 "//content/public/browser",
133 "//content/public/common",
137 # GYP version: components/metrics.gypi:metrics_test_support
138 source_set("test_support") {
140 "test_metrics_service_client.cc",
141 "test_metrics_service_client.h",
153 # GYP version: components/metrics.gypi:metrics_serialization
154 source_set("serialization") {
156 "serialization/metric_sample.cc",
157 "serialization/metric_sample.h",
158 "serialization/serialization_utils.cc",
159 "serialization/serialization_utils.h",
167 source_set("unit_tests") {
170 "compression_utils_unittest.cc",
171 "daily_event_unittest.cc",
172 "histogram_encoder_unittest.cc",
173 "machine_id_provider_win_unittest.cc",
174 "metrics_hashes_unittest.cc",
175 "metrics_log_manager_unittest.cc",
176 "metrics_log_unittest.cc",
177 "metrics_reporting_scheduler_unittest.cc",
178 "metrics_service_unittest.cc",
179 "metrics_state_manager_unittest.cc",
180 "persisted_logs_unittest.cc",
181 "profiler/profiler_metrics_provider_unittest.cc",
182 "profiler/tracking_synchronizer_unittest.cc",
189 "//base:prefs_test_support",
190 "//base/test:test_support",
191 "//components/variations",
192 "//content/public/common",
196 # TODO(GYP): metrics_chromeos