blob: 849c3b2e762584a487257e1bed0373ed154a2116 [file] [log] [blame]
skvladcc91d282016-10-03 18:31:22 -07001# Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../webrtc.gni")
Kimmo Kinnunen08f6a6c2019-02-26 11:46:17 +020010if (rtc_enable_protobuf) {
Dan Minor9c686132018-01-15 10:20:00 -050011 import("//third_party/protobuf/proto_library.gni")
12}
skvladcc91d282016-10-03 18:31:22 -070013if (is_android) {
14 import("//build/config/android/config.gni")
15 import("//build/config/android/rules.gni")
16}
17
kjellander6ceab082016-10-28 05:44:03 -070018group("logging") {
Mirko Bonadei818d9102017-12-12 12:46:13 +010019 deps = [
Qingsi Wang970b0882018-02-01 11:04:46 -080020 ":rtc_event_audio",
21 ":rtc_event_bwe",
Qingsi Wang970b0882018-02-01 11:04:46 -080022 ":rtc_event_log_impl_encoder",
Qingsi Wang970b0882018-02-01 11:04:46 -080023 ":rtc_event_pacing",
24 ":rtc_event_rtp_rtcp",
25 ":rtc_event_video",
kjellander6ceab082016-10-28 05:44:03 -070026 ]
kjellander6ceab082016-10-28 05:44:03 -070027}
28
skvladcc91d282016-10-03 18:31:22 -070029rtc_source_set("rtc_event_log_api") {
30 sources = [
Qingsi Wang970b0882018-02-01 11:04:46 -080031 "rtc_event_log/encoder/rtc_event_log_encoder.h",
Elad Alon652cc842017-10-02 11:27:52 +020032 "rtc_event_log/events/rtc_event.h",
Qingsi Wang970b0882018-02-01 11:04:46 -080033 ]
34
35 deps = [
Niels Möller6dcd4dc2019-08-26 10:45:28 +020036 "../api:rtp_parameters",
Mirko Bonadeid9708072019-01-25 20:26:48 +010037 "../api:scoped_refptr",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +020038 "../api/rtc_event_log",
Mirko Bonadeifc52b912019-03-01 10:32:56 +010039 "../api/task_queue",
Qingsi Wang970b0882018-02-01 11:04:46 -080040 "../rtc_base:rtc_base_approved",
Danil Chapovalov608298b2018-10-18 14:20:44 +020041 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -080042 ]
43}
44
45rtc_source_set("rtc_stream_config") {
46 sources = [
47 "rtc_event_log/rtc_stream_config.cc",
48 "rtc_event_log/rtc_stream_config.h",
49 ]
50
51 deps = [
Niels Mölleref1052a2019-03-20 08:40:23 +010052 "../api:rtp_headers",
Niels Möller6dcd4dc2019-08-26 10:45:28 +020053 "../api:rtp_parameters",
Qingsi Wang970b0882018-02-01 11:04:46 -080054 ]
55}
56
57rtc_source_set("rtc_event_pacing") {
58 sources = [
Ilya Nikolaevskiya4259f62017-12-05 13:19:45 +010059 "rtc_event_log/events/rtc_event_alr_state.cc",
60 "rtc_event_log/events/rtc_event_alr_state.h",
Qingsi Wang970b0882018-02-01 11:04:46 -080061 ]
62
63 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +010064 "../api:scoped_refptr",
Danil Chapovalov16cb1f62019-09-05 11:29:59 +020065 "../api/rtc_event_log",
Karl Wiberg918f50c2018-07-05 11:40:33 +020066 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -080067 ]
68}
69
70rtc_source_set("rtc_event_audio") {
71 sources = [
Elad Alon652cc842017-10-02 11:27:52 +020072 "rtc_event_log/events/rtc_event_audio_network_adaptation.cc",
73 "rtc_event_log/events/rtc_event_audio_network_adaptation.h",
74 "rtc_event_log/events/rtc_event_audio_playout.cc",
75 "rtc_event_log/events/rtc_event_audio_playout.h",
76 "rtc_event_log/events/rtc_event_audio_receive_stream_config.cc",
77 "rtc_event_log/events/rtc_event_audio_receive_stream_config.h",
78 "rtc_event_log/events/rtc_event_audio_send_stream_config.cc",
79 "rtc_event_log/events/rtc_event_audio_send_stream_config.h",
Qingsi Wang970b0882018-02-01 11:04:46 -080080 ]
81
82 deps = [
Qingsi Wang970b0882018-02-01 11:04:46 -080083 ":rtc_stream_config",
Mirko Bonadeid9708072019-01-25 20:26:48 +010084 "../api:scoped_refptr",
Danil Chapovalov16cb1f62019-09-05 11:29:59 +020085 "../api/rtc_event_log",
Qingsi Wang970b0882018-02-01 11:04:46 -080086 "../modules/audio_coding:audio_network_adaptor_config",
Elad Alon0b1b5c12018-11-09 21:50:14 +010087 "../rtc_base:checks",
Karl Wiberg918f50c2018-07-05 11:40:33 +020088 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -080089 ]
90}
91
92rtc_source_set("rtc_event_bwe") {
93 sources = [
Elad Alon652cc842017-10-02 11:27:52 +020094 "rtc_event_log/events/rtc_event_bwe_update_delay_based.cc",
95 "rtc_event_log/events/rtc_event_bwe_update_delay_based.h",
96 "rtc_event_log/events/rtc_event_bwe_update_loss_based.cc",
97 "rtc_event_log/events/rtc_event_bwe_update_loss_based.h",
Elad Alon652cc842017-10-02 11:27:52 +020098 "rtc_event_log/events/rtc_event_probe_cluster_created.cc",
99 "rtc_event_log/events/rtc_event_probe_cluster_created.h",
100 "rtc_event_log/events/rtc_event_probe_result_failure.cc",
101 "rtc_event_log/events/rtc_event_probe_result_failure.h",
102 "rtc_event_log/events/rtc_event_probe_result_success.cc",
103 "rtc_event_log/events/rtc_event_probe_result_success.h",
Sebastian Jansson166b45d2019-05-13 11:57:42 +0200104 "rtc_event_log/events/rtc_event_route_change.cc",
105 "rtc_event_log/events/rtc_event_route_change.h",
Qingsi Wang970b0882018-02-01 11:04:46 -0800106 ]
107
108 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100109 "../api:scoped_refptr",
Danil Chapovalov16cb1f62019-09-05 11:29:59 +0200110 "../api/rtc_event_log",
Artem Titov94b57c02019-03-21 13:35:10 +0100111 "../modules/remote_bitrate_estimator",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200112 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -0800113 ]
114}
115
Piotr (Peter) Slatalaf6adac82019-02-08 10:31:35 -0800116rtc_source_set("rtc_event_generic_packet_events") {
117 visibility = [ "*" ]
118 sources = [
119 "rtc_event_log/events/rtc_event_generic_ack_received.cc",
120 "rtc_event_log/events/rtc_event_generic_ack_received.h",
121 "rtc_event_log/events/rtc_event_generic_packet_received.cc",
122 "rtc_event_log/events/rtc_event_generic_packet_received.h",
123 "rtc_event_log/events/rtc_event_generic_packet_sent.cc",
124 "rtc_event_log/events/rtc_event_generic_packet_sent.h",
125 ]
126 deps = [
Danil Chapovalov16cb1f62019-09-05 11:29:59 +0200127 "../api/rtc_event_log",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200128 "../rtc_base:timeutils",
tzik8aa00f02019-02-18 22:28:26 +0900129 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200130 "//third_party/abseil-cpp/absl/types:optional",
Piotr (Peter) Slatalaf6adac82019-02-08 10:31:35 -0800131 ]
Piotr (Peter) Slatalaf6adac82019-02-08 10:31:35 -0800132}
133
Qingsi Wang970b0882018-02-01 11:04:46 -0800134rtc_source_set("rtc_event_rtp_rtcp") {
135 sources = [
Elad Alon652cc842017-10-02 11:27:52 +0200136 "rtc_event_log/events/rtc_event_rtcp_packet_incoming.cc",
137 "rtc_event_log/events/rtc_event_rtcp_packet_incoming.h",
138 "rtc_event_log/events/rtc_event_rtcp_packet_outgoing.cc",
139 "rtc_event_log/events/rtc_event_rtcp_packet_outgoing.h",
140 "rtc_event_log/events/rtc_event_rtp_packet_incoming.cc",
141 "rtc_event_log/events/rtc_event_rtp_packet_incoming.h",
142 "rtc_event_log/events/rtc_event_rtp_packet_outgoing.cc",
143 "rtc_event_log/events/rtc_event_rtp_packet_outgoing.h",
Qingsi Wang970b0882018-02-01 11:04:46 -0800144 ]
145
146 deps = [
Qingsi Wang970b0882018-02-01 11:04:46 -0800147 "../api:array_view",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100148 "../api:scoped_refptr",
Danil Chapovalov16cb1f62019-09-05 11:29:59 +0200149 "../api/rtc_event_log",
Qingsi Wang970b0882018-02-01 11:04:46 -0800150 "../modules/rtp_rtcp:rtp_rtcp_format",
Elad Alon0b1b5c12018-11-09 21:50:14 +0100151 "../rtc_base:checks",
Qingsi Wang970b0882018-02-01 11:04:46 -0800152 "../rtc_base:rtc_base_approved",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200153 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -0800154 ]
155}
156
157rtc_source_set("rtc_event_video") {
158 sources = [
Elad Alon652cc842017-10-02 11:27:52 +0200159 "rtc_event_log/events/rtc_event_video_receive_stream_config.cc",
160 "rtc_event_log/events/rtc_event_video_receive_stream_config.h",
161 "rtc_event_log/events/rtc_event_video_send_stream_config.cc",
162 "rtc_event_log/events/rtc_event_video_send_stream_config.h",
skvladcc91d282016-10-03 18:31:22 -0700163 ]
Elad Alon83ccca12017-10-04 13:18:26 +0200164
kjellander727ac1d2017-03-08 02:12:11 -0800165 deps = [
Qingsi Wang970b0882018-02-01 11:04:46 -0800166 ":rtc_stream_config",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100167 "../api:scoped_refptr",
Danil Chapovalov16cb1f62019-09-05 11:29:59 +0200168 "../api/rtc_event_log",
Elad Alon0b1b5c12018-11-09 21:50:14 +0100169 "../rtc_base:checks",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200170 "//third_party/abseil-cpp/absl/memory",
kjellander727ac1d2017-03-08 02:12:11 -0800171 ]
skvladcc91d282016-10-03 18:31:22 -0700172}
173
Elad Alond95b0a22018-11-09 16:38:54 +0100174# TODO(eladalon): Break down into (1) encoder and (2) decoder; we don't need
175# the decoder code in the WebRTC library, only in unit tests and tools.
Qingsi Wang970b0882018-02-01 11:04:46 -0800176rtc_static_library("rtc_event_log_impl_encoder") {
skvladcc91d282016-10-03 18:31:22 -0700177 sources = [
Elad Aloncb21ffe2018-10-19 18:30:30 +0200178 "rtc_event_log/encoder/blob_encoding.cc",
179 "rtc_event_log/encoder/blob_encoding.h",
Elad Alon50b1e6b2018-10-18 13:43:35 +0200180 "rtc_event_log/encoder/delta_encoding.cc",
181 "rtc_event_log/encoder/delta_encoding.h",
Elad Alond95b0a22018-11-09 16:38:54 +0100182 "rtc_event_log/encoder/rtc_event_log_encoder_common.cc",
183 "rtc_event_log/encoder/rtc_event_log_encoder_common.h",
Steve Anton10542f22019-01-11 09:11:00 -0800184 "rtc_event_log/encoder/var_int.cc",
185 "rtc_event_log/encoder/var_int.h",
skvladcc91d282016-10-03 18:31:22 -0700186 ]
187
188 defines = []
189
190 deps = [
Niels Mölleref1052a2019-03-20 08:40:23 +0100191 "../api:rtp_headers",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200192 "../api:rtp_parameters",
Yves Gerey3e707812018-11-28 16:47:49 +0100193 "../api/transport:network_control",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100194 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700195 "../rtc_base:rtc_base_approved",
Elad Alon50b1e6b2018-10-18 13:43:35 +0200196 "//third_party/abseil-cpp/absl/memory",
Artem Titov94b57c02019-03-21 13:35:10 +0100197 "//third_party/abseil-cpp/absl/strings",
Elad Alon73f39172018-10-23 18:24:10 +0200198 "//third_party/abseil-cpp/absl/types:optional",
skvladcc91d282016-10-03 18:31:22 -0700199 ]
200
201 if (rtc_enable_protobuf) {
202 defines += [ "ENABLE_RTC_EVENT_LOG" ]
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200203 deps += [
204 ":ice_log",
205 ":rtc_event_audio",
206 ":rtc_event_bwe",
Piotr (Peter) Slatalaf6adac82019-02-08 10:31:35 -0800207 ":rtc_event_generic_packet_events",
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200208 ":rtc_event_log2_proto",
209 ":rtc_event_log_api",
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200210 ":rtc_event_log_proto",
211 ":rtc_event_pacing",
212 ":rtc_event_rtp_rtcp",
213 ":rtc_event_video",
214 ":rtc_stream_config",
215 "../api:array_view",
216 "../modules/audio_coding:audio_network_adaptor",
Artem Titov94b57c02019-03-21 13:35:10 +0100217 "../modules/remote_bitrate_estimator",
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200218 "../modules/rtp_rtcp:rtp_rtcp_format",
219 ]
220 sources += [
221 "rtc_event_log/encoder/rtc_event_log_encoder_legacy.cc",
222 "rtc_event_log/encoder/rtc_event_log_encoder_legacy.h",
223 "rtc_event_log/encoder/rtc_event_log_encoder_new_format.cc",
224 "rtc_event_log/encoder/rtc_event_log_encoder_new_format.h",
225 ]
skvladcc91d282016-10-03 18:31:22 -0700226 }
skvladcc91d282016-10-03 18:31:22 -0700227}
228
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200229# TODO(bugs.webrtc.org/6463): For backwards compatibility; delete as
230# soon as downstream dependencies are updated.
Qingsi Wang970b0882018-02-01 11:04:46 -0800231rtc_source_set("rtc_event_log_impl_output") {
232 sources = [
Qingsi Wang970b0882018-02-01 11:04:46 -0800233 "rtc_event_log/output/rtc_event_log_output_file.h",
234 ]
Qingsi Wang970b0882018-02-01 11:04:46 -0800235 deps = [
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200236 "../api:rtc_event_log_output_file",
Qingsi Wang970b0882018-02-01 11:04:46 -0800237 ]
Qingsi Wang970b0882018-02-01 11:04:46 -0800238}
239
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200240if (rtc_enable_protobuf) {
241 rtc_source_set("rtc_event_log_impl") {
242 visibility = [ "../api/rtc_event_log:rtc_event_log_factory" ]
243 sources = [
244 "rtc_event_log/rtc_event_log_impl.cc",
245 "rtc_event_log/rtc_event_log_impl.h",
246 ]
247 deps = [
248 ":ice_log",
249 ":rtc_event_log_api",
250 ":rtc_event_log_impl_encoder",
251 "../api:libjingle_logging_api",
252 "../api/rtc_event_log",
253 "../api/task_queue",
254 "../rtc_base:checks",
255 "../rtc_base:rtc_base_approved",
256 "../rtc_base:rtc_task_queue",
257 "../rtc_base:safe_minmax",
258 "../rtc_base/synchronization:sequence_checker",
259 "//third_party/abseil-cpp/absl/memory",
260 "//third_party/abseil-cpp/absl/types:optional",
261 ]
262 }
263}
264
Qingsi Wang7685e862018-06-11 20:15:46 -0700265rtc_source_set("fake_rtc_event_log") {
266 testonly = true
267 sources = [
268 "rtc_event_log/fake_rtc_event_log.cc",
269 "rtc_event_log/fake_rtc_event_log.h",
270 "rtc_event_log/fake_rtc_event_log_factory.cc",
271 "rtc_event_log/fake_rtc_event_log_factory.h",
272 ]
273
274 deps = [
275 ":ice_log",
Danil Chapovalov83bbe912019-08-07 12:24:53 +0200276 "../api/rtc_event_log",
Artem Titov94b57c02019-03-21 13:35:10 +0100277 "../rtc_base",
Qingsi Wang7685e862018-06-11 20:15:46 -0700278 "../rtc_base:checks",
Qingsi Wang7685e862018-06-11 20:15:46 -0700279 ]
280}
281
skvladcc91d282016-10-03 18:31:22 -0700282if (rtc_enable_protobuf) {
283 proto_library("rtc_event_log_proto") {
Mirko Bonadeid4746722018-11-19 12:00:51 +0100284 visibility = [ "*" ]
skvladcc91d282016-10-03 18:31:22 -0700285 sources = [
286 "rtc_event_log/rtc_event_log.proto",
287 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200288 proto_out_dir = "logging/rtc_event_log"
skvladcc91d282016-10-03 18:31:22 -0700289 }
skvladcc91d282016-10-03 18:31:22 -0700290
Mirko Bonadeib3c210f2017-12-15 17:12:42 +0100291 proto_library("rtc_event_log2_proto") {
Mirko Bonadeid4746722018-11-19 12:00:51 +0100292 visibility = [ "*" ]
Mirko Bonadeib3c210f2017-12-15 17:12:42 +0100293 sources = [
294 "rtc_event_log/rtc_event_log2.proto",
295 ]
296 proto_out_dir = "logging/rtc_event_log"
297 }
298
skvladcc91d282016-10-03 18:31:22 -0700299 rtc_static_library("rtc_event_log_parser") {
Bjorn Terelius73df8832018-04-26 14:46:06 +0200300 visibility = [ "*" ]
skvladcc91d282016-10-03 18:31:22 -0700301 sources = [
Sebastian Jansson7e4341d2019-01-22 08:42:27 +0100302 "rtc_event_log/logged_events.cc",
Sebastian Jansson3f2b9aa2019-01-03 14:42:15 +0100303 "rtc_event_log/logged_events.h",
Sebastian Janssonb290a6d2019-01-03 14:46:23 +0100304 "rtc_event_log/rtc_event_log_parser.cc",
305 "rtc_event_log/rtc_event_log_parser.h",
Sebastian Jansson03fbf1e2019-01-08 15:31:06 +0100306 "rtc_event_log/rtc_event_processor.cc",
Bjorn Terelius60d629f2018-09-24 17:10:27 +0200307 "rtc_event_log/rtc_event_processor.h",
skvladcc91d282016-10-03 18:31:22 -0700308 ]
309
Mirko Bonadei818d9102017-12-12 12:46:13 +0100310 deps = [
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800311 ":ice_log",
Qingsi Wang970b0882018-02-01 11:04:46 -0800312 ":rtc_event_bwe",
Mirko Bonadeib3c210f2017-12-15 17:12:42 +0100313 ":rtc_event_log2_proto",
Elad Alond95b0a22018-11-09 16:38:54 +0100314 ":rtc_event_log_impl_encoder",
skvladcc91d282016-10-03 18:31:22 -0700315 ":rtc_event_log_proto",
Qingsi Wang970b0882018-02-01 11:04:46 -0800316 ":rtc_stream_config",
Artem Titov741daaf2019-03-21 14:37:36 +0100317 "../api:function_view",
Niels Mölleref1052a2019-03-20 08:40:23 +0100318 "../api:rtp_headers",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200319 "../api:rtp_parameters",
Danil Chapovalov83bbe912019-08-07 12:24:53 +0200320 "../api/rtc_event_log",
Sebastian Jansson7e4341d2019-01-22 08:42:27 +0100321 "../api/units:data_rate",
322 "../api/units:time_delta",
323 "../api/units:timestamp",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100324 "../call:video_stream_api",
Sebastian Janssonb4686162019-05-02 17:07:22 +0200325 "../modules:module_api",
michaeltcde46b72017-04-06 05:59:10 -0700326 "../modules/audio_coding:audio_network_adaptor",
Artem Titov94b57c02019-03-21 13:35:10 +0100327 "../modules/remote_bitrate_estimator",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100328 "../modules/rtp_rtcp",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100329 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100330 "../rtc_base:checks",
Sebastian Janssonb290a6d2019-01-03 14:46:23 +0100331 "../rtc_base:deprecation",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100332 "../rtc_base:protobuf_utils",
333 "../rtc_base:rtc_base_approved",
Sebastian Jansson7e4341d2019-01-22 08:42:27 +0100334 "../rtc_base:rtc_numerics",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200335 "//third_party/abseil-cpp/absl/memory",
Elad Alon1ac95542018-10-02 13:20:40 +0200336 "//third_party/abseil-cpp/absl/types:optional",
skvladcc91d282016-10-03 18:31:22 -0700337 ]
skvladcc91d282016-10-03 18:31:22 -0700338 }
ehmaldonado1fd08c12017-01-17 02:37:34 -0800339
340 if (rtc_include_tests) {
341 rtc_source_set("rtc_event_log_tests") {
342 testonly = true
Elad Alon1d87b0e2017-10-03 15:01:03 +0200343 assert(rtc_enable_protobuf)
344 defines = [ "ENABLE_RTC_EVENT_LOG" ]
ehmaldonado1fd08c12017-01-17 02:37:34 -0800345 sources = [
Elad Aloncb21ffe2018-10-19 18:30:30 +0200346 "rtc_event_log/encoder/blob_encoding_unittest.cc",
Elad Alon50b1e6b2018-10-18 13:43:35 +0200347 "rtc_event_log/encoder/delta_encoding_unittest.cc",
Elad Alond95b0a22018-11-09 16:38:54 +0100348 "rtc_event_log/encoder/rtc_event_log_encoder_common_unittest.cc",
Elad Alon1d87b0e2017-10-03 15:01:03 +0200349 "rtc_event_log/encoder/rtc_event_log_encoder_unittest.cc",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800350 "rtc_event_log/rtc_event_log_unittest.cc",
351 "rtc_event_log/rtc_event_log_unittest_helper.cc",
eladalonb5c319a2017-08-17 08:32:39 -0700352 "rtc_event_log/rtc_event_log_unittest_helper.h",
Bjorn Terelius60d629f2018-09-24 17:10:27 +0200353 "rtc_event_log/rtc_event_processor_unittest.cc",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800354 ]
355 deps = [
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200356 ":ice_log",
Qingsi Wang970b0882018-02-01 11:04:46 -0800357 ":rtc_event_audio",
358 ":rtc_event_bwe",
Piotr (Peter) Slatala5e2aad12019-02-13 07:49:30 -0800359 ":rtc_event_generic_packet_events",
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200360 ":rtc_event_log2_proto",
Qingsi Wang970b0882018-02-01 11:04:46 -0800361 ":rtc_event_log_impl_encoder",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800362 ":rtc_event_log_parser",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100363 ":rtc_event_log_proto",
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200364 ":rtc_event_pacing",
Qingsi Wang970b0882018-02-01 11:04:46 -0800365 ":rtc_event_rtp_rtcp",
366 ":rtc_event_video",
367 ":rtc_stream_config",
Yves Gerey3e707812018-11-28 16:47:49 +0100368 "../api:array_view",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200369 "../api:rtc_event_log_output_file",
Niels Mölleref1052a2019-03-20 08:40:23 +0100370 "../api:rtp_headers",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200371 "../api:rtp_parameters",
Danil Chapovalov83bbe912019-08-07 12:24:53 +0200372 "../api/rtc_event_log",
Danil Chapovalov4ba04b72019-06-26 15:49:47 +0200373 "../api/rtc_event_log:rtc_event_log_factory",
Danil Chapovalov304ea5f2019-04-11 15:18:18 +0200374 "../api/task_queue:default_task_queue_factory",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800375 "../call",
Mirko Bonadeia0e1a552017-12-04 10:50:51 +0100376 "../call:call_interfaces",
michaeltcde46b72017-04-06 05:59:10 -0700377 "../modules/audio_coding:audio_network_adaptor",
Artem Titov94b57c02019-03-21 13:35:10 +0100378 "../modules/remote_bitrate_estimator",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100379 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100380 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700381 "../rtc_base:rtc_base_approved",
382 "../rtc_base:rtc_base_tests_utils",
Artem Titov94b57c02019-03-21 13:35:10 +0100383 "../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100384 "../test:fileutils",
kjellander727ac1d2017-03-08 02:12:11 -0800385 "../test:test_support",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800386 "//testing/gtest",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200387 "//third_party/abseil-cpp/absl/memory",
Yves Gerey69807e82018-10-30 22:23:02 +0100388 "//third_party/abseil-cpp/absl/types:optional",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800389 ]
ehmaldonado1fd08c12017-01-17 02:37:34 -0800390 }
Mirko Bonadei9d764e82018-07-16 15:38:06 +0200391
Mirko Bonadeiab0b9d42019-07-08 12:31:59 +0200392 rtc_executable("rtc_event_log_rtp_dump") {
ivoc54b6e982017-02-08 00:28:09 -0800393 testonly = true
394 sources = [
395 "rtc_event_log/rtc_event_log2rtp_dump.cc",
396 ]
397 deps = [
ivoc54b6e982017-02-08 00:28:09 -0800398 ":rtc_event_log_parser",
Yves Gerey3e707812018-11-28 16:47:49 +0100399 "../api:array_view",
Niels Mölleref1052a2019-03-20 08:40:23 +0100400 "../api:rtp_headers",
Danil Chapovalov83bbe912019-08-07 12:24:53 +0200401 "../api/rtc_event_log",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100402 "../modules/rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100403 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100404 "../rtc_base:checks",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100405 "../rtc_base:protobuf_utils",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700406 "../rtc_base:rtc_base_approved",
ivoc54b6e982017-02-08 00:28:09 -0800407 "../test:rtp_test_utils",
Mirko Bonadeiab0b9d42019-07-08 12:31:59 +0200408 "//third_party/abseil-cpp/absl/flags:flag",
409 "//third_party/abseil-cpp/absl/flags:parse",
Mirko Bonadeif24729b2019-07-19 12:05:09 +0200410 "//third_party/abseil-cpp/absl/flags:usage",
Yves Gerey3e707812018-11-28 16:47:49 +0100411 "//third_party/abseil-cpp/absl/memory",
Bjorn Terelius60d629f2018-09-24 17:10:27 +0200412 "//third_party/abseil-cpp/absl/types:optional",
ivoc54b6e982017-02-08 00:28:09 -0800413 ]
ivoc54b6e982017-02-08 00:28:09 -0800414 }
ehmaldonado1fd08c12017-01-17 02:37:34 -0800415 }
skvladcc91d282016-10-03 18:31:22 -0700416}
Patrik Höglund731082c2018-01-03 09:08:20 +0100417
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800418rtc_source_set("ice_log") {
419 sources = [
Zach Steinc64078f2018-11-27 15:53:01 -0800420 "rtc_event_log/events/rtc_event_dtls_transport_state.cc",
421 "rtc_event_log/events/rtc_event_dtls_transport_state.h",
Zach Stein846dfdf2018-11-29 14:12:17 -0800422 "rtc_event_log/events/rtc_event_dtls_writable_state.cc",
423 "rtc_event_log/events/rtc_event_dtls_writable_state.h",
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800424 "rtc_event_log/events/rtc_event_ice_candidate_pair.cc",
425 "rtc_event_log/events/rtc_event_ice_candidate_pair.h",
426 "rtc_event_log/events/rtc_event_ice_candidate_pair_config.cc",
427 "rtc_event_log/events/rtc_event_ice_candidate_pair_config.h",
Steve Anton10542f22019-01-11 09:11:00 -0800428 "rtc_event_log/ice_logger.cc",
429 "rtc_event_log/ice_logger.h",
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800430 ]
431
432 deps = [
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800433 "../api:libjingle_logging_api",
Danil Chapovalov16cb1f62019-09-05 11:29:59 +0200434 "../api:libjingle_peerconnection_api", # For api/dtls_transport_interface.h
Danil Chapovalov83bbe912019-08-07 12:24:53 +0200435 "../api/rtc_event_log",
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800436 "../rtc_base:rtc_base_approved",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200437 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800438 ]
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800439}
440
Patrik Höglund731082c2018-01-03 09:08:20 +0100441if (rtc_include_tests) {
442 rtc_source_set("mocks") {
443 testonly = true
444 sources = [
Danil Chapovalovdd7e2842018-03-09 15:37:03 +0000445 "rtc_event_log/mock/mock_rtc_event_log.cc",
Patrik Höglund731082c2018-01-03 09:08:20 +0100446 "rtc_event_log/mock/mock_rtc_event_log.h",
447 ]
448 deps = [
Danil Chapovalov83bbe912019-08-07 12:24:53 +0200449 "../api/rtc_event_log",
Oleh Prypinda04e062018-07-23 10:04:12 +0200450 "../test:test_support",
Patrik Höglund731082c2018-01-03 09:08:20 +0100451 ]
452 }
453}