blob: d450f624e21bfce3fddb4697ad3f9b04c817a130 [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")
Dan Minor9c686132018-01-15 10:20:00 -050010if (!build_with_mozilla) {
11 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",
24 ":rtc_event_log_impl_output",
25 ":rtc_event_pacing",
26 ":rtc_event_rtp_rtcp",
27 ":rtc_event_video",
kjellander6ceab082016-10-28 05:44:03 -070028 ]
kjellander6ceab082016-10-28 05:44:03 -070029}
30
skvladcc91d282016-10-03 18:31:22 -070031rtc_source_set("rtc_event_log_api") {
32 sources = [
Qingsi Wang970b0882018-02-01 11:04:46 -080033 "rtc_event_log/encoder/rtc_event_log_encoder.h",
Elad Alon652cc842017-10-02 11:27:52 +020034 "rtc_event_log/events/rtc_event.h",
Danil Chapovalov2a5ce2b2018-02-07 09:38:31 +010035 "rtc_event_log/rtc_event_log.cc",
Qingsi Wang970b0882018-02-01 11:04:46 -080036 "rtc_event_log/rtc_event_log.h",
37 "rtc_event_log/rtc_event_log_factory_interface.h",
38 ]
39
40 deps = [
41 "../api:libjingle_logging_api",
Bjorn Tereliusf4db5422018-06-26 11:41:27 +020042 "../rtc_base:ptr_util",
Qingsi Wang970b0882018-02-01 11:04:46 -080043 "../rtc_base:rtc_base_approved",
Dino Radakoviće9d2e4d2018-03-20 18:15:39 +010044 "../rtc_base:rtc_task_queue",
Danil Chapovalov608298b2018-10-18 14:20:44 +020045 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -080046 ]
47}
48
49rtc_source_set("rtc_stream_config") {
50 sources = [
51 "rtc_event_log/rtc_stream_config.cc",
52 "rtc_event_log/rtc_stream_config.h",
53 ]
54
55 deps = [
56 ":rtc_event_log_api",
Qingsi Wang970b0882018-02-01 11:04:46 -080057 "../api:libjingle_peerconnection_api",
58 ]
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",
Bjorn Tereliusf4db5422018-06-26 11:41:27 +020069 "../rtc_base:ptr_util",
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",
89 "../modules/audio_coding:audio_network_adaptor_config",
Elad Alon0b1b5c12018-11-09 21:50:14 +010090 "../rtc_base:checks",
Bjorn Tereliusf4db5422018-06-26 11:41:27 +020091 "../rtc_base:ptr_util",
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",
Qingsi Wang970b0882018-02-01 11:04:46 -0800108 ]
109
110 deps = [
111 ":rtc_event_log_api",
112 "../modules/remote_bitrate_estimator:remote_bitrate_estimator",
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200113 "../rtc_base:ptr_util",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200114 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -0800115 ]
116}
117
118rtc_source_set("rtc_event_rtp_rtcp") {
119 sources = [
Elad Alon652cc842017-10-02 11:27:52 +0200120 "rtc_event_log/events/rtc_event_rtcp_packet_incoming.cc",
121 "rtc_event_log/events/rtc_event_rtcp_packet_incoming.h",
122 "rtc_event_log/events/rtc_event_rtcp_packet_outgoing.cc",
123 "rtc_event_log/events/rtc_event_rtcp_packet_outgoing.h",
124 "rtc_event_log/events/rtc_event_rtp_packet_incoming.cc",
125 "rtc_event_log/events/rtc_event_rtp_packet_incoming.h",
126 "rtc_event_log/events/rtc_event_rtp_packet_outgoing.cc",
127 "rtc_event_log/events/rtc_event_rtp_packet_outgoing.h",
Qingsi Wang970b0882018-02-01 11:04:46 -0800128 ]
129
130 deps = [
131 ":rtc_event_log_api",
132 "../api:array_view",
133 "../modules/rtp_rtcp:rtp_rtcp_format",
Elad Alon0b1b5c12018-11-09 21:50:14 +0100134 "../rtc_base:checks",
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200135 "../rtc_base:ptr_util",
Qingsi Wang970b0882018-02-01 11:04:46 -0800136 "../rtc_base:rtc_base_approved",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200137 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -0800138 ]
139}
140
141rtc_source_set("rtc_event_video") {
142 sources = [
Elad Alon652cc842017-10-02 11:27:52 +0200143 "rtc_event_log/events/rtc_event_video_receive_stream_config.cc",
144 "rtc_event_log/events/rtc_event_video_receive_stream_config.h",
145 "rtc_event_log/events/rtc_event_video_send_stream_config.cc",
146 "rtc_event_log/events/rtc_event_video_send_stream_config.h",
skvladcc91d282016-10-03 18:31:22 -0700147 ]
Elad Alon83ccca12017-10-04 13:18:26 +0200148
kjellander727ac1d2017-03-08 02:12:11 -0800149 deps = [
Qingsi Wang970b0882018-02-01 11:04:46 -0800150 ":rtc_event_log_api",
151 ":rtc_stream_config",
Elad Alon0b1b5c12018-11-09 21:50:14 +0100152 "../rtc_base:checks",
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200153 "../rtc_base:ptr_util",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200154 "//third_party/abseil-cpp/absl/memory",
kjellander727ac1d2017-03-08 02:12:11 -0800155 ]
skvladcc91d282016-10-03 18:31:22 -0700156}
157
Elad Alond95b0a22018-11-09 16:38:54 +0100158# TODO(eladalon): Break down into (1) encoder and (2) decoder; we don't need
159# the decoder code in the WebRTC library, only in unit tests and tools.
Qingsi Wang970b0882018-02-01 11:04:46 -0800160rtc_static_library("rtc_event_log_impl_encoder") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000161 visibility = [ "*" ]
skvladcc91d282016-10-03 18:31:22 -0700162 sources = [
Elad Aloncb21ffe2018-10-19 18:30:30 +0200163 "rtc_event_log/encoder/blob_encoding.cc",
164 "rtc_event_log/encoder/blob_encoding.h",
Elad Alon50b1e6b2018-10-18 13:43:35 +0200165 "rtc_event_log/encoder/delta_encoding.cc",
166 "rtc_event_log/encoder/delta_encoding.h",
Elad Alond95b0a22018-11-09 16:38:54 +0100167 "rtc_event_log/encoder/rtc_event_log_encoder_common.cc",
168 "rtc_event_log/encoder/rtc_event_log_encoder_common.h",
Elad Alonff435412018-10-26 19:09:41 +0200169 "rtc_event_log/encoder/varint.cc",
170 "rtc_event_log/encoder/varint.h",
skvladcc91d282016-10-03 18:31:22 -0700171 ]
172
173 defines = []
174
175 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100176 "../api:libjingle_peerconnection_api",
177 "../api/transport:network_control",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100178 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700179 "../rtc_base:rtc_base_approved",
Elad Alon50b1e6b2018-10-18 13:43:35 +0200180 "//third_party/abseil-cpp/absl/memory",
Elad Aloncb21ffe2018-10-19 18:30:30 +0200181 "//third_party/abseil-cpp/absl/strings:strings",
Elad Alon73f39172018-10-23 18:24:10 +0200182 "//third_party/abseil-cpp/absl/types:optional",
skvladcc91d282016-10-03 18:31:22 -0700183 ]
184
185 if (rtc_enable_protobuf) {
186 defines += [ "ENABLE_RTC_EVENT_LOG" ]
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200187 deps += [
188 ":ice_log",
189 ":rtc_event_audio",
190 ":rtc_event_bwe",
191 ":rtc_event_log2_proto",
192 ":rtc_event_log_api",
193 ":rtc_event_log_impl_output",
194 ":rtc_event_log_proto",
195 ":rtc_event_pacing",
196 ":rtc_event_rtp_rtcp",
197 ":rtc_event_video",
198 ":rtc_stream_config",
199 "../api:array_view",
200 "../modules/audio_coding:audio_network_adaptor",
201 "../modules/remote_bitrate_estimator:remote_bitrate_estimator",
202 "../modules/rtp_rtcp:rtp_rtcp_format",
203 ]
204 sources += [
205 "rtc_event_log/encoder/rtc_event_log_encoder_legacy.cc",
206 "rtc_event_log/encoder/rtc_event_log_encoder_legacy.h",
207 "rtc_event_log/encoder/rtc_event_log_encoder_new_format.cc",
208 "rtc_event_log/encoder/rtc_event_log_encoder_new_format.h",
209 ]
skvladcc91d282016-10-03 18:31:22 -0700210 }
skvladcc91d282016-10-03 18:31:22 -0700211}
212
Qingsi Wang970b0882018-02-01 11:04:46 -0800213rtc_source_set("rtc_event_log_impl_output") {
214 sources = [
215 "rtc_event_log/output/rtc_event_log_output_file.cc",
216 "rtc_event_log/output/rtc_event_log_output_file.h",
217 ]
218
219 deps = [
220 ":rtc_event_log_api",
221 "../api:libjingle_logging_api",
222 "../rtc_base:checks",
223 "../rtc_base:rtc_base_approved",
224 ]
Qingsi Wang970b0882018-02-01 11:04:46 -0800225}
226
227rtc_static_library("rtc_event_log_impl_base") {
228 visibility = [ "*" ]
229 sources = [
230 "rtc_event_log/rtc_event_log_factory.cc",
231 "rtc_event_log/rtc_event_log_factory.h",
232 "rtc_event_log/rtc_event_log_impl.cc",
233 ]
234
235 defines = []
236
237 deps = [
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800238 ":ice_log",
Qingsi Wang970b0882018-02-01 11:04:46 -0800239 ":rtc_event_log_api",
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200240 "../api:libjingle_logging_api",
Qingsi Wang970b0882018-02-01 11:04:46 -0800241 "../rtc_base:checks",
242 "../rtc_base:rtc_base_approved",
Tommi8d2c5a82018-03-19 11:12:48 +0100243 "../rtc_base:rtc_task_queue",
Karl Wiberg12edf4c2018-03-07 14:18:56 +0100244 "../rtc_base:safe_minmax",
Qingsi Wang970b0882018-02-01 11:04:46 -0800245 "../rtc_base:sequenced_task_checker",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200246 "//third_party/abseil-cpp/absl/memory",
Elad Alone7673cf2018-12-03 12:54:40 +0100247 "//third_party/abseil-cpp/absl/types:optional",
Qingsi Wang970b0882018-02-01 11:04:46 -0800248 ]
249
250 if (rtc_enable_protobuf) {
251 defines += [ "ENABLE_RTC_EVENT_LOG" ]
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200252 deps += [ ":rtc_event_log_impl_encoder" ]
Qingsi Wang970b0882018-02-01 11:04:46 -0800253 }
Qingsi Wang970b0882018-02-01 11:04:46 -0800254}
255
Qingsi Wang7685e862018-06-11 20:15:46 -0700256rtc_source_set("fake_rtc_event_log") {
257 testonly = true
258 sources = [
259 "rtc_event_log/fake_rtc_event_log.cc",
260 "rtc_event_log/fake_rtc_event_log.h",
261 "rtc_event_log/fake_rtc_event_log_factory.cc",
262 "rtc_event_log/fake_rtc_event_log_factory.h",
263 ]
264
265 deps = [
266 ":ice_log",
267 ":rtc_event_log_api",
268 "../rtc_base:checks",
269 "../rtc_base:rtc_base",
270 ]
271}
272
skvladcc91d282016-10-03 18:31:22 -0700273if (rtc_enable_protobuf) {
274 proto_library("rtc_event_log_proto") {
Mirko Bonadeid4746722018-11-19 12:00:51 +0100275 visibility = [ "*" ]
skvladcc91d282016-10-03 18:31:22 -0700276 sources = [
277 "rtc_event_log/rtc_event_log.proto",
278 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200279 proto_out_dir = "logging/rtc_event_log"
skvladcc91d282016-10-03 18:31:22 -0700280 }
skvladcc91d282016-10-03 18:31:22 -0700281
Mirko Bonadeib3c210f2017-12-15 17:12:42 +0100282 proto_library("rtc_event_log2_proto") {
Mirko Bonadeid4746722018-11-19 12:00:51 +0100283 visibility = [ "*" ]
Mirko Bonadeib3c210f2017-12-15 17:12:42 +0100284 sources = [
285 "rtc_event_log/rtc_event_log2.proto",
286 ]
287 proto_out_dir = "logging/rtc_event_log"
288 }
289
skvladcc91d282016-10-03 18:31:22 -0700290 rtc_static_library("rtc_event_log_parser") {
Bjorn Terelius73df8832018-04-26 14:46:06 +0200291 visibility = [ "*" ]
skvladcc91d282016-10-03 18:31:22 -0700292 sources = [
Sebastian Jansson3f2b9aa2019-01-03 14:42:15 +0100293 "rtc_event_log/logged_events.h",
Sebastian Janssonb290a6d2019-01-03 14:46:23 +0100294 "rtc_event_log/rtc_event_log_parser.cc",
295 "rtc_event_log/rtc_event_log_parser.h",
Sebastian Jansson03fbf1e2019-01-08 15:31:06 +0100296 "rtc_event_log/rtc_event_processor.cc",
Bjorn Terelius60d629f2018-09-24 17:10:27 +0200297 "rtc_event_log/rtc_event_processor.h",
skvladcc91d282016-10-03 18:31:22 -0700298 ]
299
Mirko Bonadei818d9102017-12-12 12:46:13 +0100300 deps = [
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800301 ":ice_log",
Qingsi Wang970b0882018-02-01 11:04:46 -0800302 ":rtc_event_bwe",
Mirko Bonadeib3c210f2017-12-15 17:12:42 +0100303 ":rtc_event_log2_proto",
kjellander727ac1d2017-03-08 02:12:11 -0800304 ":rtc_event_log_api",
Elad Alond95b0a22018-11-09 16:38:54 +0100305 ":rtc_event_log_impl_encoder",
skvladcc91d282016-10-03 18:31:22 -0700306 ":rtc_event_log_proto",
Qingsi Wang970b0882018-02-01 11:04:46 -0800307 ":rtc_stream_config",
Bjorn Tereliusc4ca1d32018-04-27 14:33:34 +0200308 "../api:libjingle_peerconnection_api",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100309 "../call:video_stream_api",
michaeltcde46b72017-04-06 05:59:10 -0700310 "../modules/audio_coding:audio_network_adaptor",
Sebastian Janssona39a0072018-10-15 20:59:07 +0200311 "../modules/congestion_controller/rtp:transport_feedback",
michaelt97653702017-04-11 00:49:44 -0700312 "../modules/remote_bitrate_estimator:remote_bitrate_estimator",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100313 "../modules/rtp_rtcp",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100314 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100315 "../rtc_base:checks",
Sebastian Janssonb290a6d2019-01-03 14:46:23 +0100316 "../rtc_base:deprecation",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100317 "../rtc_base:protobuf_utils",
318 "../rtc_base:rtc_base_approved",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200319 "//third_party/abseil-cpp/absl/memory",
Elad Alon1ac95542018-10-02 13:20:40 +0200320 "//third_party/abseil-cpp/absl/types:optional",
skvladcc91d282016-10-03 18:31:22 -0700321 ]
skvladcc91d282016-10-03 18:31:22 -0700322 }
ehmaldonado1fd08c12017-01-17 02:37:34 -0800323
324 if (rtc_include_tests) {
325 rtc_source_set("rtc_event_log_tests") {
326 testonly = true
Elad Alon1d87b0e2017-10-03 15:01:03 +0200327 assert(rtc_enable_protobuf)
328 defines = [ "ENABLE_RTC_EVENT_LOG" ]
ehmaldonado1fd08c12017-01-17 02:37:34 -0800329 sources = [
Elad Aloncb21ffe2018-10-19 18:30:30 +0200330 "rtc_event_log/encoder/blob_encoding_unittest.cc",
Elad Alon50b1e6b2018-10-18 13:43:35 +0200331 "rtc_event_log/encoder/delta_encoding_unittest.cc",
Elad Alond95b0a22018-11-09 16:38:54 +0100332 "rtc_event_log/encoder/rtc_event_log_encoder_common_unittest.cc",
Elad Alon1d87b0e2017-10-03 15:01:03 +0200333 "rtc_event_log/encoder/rtc_event_log_encoder_unittest.cc",
Elad Alon83ccca12017-10-04 13:18:26 +0200334 "rtc_event_log/output/rtc_event_log_output_file_unittest.cc",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800335 "rtc_event_log/rtc_event_log_unittest.cc",
336 "rtc_event_log/rtc_event_log_unittest_helper.cc",
eladalonb5c319a2017-08-17 08:32:39 -0700337 "rtc_event_log/rtc_event_log_unittest_helper.h",
Bjorn Terelius60d629f2018-09-24 17:10:27 +0200338 "rtc_event_log/rtc_event_processor_unittest.cc",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800339 ]
340 deps = [
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200341 ":ice_log",
Qingsi Wang970b0882018-02-01 11:04:46 -0800342 ":rtc_event_audio",
343 ":rtc_event_bwe",
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200344 ":rtc_event_log2_proto",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100345 ":rtc_event_log_api",
Qingsi Wang970b0882018-02-01 11:04:46 -0800346 ":rtc_event_log_impl_base",
347 ":rtc_event_log_impl_encoder",
348 ":rtc_event_log_impl_output",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800349 ":rtc_event_log_parser",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100350 ":rtc_event_log_proto",
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200351 ":rtc_event_pacing",
Qingsi Wang970b0882018-02-01 11:04:46 -0800352 ":rtc_event_rtp_rtcp",
353 ":rtc_event_video",
354 ":rtc_stream_config",
Yves Gerey3e707812018-11-28 16:47:49 +0100355 "../api:array_view",
Mirko Bonadeia0e1a552017-12-04 10:50:51 +0100356 "../api:libjingle_peerconnection_api",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800357 "../call",
Mirko Bonadeia0e1a552017-12-04 10:50:51 +0100358 "../call:call_interfaces",
michaeltcde46b72017-04-06 05:59:10 -0700359 "../modules/audio_coding:audio_network_adaptor",
michaelt97653702017-04-11 00:49:44 -0700360 "../modules/remote_bitrate_estimator:remote_bitrate_estimator",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100361 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100362 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700363 "../rtc_base:rtc_base_approved",
364 "../rtc_base:rtc_base_tests_utils",
Yves Gerey3e707812018-11-28 16:47:49 +0100365 "../system_wrappers:system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100366 "../test:fileutils",
kjellander727ac1d2017-03-08 02:12:11 -0800367 "../test:test_support",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800368 "//testing/gtest",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200369 "//third_party/abseil-cpp/absl/memory",
Yves Gerey69807e82018-10-30 22:23:02 +0100370 "//third_party/abseil-cpp/absl/types:optional",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800371 ]
372 if (!build_with_chromium && is_clang) {
373 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
374 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
375 }
376 }
Mirko Bonadei9d764e82018-07-16 15:38:06 +0200377
ivoc54b6e982017-02-08 00:28:09 -0800378 rtc_test("rtc_event_log2rtp_dump") {
379 testonly = true
380 sources = [
381 "rtc_event_log/rtc_event_log2rtp_dump.cc",
382 ]
383 deps = [
384 ":rtc_event_log_api",
ivoc54b6e982017-02-08 00:28:09 -0800385 ":rtc_event_log_parser",
Yves Gerey3e707812018-11-28 16:47:49 +0100386 "../api:array_view",
387 "../api:libjingle_peerconnection_api",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100388 "../modules/rtp_rtcp",
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",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100391 "../rtc_base:protobuf_utils",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700392 "../rtc_base:rtc_base_approved",
ivoc54b6e982017-02-08 00:28:09 -0800393 "../test:rtp_test_utils",
Yves Gerey3e707812018-11-28 16:47:49 +0100394 "//third_party/abseil-cpp/absl/memory",
Bjorn Terelius60d629f2018-09-24 17:10:27 +0200395 "//third_party/abseil-cpp/absl/types:optional",
ivoc54b6e982017-02-08 00:28:09 -0800396 ]
397 if (!build_with_chromium && is_clang) {
398 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
399 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
400 }
401 }
ehmaldonado1fd08c12017-01-17 02:37:34 -0800402 }
skvladcc91d282016-10-03 18:31:22 -0700403}
Patrik Höglund731082c2018-01-03 09:08:20 +0100404
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800405rtc_source_set("ice_log") {
406 sources = [
Zach Steinc64078f2018-11-27 15:53:01 -0800407 "rtc_event_log/events/rtc_event_dtls_transport_state.cc",
408 "rtc_event_log/events/rtc_event_dtls_transport_state.h",
Zach Stein846dfdf2018-11-29 14:12:17 -0800409 "rtc_event_log/events/rtc_event_dtls_writable_state.cc",
410 "rtc_event_log/events/rtc_event_dtls_writable_state.h",
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800411 "rtc_event_log/events/rtc_event_ice_candidate_pair.cc",
412 "rtc_event_log/events/rtc_event_ice_candidate_pair.h",
413 "rtc_event_log/events/rtc_event_ice_candidate_pair_config.cc",
414 "rtc_event_log/events/rtc_event_ice_candidate_pair_config.h",
415 "rtc_event_log/icelogger.cc",
416 "rtc_event_log/icelogger.h",
417 ]
418
419 deps = [
420 ":rtc_event_log_api",
421 "../api:libjingle_logging_api",
422 "../rtc_base:rtc_base_approved",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200423 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800424 ]
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800425}
426
Patrik Höglund731082c2018-01-03 09:08:20 +0100427if (rtc_include_tests) {
428 rtc_source_set("mocks") {
429 testonly = true
430 sources = [
Danil Chapovalovdd7e2842018-03-09 15:37:03 +0000431 "rtc_event_log/mock/mock_rtc_event_log.cc",
Patrik Höglund731082c2018-01-03 09:08:20 +0100432 "rtc_event_log/mock/mock_rtc_event_log.h",
433 ]
434 deps = [
435 ":rtc_event_log_api",
Oleh Prypinda04e062018-07-23 10:04:12 +0200436 "../test:test_support",
Patrik Höglund731082c2018-01-03 09:08:20 +0100437 ]
438 }
439}