blob: 13f3f34fd6dcb84a7362ccc2de3aa53eaf2de3f1 [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",
22 ":rtc_event_log_impl_base",
23 ":rtc_event_log_impl_encoder",
Qingsi Wang970b0882018-02-01 11:04:46 -080024 ":rtc_event_pacing",
25 ":rtc_event_rtp_rtcp",
26 ":rtc_event_video",
kjellander6ceab082016-10-28 05:44:03 -070027 ]
kjellander6ceab082016-10-28 05:44:03 -070028}
29
skvladcc91d282016-10-03 18:31:22 -070030rtc_source_set("rtc_event_log_api") {
31 sources = [
Qingsi Wang970b0882018-02-01 11:04:46 -080032 "rtc_event_log/encoder/rtc_event_log_encoder.h",
Elad Alon652cc842017-10-02 11:27:52 +020033 "rtc_event_log/events/rtc_event.h",
Danil Chapovalov2a5ce2b2018-02-07 09:38:31 +010034 "rtc_event_log/rtc_event_log.cc",
Qingsi Wang970b0882018-02-01 11:04:46 -080035 "rtc_event_log/rtc_event_log.h",
36 "rtc_event_log/rtc_event_log_factory_interface.h",
37 ]
38
39 deps = [
40 "../api:libjingle_logging_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +010041 "../api:scoped_refptr",
Mirko Bonadeifc52b912019-03-01 10:32:56 +010042 "../api/task_queue",
Qingsi Wang970b0882018-02-01 11:04:46 -080043 "../rtc_base:rtc_base_approved",
Danil Chapovalov608298b2018-10-18 14:20:44 +020044 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -080045 ]
46}
47
48rtc_source_set("rtc_stream_config") {
49 sources = [
50 "rtc_event_log/rtc_stream_config.cc",
51 "rtc_event_log/rtc_stream_config.h",
52 ]
53
54 deps = [
55 ":rtc_event_log_api",
Qingsi Wang970b0882018-02-01 11:04:46 -080056 "../api:libjingle_peerconnection_api",
Niels Mölleref1052a2019-03-20 08:40:23 +010057 "../api:rtp_headers",
Qingsi Wang970b0882018-02-01 11:04:46 -080058 ]
59}
60
61rtc_source_set("rtc_event_pacing") {
62 sources = [
Ilya Nikolaevskiya4259f62017-12-05 13:19:45 +010063 "rtc_event_log/events/rtc_event_alr_state.cc",
64 "rtc_event_log/events/rtc_event_alr_state.h",
Qingsi Wang970b0882018-02-01 11:04:46 -080065 ]
66
67 deps = [
68 ":rtc_event_log_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +010069 "../api:scoped_refptr",
Karl Wiberg918f50c2018-07-05 11:40:33 +020070 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -080071 ]
72}
73
74rtc_source_set("rtc_event_audio") {
75 sources = [
Elad Alon652cc842017-10-02 11:27:52 +020076 "rtc_event_log/events/rtc_event_audio_network_adaptation.cc",
77 "rtc_event_log/events/rtc_event_audio_network_adaptation.h",
78 "rtc_event_log/events/rtc_event_audio_playout.cc",
79 "rtc_event_log/events/rtc_event_audio_playout.h",
80 "rtc_event_log/events/rtc_event_audio_receive_stream_config.cc",
81 "rtc_event_log/events/rtc_event_audio_receive_stream_config.h",
82 "rtc_event_log/events/rtc_event_audio_send_stream_config.cc",
83 "rtc_event_log/events/rtc_event_audio_send_stream_config.h",
Qingsi Wang970b0882018-02-01 11:04:46 -080084 ]
85
86 deps = [
87 ":rtc_event_log_api",
88 ":rtc_stream_config",
Mirko Bonadeid9708072019-01-25 20:26:48 +010089 "../api:scoped_refptr",
Qingsi Wang970b0882018-02-01 11:04:46 -080090 "../modules/audio_coding:audio_network_adaptor_config",
Elad Alon0b1b5c12018-11-09 21:50:14 +010091 "../rtc_base:checks",
Karl Wiberg918f50c2018-07-05 11:40:33 +020092 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -080093 ]
94}
95
96rtc_source_set("rtc_event_bwe") {
97 sources = [
Elad Alon652cc842017-10-02 11:27:52 +020098 "rtc_event_log/events/rtc_event_bwe_update_delay_based.cc",
99 "rtc_event_log/events/rtc_event_bwe_update_delay_based.h",
100 "rtc_event_log/events/rtc_event_bwe_update_loss_based.cc",
101 "rtc_event_log/events/rtc_event_bwe_update_loss_based.h",
Elad Alon652cc842017-10-02 11:27:52 +0200102 "rtc_event_log/events/rtc_event_probe_cluster_created.cc",
103 "rtc_event_log/events/rtc_event_probe_cluster_created.h",
104 "rtc_event_log/events/rtc_event_probe_result_failure.cc",
105 "rtc_event_log/events/rtc_event_probe_result_failure.h",
106 "rtc_event_log/events/rtc_event_probe_result_success.cc",
107 "rtc_event_log/events/rtc_event_probe_result_success.h",
Sebastian Jansson166b45d2019-05-13 11:57:42 +0200108 "rtc_event_log/events/rtc_event_route_change.cc",
109 "rtc_event_log/events/rtc_event_route_change.h",
Qingsi Wang970b0882018-02-01 11:04:46 -0800110 ]
111
112 deps = [
113 ":rtc_event_log_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100114 "../api:scoped_refptr",
Artem Titov94b57c02019-03-21 13:35:10 +0100115 "../modules/remote_bitrate_estimator",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200116 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -0800117 ]
118}
119
Piotr (Peter) Slatalaf6adac82019-02-08 10:31:35 -0800120rtc_source_set("rtc_event_generic_packet_events") {
121 visibility = [ "*" ]
122 sources = [
123 "rtc_event_log/events/rtc_event_generic_ack_received.cc",
124 "rtc_event_log/events/rtc_event_generic_ack_received.h",
125 "rtc_event_log/events/rtc_event_generic_packet_received.cc",
126 "rtc_event_log/events/rtc_event_generic_packet_received.h",
127 "rtc_event_log/events/rtc_event_generic_packet_sent.cc",
128 "rtc_event_log/events/rtc_event_generic_packet_sent.h",
129 ]
130 deps = [
131 ":rtc_event_log_api",
tzik8aa00f02019-02-18 22:28:26 +0900132 "//third_party/abseil-cpp/absl/memory",
Piotr (Peter) Slatalaf6adac82019-02-08 10:31:35 -0800133 ]
Piotr (Peter) Slatalaf6adac82019-02-08 10:31:35 -0800134}
135
Qingsi Wang970b0882018-02-01 11:04:46 -0800136rtc_source_set("rtc_event_rtp_rtcp") {
137 sources = [
Elad Alon652cc842017-10-02 11:27:52 +0200138 "rtc_event_log/events/rtc_event_rtcp_packet_incoming.cc",
139 "rtc_event_log/events/rtc_event_rtcp_packet_incoming.h",
140 "rtc_event_log/events/rtc_event_rtcp_packet_outgoing.cc",
141 "rtc_event_log/events/rtc_event_rtcp_packet_outgoing.h",
142 "rtc_event_log/events/rtc_event_rtp_packet_incoming.cc",
143 "rtc_event_log/events/rtc_event_rtp_packet_incoming.h",
144 "rtc_event_log/events/rtc_event_rtp_packet_outgoing.cc",
145 "rtc_event_log/events/rtc_event_rtp_packet_outgoing.h",
Qingsi Wang970b0882018-02-01 11:04:46 -0800146 ]
147
148 deps = [
149 ":rtc_event_log_api",
150 "../api:array_view",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100151 "../api:scoped_refptr",
Qingsi Wang970b0882018-02-01 11:04:46 -0800152 "../modules/rtp_rtcp:rtp_rtcp_format",
Elad Alon0b1b5c12018-11-09 21:50:14 +0100153 "../rtc_base:checks",
Qingsi Wang970b0882018-02-01 11:04:46 -0800154 "../rtc_base:rtc_base_approved",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200155 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -0800156 ]
157}
158
159rtc_source_set("rtc_event_video") {
160 sources = [
Elad Alon652cc842017-10-02 11:27:52 +0200161 "rtc_event_log/events/rtc_event_video_receive_stream_config.cc",
162 "rtc_event_log/events/rtc_event_video_receive_stream_config.h",
163 "rtc_event_log/events/rtc_event_video_send_stream_config.cc",
164 "rtc_event_log/events/rtc_event_video_send_stream_config.h",
skvladcc91d282016-10-03 18:31:22 -0700165 ]
Elad Alon83ccca12017-10-04 13:18:26 +0200166
kjellander727ac1d2017-03-08 02:12:11 -0800167 deps = [
Qingsi Wang970b0882018-02-01 11:04:46 -0800168 ":rtc_event_log_api",
169 ":rtc_stream_config",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100170 "../api:scoped_refptr",
Elad Alon0b1b5c12018-11-09 21:50:14 +0100171 "../rtc_base:checks",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200172 "//third_party/abseil-cpp/absl/memory",
kjellander727ac1d2017-03-08 02:12:11 -0800173 ]
skvladcc91d282016-10-03 18:31:22 -0700174}
175
Elad Alond95b0a22018-11-09 16:38:54 +0100176# TODO(eladalon): Break down into (1) encoder and (2) decoder; we don't need
177# the decoder code in the WebRTC library, only in unit tests and tools.
Qingsi Wang970b0882018-02-01 11:04:46 -0800178rtc_static_library("rtc_event_log_impl_encoder") {
skvladcc91d282016-10-03 18:31:22 -0700179 sources = [
Elad Aloncb21ffe2018-10-19 18:30:30 +0200180 "rtc_event_log/encoder/blob_encoding.cc",
181 "rtc_event_log/encoder/blob_encoding.h",
Elad Alon50b1e6b2018-10-18 13:43:35 +0200182 "rtc_event_log/encoder/delta_encoding.cc",
183 "rtc_event_log/encoder/delta_encoding.h",
Elad Alond95b0a22018-11-09 16:38:54 +0100184 "rtc_event_log/encoder/rtc_event_log_encoder_common.cc",
185 "rtc_event_log/encoder/rtc_event_log_encoder_common.h",
Steve Anton10542f22019-01-11 09:11:00 -0800186 "rtc_event_log/encoder/var_int.cc",
187 "rtc_event_log/encoder/var_int.h",
skvladcc91d282016-10-03 18:31:22 -0700188 ]
189
190 defines = []
191
192 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100193 "../api:libjingle_peerconnection_api",
Niels Mölleref1052a2019-03-20 08:40:23 +0100194 "../api:rtp_headers",
Yves Gerey3e707812018-11-28 16:47:49 +0100195 "../api/transport:network_control",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100196 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700197 "../rtc_base:rtc_base_approved",
Elad Alon50b1e6b2018-10-18 13:43:35 +0200198 "//third_party/abseil-cpp/absl/memory",
Artem Titov94b57c02019-03-21 13:35:10 +0100199 "//third_party/abseil-cpp/absl/strings",
Elad Alon73f39172018-10-23 18:24:10 +0200200 "//third_party/abseil-cpp/absl/types:optional",
skvladcc91d282016-10-03 18:31:22 -0700201 ]
202
203 if (rtc_enable_protobuf) {
204 defines += [ "ENABLE_RTC_EVENT_LOG" ]
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200205 deps += [
206 ":ice_log",
207 ":rtc_event_audio",
208 ":rtc_event_bwe",
Piotr (Peter) Slatalaf6adac82019-02-08 10:31:35 -0800209 ":rtc_event_generic_packet_events",
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200210 ":rtc_event_log2_proto",
211 ":rtc_event_log_api",
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200212 ":rtc_event_log_proto",
213 ":rtc_event_pacing",
214 ":rtc_event_rtp_rtcp",
215 ":rtc_event_video",
216 ":rtc_stream_config",
217 "../api:array_view",
218 "../modules/audio_coding:audio_network_adaptor",
Artem Titov94b57c02019-03-21 13:35:10 +0100219 "../modules/remote_bitrate_estimator",
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200220 "../modules/rtp_rtcp:rtp_rtcp_format",
221 ]
222 sources += [
223 "rtc_event_log/encoder/rtc_event_log_encoder_legacy.cc",
224 "rtc_event_log/encoder/rtc_event_log_encoder_legacy.h",
225 "rtc_event_log/encoder/rtc_event_log_encoder_new_format.cc",
226 "rtc_event_log/encoder/rtc_event_log_encoder_new_format.h",
227 ]
skvladcc91d282016-10-03 18:31:22 -0700228 }
skvladcc91d282016-10-03 18:31:22 -0700229}
230
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200231# TODO(bugs.webrtc.org/6463): For backwards compatibility; delete as
232# soon as downstream dependencies are updated.
Qingsi Wang970b0882018-02-01 11:04:46 -0800233rtc_source_set("rtc_event_log_impl_output") {
234 sources = [
Qingsi Wang970b0882018-02-01 11:04:46 -0800235 "rtc_event_log/output/rtc_event_log_output_file.h",
236 ]
Qingsi Wang970b0882018-02-01 11:04:46 -0800237 deps = [
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200238 "../api:rtc_event_log_output_file",
Qingsi Wang970b0882018-02-01 11:04:46 -0800239 ]
Qingsi Wang970b0882018-02-01 11:04:46 -0800240}
241
242rtc_static_library("rtc_event_log_impl_base") {
Bjorn Tereliusb8b3c992019-01-09 11:15:34 +0100243 # TODO(terelius): Should this really be visible? Currently used to instantiate
244 # the default event log factory.
Qingsi Wang970b0882018-02-01 11:04:46 -0800245 visibility = [ "*" ]
246 sources = [
247 "rtc_event_log/rtc_event_log_factory.cc",
248 "rtc_event_log/rtc_event_log_factory.h",
249 "rtc_event_log/rtc_event_log_impl.cc",
250 ]
251
252 defines = []
253
254 deps = [
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800255 ":ice_log",
Qingsi Wang970b0882018-02-01 11:04:46 -0800256 ":rtc_event_log_api",
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200257 "../api:libjingle_logging_api",
Danil Chapovalov471783f2019-03-11 14:26:02 +0100258 "../api/task_queue",
Mirko Bonadeifc52b912019-03-01 10:32:56 +0100259 "../api/task_queue:global_task_queue_factory",
Qingsi Wang970b0882018-02-01 11:04:46 -0800260 "../rtc_base:checks",
261 "../rtc_base:rtc_base_approved",
Tommi8d2c5a82018-03-19 11:12:48 +0100262 "../rtc_base:rtc_task_queue",
Karl Wiberg12edf4c2018-03-07 14:18:56 +0100263 "../rtc_base:safe_minmax",
Sebastian Janssonb55015e2019-04-09 13:44:04 +0200264 "../rtc_base/synchronization:sequence_checker",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200265 "//third_party/abseil-cpp/absl/memory",
Elad Alone7673cf2018-12-03 12:54:40 +0100266 "//third_party/abseil-cpp/absl/types:optional",
Qingsi Wang970b0882018-02-01 11:04:46 -0800267 ]
268
269 if (rtc_enable_protobuf) {
270 defines += [ "ENABLE_RTC_EVENT_LOG" ]
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200271 deps += [ ":rtc_event_log_impl_encoder" ]
Qingsi Wang970b0882018-02-01 11:04:46 -0800272 }
Qingsi Wang970b0882018-02-01 11:04:46 -0800273}
274
Qingsi Wang7685e862018-06-11 20:15:46 -0700275rtc_source_set("fake_rtc_event_log") {
276 testonly = true
277 sources = [
278 "rtc_event_log/fake_rtc_event_log.cc",
279 "rtc_event_log/fake_rtc_event_log.h",
280 "rtc_event_log/fake_rtc_event_log_factory.cc",
281 "rtc_event_log/fake_rtc_event_log_factory.h",
282 ]
283
284 deps = [
285 ":ice_log",
286 ":rtc_event_log_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100287 "../rtc_base",
Qingsi Wang7685e862018-06-11 20:15:46 -0700288 "../rtc_base:checks",
Qingsi Wang7685e862018-06-11 20:15:46 -0700289 ]
290}
291
skvladcc91d282016-10-03 18:31:22 -0700292if (rtc_enable_protobuf) {
293 proto_library("rtc_event_log_proto") {
Mirko Bonadeid4746722018-11-19 12:00:51 +0100294 visibility = [ "*" ]
skvladcc91d282016-10-03 18:31:22 -0700295 sources = [
296 "rtc_event_log/rtc_event_log.proto",
297 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200298 proto_out_dir = "logging/rtc_event_log"
skvladcc91d282016-10-03 18:31:22 -0700299 }
skvladcc91d282016-10-03 18:31:22 -0700300
Mirko Bonadeib3c210f2017-12-15 17:12:42 +0100301 proto_library("rtc_event_log2_proto") {
Mirko Bonadeid4746722018-11-19 12:00:51 +0100302 visibility = [ "*" ]
Mirko Bonadeib3c210f2017-12-15 17:12:42 +0100303 sources = [
304 "rtc_event_log/rtc_event_log2.proto",
305 ]
306 proto_out_dir = "logging/rtc_event_log"
307 }
308
skvladcc91d282016-10-03 18:31:22 -0700309 rtc_static_library("rtc_event_log_parser") {
Bjorn Terelius73df8832018-04-26 14:46:06 +0200310 visibility = [ "*" ]
skvladcc91d282016-10-03 18:31:22 -0700311 sources = [
Sebastian Jansson7e4341d2019-01-22 08:42:27 +0100312 "rtc_event_log/logged_events.cc",
Sebastian Jansson3f2b9aa2019-01-03 14:42:15 +0100313 "rtc_event_log/logged_events.h",
Sebastian Janssonb290a6d2019-01-03 14:46:23 +0100314 "rtc_event_log/rtc_event_log_parser.cc",
315 "rtc_event_log/rtc_event_log_parser.h",
Sebastian Jansson03fbf1e2019-01-08 15:31:06 +0100316 "rtc_event_log/rtc_event_processor.cc",
Bjorn Terelius60d629f2018-09-24 17:10:27 +0200317 "rtc_event_log/rtc_event_processor.h",
skvladcc91d282016-10-03 18:31:22 -0700318 ]
319
Mirko Bonadei818d9102017-12-12 12:46:13 +0100320 deps = [
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800321 ":ice_log",
Qingsi Wang970b0882018-02-01 11:04:46 -0800322 ":rtc_event_bwe",
Mirko Bonadeib3c210f2017-12-15 17:12:42 +0100323 ":rtc_event_log2_proto",
kjellander727ac1d2017-03-08 02:12:11 -0800324 ":rtc_event_log_api",
Elad Alond95b0a22018-11-09 16:38:54 +0100325 ":rtc_event_log_impl_encoder",
skvladcc91d282016-10-03 18:31:22 -0700326 ":rtc_event_log_proto",
Qingsi Wang970b0882018-02-01 11:04:46 -0800327 ":rtc_stream_config",
Artem Titov741daaf2019-03-21 14:37:36 +0100328 "../api:function_view",
Bjorn Tereliusc4ca1d32018-04-27 14:33:34 +0200329 "../api:libjingle_peerconnection_api",
Niels Mölleref1052a2019-03-20 08:40:23 +0100330 "../api:rtp_headers",
Sebastian Jansson7e4341d2019-01-22 08:42:27 +0100331 "../api/units:data_rate",
332 "../api/units:time_delta",
333 "../api/units:timestamp",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100334 "../call:video_stream_api",
Sebastian Janssonb4686162019-05-02 17:07:22 +0200335 "../modules:module_api",
michaeltcde46b72017-04-06 05:59:10 -0700336 "../modules/audio_coding:audio_network_adaptor",
Artem Titov94b57c02019-03-21 13:35:10 +0100337 "../modules/remote_bitrate_estimator",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100338 "../modules/rtp_rtcp",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100339 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100340 "../rtc_base:checks",
Sebastian Janssonb290a6d2019-01-03 14:46:23 +0100341 "../rtc_base:deprecation",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100342 "../rtc_base:protobuf_utils",
343 "../rtc_base:rtc_base_approved",
Sebastian Jansson7e4341d2019-01-22 08:42:27 +0100344 "../rtc_base:rtc_numerics",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200345 "//third_party/abseil-cpp/absl/memory",
Elad Alon1ac95542018-10-02 13:20:40 +0200346 "//third_party/abseil-cpp/absl/types:optional",
skvladcc91d282016-10-03 18:31:22 -0700347 ]
skvladcc91d282016-10-03 18:31:22 -0700348 }
ehmaldonado1fd08c12017-01-17 02:37:34 -0800349
350 if (rtc_include_tests) {
351 rtc_source_set("rtc_event_log_tests") {
352 testonly = true
Elad Alon1d87b0e2017-10-03 15:01:03 +0200353 assert(rtc_enable_protobuf)
354 defines = [ "ENABLE_RTC_EVENT_LOG" ]
ehmaldonado1fd08c12017-01-17 02:37:34 -0800355 sources = [
Elad Aloncb21ffe2018-10-19 18:30:30 +0200356 "rtc_event_log/encoder/blob_encoding_unittest.cc",
Elad Alon50b1e6b2018-10-18 13:43:35 +0200357 "rtc_event_log/encoder/delta_encoding_unittest.cc",
Elad Alond95b0a22018-11-09 16:38:54 +0100358 "rtc_event_log/encoder/rtc_event_log_encoder_common_unittest.cc",
Elad Alon1d87b0e2017-10-03 15:01:03 +0200359 "rtc_event_log/encoder/rtc_event_log_encoder_unittest.cc",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800360 "rtc_event_log/rtc_event_log_unittest.cc",
361 "rtc_event_log/rtc_event_log_unittest_helper.cc",
eladalonb5c319a2017-08-17 08:32:39 -0700362 "rtc_event_log/rtc_event_log_unittest_helper.h",
Bjorn Terelius60d629f2018-09-24 17:10:27 +0200363 "rtc_event_log/rtc_event_processor_unittest.cc",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800364 ]
365 deps = [
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200366 ":ice_log",
Qingsi Wang970b0882018-02-01 11:04:46 -0800367 ":rtc_event_audio",
368 ":rtc_event_bwe",
Piotr (Peter) Slatala5e2aad12019-02-13 07:49:30 -0800369 ":rtc_event_generic_packet_events",
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200370 ":rtc_event_log2_proto",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100371 ":rtc_event_log_api",
Qingsi Wang970b0882018-02-01 11:04:46 -0800372 ":rtc_event_log_impl_base",
373 ":rtc_event_log_impl_encoder",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800374 ":rtc_event_log_parser",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100375 ":rtc_event_log_proto",
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200376 ":rtc_event_pacing",
Qingsi Wang970b0882018-02-01 11:04:46 -0800377 ":rtc_event_rtp_rtcp",
378 ":rtc_event_video",
379 ":rtc_stream_config",
Yves Gerey3e707812018-11-28 16:47:49 +0100380 "../api:array_view",
Mirko Bonadeia0e1a552017-12-04 10:50:51 +0100381 "../api:libjingle_peerconnection_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200382 "../api:rtc_event_log_output_file",
Niels Mölleref1052a2019-03-20 08:40:23 +0100383 "../api:rtp_headers",
Danil Chapovalov304ea5f2019-04-11 15:18:18 +0200384 "../api/task_queue:default_task_queue_factory",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800385 "../call",
Mirko Bonadeia0e1a552017-12-04 10:50:51 +0100386 "../call:call_interfaces",
michaeltcde46b72017-04-06 05:59:10 -0700387 "../modules/audio_coding:audio_network_adaptor",
Artem Titov94b57c02019-03-21 13:35:10 +0100388 "../modules/remote_bitrate_estimator",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100389 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100390 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700391 "../rtc_base:rtc_base_approved",
392 "../rtc_base:rtc_base_tests_utils",
Artem Titov94b57c02019-03-21 13:35:10 +0100393 "../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100394 "../test:fileutils",
kjellander727ac1d2017-03-08 02:12:11 -0800395 "../test:test_support",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800396 "//testing/gtest",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200397 "//third_party/abseil-cpp/absl/memory",
Yves Gerey69807e82018-10-30 22:23:02 +0100398 "//third_party/abseil-cpp/absl/types:optional",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800399 ]
ehmaldonado1fd08c12017-01-17 02:37:34 -0800400 }
Mirko Bonadei9d764e82018-07-16 15:38:06 +0200401
ivoc54b6e982017-02-08 00:28:09 -0800402 rtc_test("rtc_event_log2rtp_dump") {
403 testonly = true
404 sources = [
405 "rtc_event_log/rtc_event_log2rtp_dump.cc",
406 ]
407 deps = [
408 ":rtc_event_log_api",
ivoc54b6e982017-02-08 00:28:09 -0800409 ":rtc_event_log_parser",
Yves Gerey3e707812018-11-28 16:47:49 +0100410 "../api:array_view",
411 "../api:libjingle_peerconnection_api",
Niels Mölleref1052a2019-03-20 08:40:23 +0100412 "../api:rtp_headers",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100413 "../modules/rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100414 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100415 "../rtc_base:checks",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100416 "../rtc_base:protobuf_utils",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700417 "../rtc_base:rtc_base_approved",
ivoc54b6e982017-02-08 00:28:09 -0800418 "../test:rtp_test_utils",
Yves Gerey3e707812018-11-28 16:47:49 +0100419 "//third_party/abseil-cpp/absl/memory",
Bjorn Terelius60d629f2018-09-24 17:10:27 +0200420 "//third_party/abseil-cpp/absl/types:optional",
ivoc54b6e982017-02-08 00:28:09 -0800421 ]
ivoc54b6e982017-02-08 00:28:09 -0800422 }
ehmaldonado1fd08c12017-01-17 02:37:34 -0800423 }
skvladcc91d282016-10-03 18:31:22 -0700424}
Patrik Höglund731082c2018-01-03 09:08:20 +0100425
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800426rtc_source_set("ice_log") {
427 sources = [
Zach Steinc64078f2018-11-27 15:53:01 -0800428 "rtc_event_log/events/rtc_event_dtls_transport_state.cc",
429 "rtc_event_log/events/rtc_event_dtls_transport_state.h",
Zach Stein846dfdf2018-11-29 14:12:17 -0800430 "rtc_event_log/events/rtc_event_dtls_writable_state.cc",
431 "rtc_event_log/events/rtc_event_dtls_writable_state.h",
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800432 "rtc_event_log/events/rtc_event_ice_candidate_pair.cc",
433 "rtc_event_log/events/rtc_event_ice_candidate_pair.h",
434 "rtc_event_log/events/rtc_event_ice_candidate_pair_config.cc",
435 "rtc_event_log/events/rtc_event_ice_candidate_pair_config.h",
Steve Anton10542f22019-01-11 09:11:00 -0800436 "rtc_event_log/ice_logger.cc",
437 "rtc_event_log/ice_logger.h",
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800438 ]
439
440 deps = [
441 ":rtc_event_log_api",
442 "../api:libjingle_logging_api",
Harald Alvestrand4a7b3ac2019-01-17 10:39:40 +0100443 "../api:libjingle_peerconnection_api",
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800444 "../rtc_base:rtc_base_approved",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200445 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800446 ]
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800447}
448
Patrik Höglund731082c2018-01-03 09:08:20 +0100449if (rtc_include_tests) {
450 rtc_source_set("mocks") {
451 testonly = true
452 sources = [
Danil Chapovalovdd7e2842018-03-09 15:37:03 +0000453 "rtc_event_log/mock/mock_rtc_event_log.cc",
Patrik Höglund731082c2018-01-03 09:08:20 +0100454 "rtc_event_log/mock/mock_rtc_event_log.h",
455 ]
456 deps = [
457 ":rtc_event_log_api",
Oleh Prypinda04e062018-07-23 10:04:12 +0200458 "../test:test_support",
Patrik Höglund731082c2018-01-03 09:08:20 +0100459 ]
460 }
461}