blob: 50decd121670b864ad3507e4ff6b76ddf72a9d2e [file] [log] [blame]
Peter Boström5c389d32015-09-25 13:58:30 +02001# Copyright (c) 2015 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")
Peter Boström5c389d32015-09-25 13:58:30 +020010
ossuf515ab82016-12-07 04:52:58 -080011rtc_source_set("call_interfaces") {
12 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +020013 "audio_receive_stream.cc",
ossuf515ab82016-12-07 04:52:58 -080014 "audio_receive_stream.h",
ossuf515ab82016-12-07 04:52:58 -080015 "audio_send_stream.h",
Paulina Hensman11b34f42018-04-09 14:24:52 +020016 "audio_state.cc",
ossuf515ab82016-12-07 04:52:58 -080017 "audio_state.h",
18 "call.h",
Paulina Hensman11b34f42018-04-09 14:24:52 +020019 "call_config.cc",
20 "call_config.h",
21 "flexfec_receive_stream.cc",
brandtr7250b392016-12-19 01:13:46 -080022 "flexfec_receive_stream.h",
Niels Möller70082872018-08-07 11:03:12 +020023 "packet_receiver.h",
solenberg3ebbcb52017-01-31 03:58:40 -080024 "syncable.cc",
25 "syncable.h",
ossuf515ab82016-12-07 04:52:58 -080026 ]
Dan Minor9c686132018-01-15 10:20:00 -050027 if (!build_with_mozilla) {
28 sources += [ "audio_send_stream.cc" ]
29 }
kjellander2f1a5552017-02-27 15:57:45 -080030 deps = [
nissed76b7b22017-06-01 04:02:35 -070031 ":rtp_interfaces",
aleloi440b6d92017-08-22 05:43:23 -070032 ":video_stream_api",
kjellander2f1a5552017-02-27 15:57:45 -080033 "..:webrtc_common",
Ying Wang3b790f32018-01-19 17:58:57 +010034 "../api:fec_controller_api",
hbos8d609f62017-04-10 07:39:05 -070035 "../api:libjingle_peerconnection_api",
kjellander2f1a5552017-02-27 15:57:45 -080036 "../api:transport_api",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +010037 "../api/audio:audio_mixer_api",
kjellander2f1a5552017-02-27 15:57:45 -080038 "../api/audio_codecs:audio_codecs_api",
Sebastian Janssondfce03a2018-05-18 18:05:10 +020039 "../api/transport:network_control",
Paulina Hensman11b34f42018-04-09 14:24:52 +020040 "../modules/audio_device:audio_device",
Alessio Bazzicab768e882018-11-07 14:29:54 +000041 "../modules/audio_processing:api",
Paulina Hensman11b34f42018-04-09 14:24:52 +020042 "../modules/audio_processing:audio_processing",
Ivo Creusen56d46092017-11-24 17:29:59 +010043 "../modules/audio_processing:audio_processing_statistics",
Jonas Olssonabbe8412018-04-03 13:40:05 +020044 "../rtc_base:audio_format_to_string",
Yves Gerey988cc082018-10-23 12:03:01 +020045 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -070046 "../rtc_base:rtc_base",
47 "../rtc_base:rtc_base_approved",
Sebastian Jansson12985412018-10-15 21:06:26 +020048 "../rtc_base/network:sent_packet",
Danil Chapovalovb9b146c2018-06-15 12:28:07 +020049 "//third_party/abseil-cpp/absl/types:optional",
kjellander2f1a5552017-02-27 15:57:45 -080050 ]
ossuf515ab82016-12-07 04:52:58 -080051}
52
nissed76b7b22017-06-01 04:02:35 -070053# TODO(nisse): These RTP targets should be moved elsewhere
eladalone2173d92017-07-28 10:05:45 -070054# when interfaces have stabilized. See also TODO for |mock_rtp_interfaces|.
nissed76b7b22017-06-01 04:02:35 -070055rtc_source_set("rtp_interfaces") {
Danil Chapovalov32fe3d12018-10-04 13:41:03 +020056 # Client code SHOULD NOT USE THIS TARGET, but for now it needs to be public
57 # because there exists client code that uses it.
58 # TODO(bugs.webrtc.org/9808): Move to private visibility as soon as that
59 # client code gets updated.
60 visibility = [ "*" ]
nissed76b7b22017-06-01 04:02:35 -070061 sources = [
eladalona52722f2017-06-26 11:23:54 -070062 "rtcp_packet_sink_interface.h",
Stefan Holmer1acbd682017-09-01 15:29:28 +020063 "rtp_config.cc",
64 "rtp_config.h",
nissed76b7b22017-06-01 04:02:35 -070065 "rtp_packet_sink_interface.h",
nisse0f15f922017-06-21 01:05:22 -070066 "rtp_stream_receiver_controller_interface.h",
nissed76b7b22017-06-01 04:02:35 -070067 "rtp_transport_controller_send_interface.h",
68 ]
eladalona52722f2017-06-26 11:23:54 -070069 deps = [
kwiberg529662a2017-09-04 05:43:17 -070070 "../api:array_view",
Stefan Holmer64be7fa2018-10-04 15:21:55 +020071 "../api:fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +020072 "../api:libjingle_peerconnection_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +020073 "../api/transport:bitrate_settings",
Stefan Holmerdbdb3a02018-07-17 16:03:46 +020074 "../logging:rtc_event_log_api",
75 "../modules/rtp_rtcp:rtp_rtcp_format",
ehmaldonadof6a861a2017-07-19 10:40:47 -070076 "../rtc_base:rtc_base_approved",
Danil Chapovalovb9b146c2018-06-15 12:28:07 +020077 "//third_party/abseil-cpp/absl/types:optional",
eladalona52722f2017-06-26 11:23:54 -070078 ]
nissed76b7b22017-06-01 04:02:35 -070079}
80
81rtc_source_set("rtp_receiver") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000082 visibility = [ "*" ]
nissed76b7b22017-06-01 04:02:35 -070083 sources = [
eladalona52722f2017-06-26 11:23:54 -070084 "rtcp_demuxer.cc",
85 "rtcp_demuxer.h",
nissed76b7b22017-06-01 04:02:35 -070086 "rtp_demuxer.cc",
87 "rtp_demuxer.h",
eladalona52722f2017-06-26 11:23:54 -070088 "rtp_rtcp_demuxer_helper.cc",
89 "rtp_rtcp_demuxer_helper.h",
nisse0f15f922017-06-21 01:05:22 -070090 "rtp_stream_receiver_controller.cc",
91 "rtp_stream_receiver_controller.h",
nissed76b7b22017-06-01 04:02:35 -070092 "rtx_receive_stream.cc",
93 "rtx_receive_stream.h",
Steve Antonb3329172017-08-17 15:23:51 -070094 "ssrc_binding_observer.h",
nissed76b7b22017-06-01 04:02:35 -070095 ]
96 deps = [
97 ":rtp_interfaces",
eladalona52722f2017-06-26 11:23:54 -070098 "..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -070099 "../api:array_view",
Patrik Höglund3e113432017-12-15 14:40:10 +0100100 "../api:libjingle_peerconnection_api",
nissed76b7b22017-06-01 04:02:35 -0700101 "../modules/rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100102 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100103 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700104 "../rtc_base:rtc_base_approved",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200105 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalovb9b146c2018-06-15 12:28:07 +0200106 "//third_party/abseil-cpp/absl/types:optional",
nissed76b7b22017-06-01 04:02:35 -0700107 ]
108}
109
110rtc_source_set("rtp_sender") {
111 sources = [
Stefan Holmerf7044682018-07-17 10:16:41 +0200112 "rtp_payload_params.cc",
113 "rtp_payload_params.h",
nissed76b7b22017-06-01 04:02:35 -0700114 "rtp_transport_controller_send.cc",
115 "rtp_transport_controller_send.h",
Stefan Holmer9416ef82018-07-19 10:34:38 +0200116 "rtp_video_sender.cc",
117 "rtp_video_sender.h",
118 "rtp_video_sender_interface.h",
nissed76b7b22017-06-01 04:02:35 -0700119 ]
120 deps = [
Sebastian Jansson97f61ea2018-02-21 13:01:55 +0100121 ":bitrate_configurator",
nissed76b7b22017-06-01 04:02:35 -0700122 ":rtp_interfaces",
sprangdb2a9fc2017-08-09 06:42:32 -0700123 "..:webrtc_common",
Stefan Holmer64be7fa2018-10-04 15:21:55 +0200124 "../api:fec_controller_api",
Stefan Holmerdbdb3a02018-07-17 16:03:46 +0200125 "../api:transport_api",
Sebastian Janssonc6c44262018-05-09 10:33:39 +0200126 "../api/transport:network_control",
Stefan Holmera2f15332018-07-11 17:11:31 +0200127 "../api/video_codecs:video_codecs_api",
Stefan Holmerdbdb3a02018-07-17 16:03:46 +0200128 "../logging:rtc_event_log_api",
nissed76b7b22017-06-01 04:02:35 -0700129 "../modules/congestion_controller",
Sebastian Jansson19bea512018-03-13 19:07:46 +0100130 "../modules/congestion_controller/rtp:congestion_controller",
Niels Möllerfd6c0912017-10-31 10:19:10 +0100131 "../modules/pacing",
Stefan Holmera2f15332018-07-11 17:11:31 +0200132 "../modules/rtp_rtcp:rtp_rtcp",
133 "../modules/rtp_rtcp:rtp_rtcp_format",
134 "../modules/rtp_rtcp:rtp_video_header",
Sebastian Janssonc33c0fc2018-02-22 11:10:18 +0100135 "../modules/utility",
Stefan Holmera2f15332018-07-11 17:11:31 +0200136 "../modules/video_coding:video_codec_interface",
137 "../rtc_base:checks",
Stefan Holmerdbdb3a02018-07-17 16:03:46 +0200138 "../rtc_base:rate_limiter",
Sebastian Jansson91bb6672018-02-21 13:02:51 +0100139 "../rtc_base:rtc_base",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700140 "../rtc_base:rtc_base_approved",
Sebastian Janssone6256052018-05-04 14:08:15 +0200141 "../rtc_base:rtc_task_queue",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200142 "../system_wrappers:field_trial",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200143 "//third_party/abseil-cpp/absl/memory",
nissed76b7b22017-06-01 04:02:35 -0700144 ]
145}
146
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100147rtc_source_set("bitrate_configurator") {
148 sources = [
149 "rtp_bitrate_configurator.cc",
150 "rtp_bitrate_configurator.h",
151 ]
152 deps = [
153 ":rtp_interfaces",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200154 "../api:libjingle_peerconnection_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200155 "../api/transport:bitrate_settings",
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100156 "../rtc_base:checks",
157 "../rtc_base:rtc_base_approved",
158 ]
159}
160
Mirko Bonadei245660a2017-10-10 14:38:11 +0200161rtc_source_set("bitrate_allocator") {
Peter Boström5c389d32015-09-25 13:58:30 +0200162 sources = [
mflodman0e7e2592015-11-12 21:02:42 -0800163 "bitrate_allocator.cc",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200164 "bitrate_allocator.h",
165 ]
166 deps = [
167 "../modules/bitrate_controller",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100168 "../rtc_base:checks",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200169 "../rtc_base:rtc_base_approved",
170 "../rtc_base:sequenced_task_checker",
171 "../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200172 "../system_wrappers:field_trial",
173 "../system_wrappers:metrics",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200174 ]
Mirko Bonadei245660a2017-10-10 14:38:11 +0200175}
176
177rtc_static_library("call") {
178 sources = [
Peter Boström5c389d32015-09-25 13:58:30 +0200179 "call.cc",
zhihuang38ede132017-06-15 12:52:32 -0700180 "callfactory.cc",
181 "callfactory.h",
Erik Språng09708512018-03-14 15:16:50 +0100182 "degraded_call.cc",
183 "degraded_call.h",
brandtr7250b392016-12-19 01:13:46 -0800184 "flexfec_receive_stream_impl.cc",
185 "flexfec_receive_stream_impl.h",
Sebastian Janssonb34556e2018-03-21 14:38:32 +0100186 "receive_time_calculator.cc",
187 "receive_time_calculator.h",
Peter Boström5c389d32015-09-25 13:58:30 +0200188 ]
189
Peter Boström5c389d32015-09-25 13:58:30 +0200190 deps = [
Mirko Bonadei245660a2017-10-10 14:38:11 +0200191 ":bitrate_allocator",
ossuf515ab82016-12-07 04:52:58 -0800192 ":call_interfaces",
Erik Språng09708512018-03-14 15:16:50 +0100193 ":fake_network",
nissed76b7b22017-06-01 04:02:35 -0700194 ":rtp_interfaces",
195 ":rtp_receiver",
196 ":rtp_sender",
Artem Titov3229d652018-08-17 13:00:54 +0200197 ":simulated_network",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200198 ":video_stream_api",
Peter Boström5c389d32015-09-25 13:58:30 +0200199 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100200 "../api:callfactory_api",
Artem Titov3229d652018-08-17 13:00:54 +0200201 "../api:simulated_network_api",
aleloia8eb7562016-11-28 07:02:13 -0800202 "../api:transport_api",
Sebastian Janssonc6c44262018-05-09 10:33:39 +0200203 "../api/transport:network_control",
katrielc14897d02016-06-03 13:14:28 -0700204 "../audio",
Qingsi Wang970b0882018-02-01 11:04:46 -0800205 "../logging:rtc_event_audio",
kjellander2f1a5552017-02-27 15:57:45 -0800206 "../logging:rtc_event_log_api",
Qingsi Wang970b0882018-02-01 11:04:46 -0800207 "../logging:rtc_event_rtp_rtcp",
208 "../logging:rtc_event_video",
209 "../logging:rtc_stream_config",
kjellander2f1a5552017-02-27 15:57:45 -0800210 "../modules/bitrate_controller",
Stefan Holmer80e12072016-02-23 13:30:42 +0100211 "../modules/congestion_controller",
kjellander2f1a5552017-02-27 15:57:45 -0800212 "../modules/pacing",
Peter Boström5c389d32015-09-25 13:58:30 +0200213 "../modules/rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100214 "../modules/rtp_rtcp:rtp_rtcp_format",
kjellander2f1a5552017-02-27 15:57:45 -0800215 "../modules/utility",
Ying Wang3b790f32018-01-19 17:58:57 +0100216 "../modules/video_coding:video_coding",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100217 "../rtc_base:checks",
Sebastian Jansson45087cd2018-03-01 15:56:57 +0100218 "../rtc_base:rate_limiter",
mbonadei95c8f652017-08-27 23:40:10 -0700219 "../rtc_base:rtc_base_approved",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700220 "../rtc_base:rtc_task_queue",
Sebastian Jansson19704ec2018-03-12 15:59:12 +0100221 "../rtc_base:safe_minmax",
eladalonf3f5c0e2017-08-18 02:47:08 -0700222 "../rtc_base:sequenced_task_checker",
Christoffer Rodbro76ad1542018-10-12 11:15:09 +0200223 "../rtc_base/experiments:field_trial_parser",
Karl Wiberg2b857922018-03-23 14:53:54 +0100224 "../rtc_base/synchronization:rw_lock_wrapper",
Peter Boström5c389d32015-09-25 13:58:30 +0200225 "../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200226 "../system_wrappers:field_trial",
227 "../system_wrappers:metrics",
katrielc14897d02016-06-03 13:14:28 -0700228 "../video",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200229 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalovb9b146c2018-06-15 12:28:07 +0200230 "//third_party/abseil-cpp/absl/types:optional",
Peter Boström5c389d32015-09-25 13:58:30 +0200231 ]
232}
Peter Boström02083222016-06-14 12:52:54 +0200233
aleloi440b6d92017-08-22 05:43:23 -0700234rtc_source_set("video_stream_api") {
235 sources = [
236 "video_receive_stream.cc",
237 "video_receive_stream.h",
238 "video_send_stream.cc",
239 "video_send_stream.h",
240 ]
241 deps = [
Stefan Holmer1acbd682017-09-01 15:29:28 +0200242 ":rtp_interfaces",
aleloi440b6d92017-08-22 05:43:23 -0700243 "../:webrtc_common",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200244 "../api:libjingle_peerconnection_api",
aleloi440b6d92017-08-22 05:43:23 -0700245 "../api:transport_api",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200246 "../api/video:video_frame",
Niels Möller213618e2018-07-24 09:29:58 +0200247 "../api/video:video_stream_encoder",
Niels Möller88614b02018-03-27 16:39:01 +0200248 "../api/video_codecs:video_codecs_api",
aleloi440b6d92017-08-22 05:43:23 -0700249 "../common_video:common_video",
Patrik Höglund3e113432017-12-15 14:40:10 +0100250 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglund9e194032018-01-04 15:58:20 +0100251 "../rtc_base:checks",
aleloi440b6d92017-08-22 05:43:23 -0700252 "../rtc_base:rtc_base_approved",
Danil Chapovalovb9b146c2018-06-15 12:28:07 +0200253 "//third_party/abseil-cpp/absl/types:optional",
aleloi440b6d92017-08-22 05:43:23 -0700254 ]
255}
256
Sebastian Janssonf96b1ca2018-08-07 18:58:05 +0200257rtc_source_set("simulated_network") {
258 sources = [
259 "simulated_network.cc",
260 "simulated_network.h",
261 ]
262 deps = [
263 "../api:simulated_network_api",
Sebastian Jansson2cd3b4c2018-11-06 19:18:28 +0100264 "../api/units:data_rate",
265 "../api/units:data_size",
266 "../api/units:time_delta",
Sebastian Janssonf96b1ca2018-08-07 18:58:05 +0200267 "../rtc_base:rtc_base_approved",
268 "//third_party/abseil-cpp/absl/memory",
269 "//third_party/abseil-cpp/absl/types:optional",
270 ]
271}
272
Artem Titov46c4e602018-08-17 14:26:54 +0200273rtc_source_set("simulated_packet_receiver") {
274 sources = [
275 "simulated_packet_receiver.h",
276 ]
277 deps = [
278 ":call_interfaces",
279 "../api:simulated_network_api",
280 "../modules:module_api",
281 ]
282}
283
Erik Språng09708512018-03-14 15:16:50 +0100284rtc_source_set("fake_network") {
285 sources = [
286 "fake_network_pipe.cc",
287 "fake_network_pipe.h",
288 ]
289 deps = [
290 ":call_interfaces",
Sebastian Janssonf96b1ca2018-08-07 18:58:05 +0200291 ":simulated_network",
Artem Titov46c4e602018-08-17 14:26:54 +0200292 ":simulated_packet_receiver",
Erik Språng09708512018-03-14 15:16:50 +0100293 "..:webrtc_common",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200294 "../api:simulated_network_api",
Erik Språng09708512018-03-14 15:16:50 +0100295 "../api:transport_api",
296 "../modules:module_api",
Sebastian Jansson71822862018-10-30 08:23:27 +0100297 "../modules/utility",
Erik Språng09708512018-03-14 15:16:50 +0100298 "../rtc_base:rtc_base_approved",
299 "../rtc_base:sequenced_task_checker",
300 "../system_wrappers",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200301 "//third_party/abseil-cpp/absl/memory",
Erik Språng09708512018-03-14 15:16:50 +0100302 ]
Erik Språng09708512018-03-14 15:16:50 +0100303}
304
Peter Boström02083222016-06-14 12:52:54 +0200305if (rtc_include_tests) {
ehmaldonado38a21322016-09-02 04:10:34 -0700306 rtc_source_set("call_tests") {
Peter Boström02083222016-06-14 12:52:54 +0200307 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700308
Peter Boström02083222016-06-14 12:52:54 +0200309 sources = [
310 "bitrate_allocator_unittest.cc",
311 "bitrate_estimator_tests.cc",
312 "call_unittest.cc",
brandtr76648da2016-10-20 04:54:48 -0700313 "flexfec_receive_stream_unittest.cc",
Sebastian Janssonb34556e2018-03-21 14:38:32 +0100314 "receive_time_calculator_unittest.cc",
eladalona52722f2017-06-26 11:23:54 -0700315 "rtcp_demuxer_unittest.cc",
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100316 "rtp_bitrate_configurator_unittest.cc",
eladalon760a0762017-05-31 09:12:25 -0700317 "rtp_demuxer_unittest.cc",
Stefan Holmerf7044682018-07-17 10:16:41 +0200318 "rtp_payload_params_unittest.cc",
eladalona52722f2017-06-26 11:23:54 -0700319 "rtp_rtcp_demuxer_helper_unittest.cc",
Stefan Holmer9416ef82018-07-19 10:34:38 +0200320 "rtp_video_sender_unittest.cc",
nisseeed52bf2017-05-19 06:15:19 -0700321 "rtx_receive_stream_unittest.cc",
Peter Boström02083222016-06-14 12:52:54 +0200322 ]
323 deps = [
Mirko Bonadei245660a2017-10-10 14:38:11 +0200324 ":bitrate_allocator",
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100325 ":bitrate_configurator",
Peter Boström02083222016-06-14 12:52:54 +0200326 ":call",
Mirko Bonadeia0e1a552017-12-04 10:50:51 +0100327 ":call_interfaces",
eladalone2173d92017-07-28 10:05:45 -0700328 ":mock_rtp_interfaces",
nissed76b7b22017-06-01 04:02:35 -0700329 ":rtp_interfaces",
330 ":rtp_receiver",
331 ":rtp_sender",
Artem Titovdd2eebe2018-08-20 13:27:45 +0200332 ":simulated_network",
eladalona52722f2017-06-26 11:23:54 -0700333 "..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -0700334 "../api:array_view",
Piotr (Peter) Slatalacc8e8bb2018-11-15 08:26:19 -0800335 "../api:fake_media_transport",
Piotr (Peter) Slatala179a3922018-11-16 09:57:58 -0800336 "../api:fake_media_transport",
Patrik Höglund3e113432017-12-15 14:40:10 +0100337 "../api:libjingle_peerconnection_api",
ossuc3d4b482017-05-23 06:07:11 -0700338 "../api:mock_audio_mixer",
Karl Wibergf3850f62017-11-02 13:04:41 +0100339 "../api/audio_codecs:builtin_audio_decoder_factory",
Fredrik Solenberg8f5787a2018-01-11 13:52:30 +0100340 "../audio:audio",
kjellander2f1a5552017-02-27 15:57:45 -0800341 "../logging:rtc_event_log_api",
Qingsi Wang970b0882018-02-01 11:04:46 -0800342 "../logging:rtc_event_log_impl_base",
aleloidd310712016-11-17 06:28:59 -0800343 "../modules/audio_device:mock_audio_device",
aleloi10111bc2016-11-17 06:48:48 -0800344 "../modules/audio_mixer",
Mirko Bonadei03d6f2f2017-12-05 15:33:16 +0100345 "../modules/audio_mixer:audio_mixer_impl",
Patrik Höglund62139292017-12-19 16:44:45 +0100346 "../modules/audio_processing:mocks",
kjellander2f1a5552017-02-27 15:57:45 -0800347 "../modules/bitrate_controller",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200348 "../modules/congestion_controller",
kjellander2f1a5552017-02-27 15:57:45 -0800349 "../modules/pacing",
mbonadei334f9e62017-09-04 04:57:11 -0700350 "../modules/pacing:mock_paced_sender",
kjellander2f1a5552017-02-27 15:57:45 -0800351 "../modules/rtp_rtcp",
danilchap2d9d21f2017-05-10 08:41:13 -0700352 "../modules/rtp_rtcp:mock_rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100353 "../modules/rtp_rtcp:rtp_rtcp_format",
mbonadei5166e542017-08-03 05:57:11 -0700354 "../modules/utility:mock_process_thread",
Stefan Holmera2f15332018-07-11 17:11:31 +0200355 "../modules/video_coding:video_codec_interface",
Stefan Holmer64be7fa2018-10-04 15:21:55 +0200356 "../modules/video_coding:video_coding",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100357 "../rtc_base:checks",
Stefan Holmerdbdb3a02018-07-17 16:03:46 +0200358 "../rtc_base:rate_limiter",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700359 "../rtc_base:rtc_base_approved",
kjellander2f1a5552017-02-27 15:57:45 -0800360 "../system_wrappers",
kwiberg37e99fd2017-04-10 05:15:48 -0700361 "../test:audio_codec_mocks",
kjellander2f1a5552017-02-27 15:57:45 -0800362 "../test:direct_transport",
Ilya Nikolaevskiyb0588e62018-08-27 14:12:27 +0200363 "../test:fake_video_codecs",
Stefan Holmera2f15332018-07-11 17:11:31 +0200364 "../test:field_trial",
aleloi10111bc2016-11-17 06:48:48 -0800365 "../test:test_common",
kjellander2f1a5552017-02-27 15:57:45 -0800366 "../test:test_support",
367 "../test:video_test_common",
Stefan Holmerdbdb3a02018-07-17 16:03:46 +0200368 "../video:video",
Ilya Nikolaevskiyb0588e62018-08-27 14:12:27 +0200369 "//testing/gmock",
Peter Boström02083222016-06-14 12:52:54 +0200370 "//testing/gtest",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200371 "//third_party/abseil-cpp/absl/memory",
Yves Gerey69807e82018-10-30 22:23:02 +0100372 "//third_party/abseil-cpp/absl/types:optional",
Peter Boström02083222016-06-14 12:52:54 +0200373 ]
kjellandere40a7ee2016-10-16 23:56:12 -0700374 if (!build_with_chromium && is_clang) {
375 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700376 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström02083222016-06-14 12:52:54 +0200377 }
378 }
ehmaldonado021eef32017-01-05 07:09:50 -0800379
380 rtc_source_set("call_perf_tests") {
381 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700382
ehmaldonado021eef32017-01-05 07:09:50 -0800383 sources = [
384 "call_perf_tests.cc",
385 "rampup_tests.cc",
386 "rampup_tests.h",
387 ]
388 deps = [
kjellander2f1a5552017-02-27 15:57:45 -0800389 ":call_interfaces",
Artem Titov4e199e92018-08-20 13:30:39 +0200390 ":simulated_network",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200391 ":video_stream_api",
kjellander2f1a5552017-02-27 15:57:45 -0800392 "..:webrtc_common",
Artem Titov46c4e602018-08-17 14:26:54 +0200393 "../api:simulated_network_api",
ossueb1fde42017-05-02 06:46:30 -0700394 "../api/audio_codecs:builtin_audio_encoder_factory",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800395 "../api/video:builtin_video_bitrate_allocator_factory",
Erik Språngef75ebe2018-05-15 15:18:36 +0200396 "../api/video:video_bitrate_allocation",
Niels Möller0a8f4352018-05-18 11:37:23 +0200397 "../api/video_codecs:video_codecs_api",
kjellander2f1a5552017-02-27 15:57:45 -0800398 "../logging:rtc_event_log_api",
Sebastian Janssonf5e767d2018-10-15 13:24:31 +0200399 "../logging:rtc_event_log_impl_output",
kjellander2f1a5552017-02-27 15:57:45 -0800400 "../modules/audio_coding",
Artem Titov3faa8322018-03-07 14:44:00 +0100401 "../modules/audio_device",
Paulina Hensman7bd79a02018-03-15 12:44:12 +0100402 "../modules/audio_device:audio_device_impl",
kjellander2f1a5552017-02-27 15:57:45 -0800403 "../modules/audio_mixer:audio_mixer_impl",
404 "../modules/rtp_rtcp",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100405 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700406 "../rtc_base:rtc_base_approved",
kjellander2f1a5552017-02-27 15:57:45 -0800407 "../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200408 "../system_wrappers:metrics",
kjellander2f1a5552017-02-27 15:57:45 -0800409 "../test:direct_transport",
Ilya Nikolaevskiyb0588e62018-08-27 14:12:27 +0200410 "../test:fake_video_codecs",
jianjun.zhuc0247402017-07-11 06:20:45 -0700411 "../test:field_trial",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100412 "../test:fileutils",
Edward Lemure66572b2018-01-05 15:34:09 +0100413 "../test:perf_test",
jianjun.zhuc0247402017-07-11 06:20:45 -0700414 "../test:test_common",
kjellander2f1a5552017-02-27 15:57:45 -0800415 "../test:test_support",
416 "../test:video_test_common",
417 "../video",
ehmaldonado021eef32017-01-05 07:09:50 -0800418 "//testing/gtest",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200419 "//third_party/abseil-cpp/absl/memory",
ehmaldonado021eef32017-01-05 07:09:50 -0800420 ]
421 if (!build_with_chromium && is_clang) {
422 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
423 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
424 }
425 }
eladalone2173d92017-07-28 10:05:45 -0700426
427 # TODO(eladalon): This should be moved, as with the TODO for |rtp_interfaces|.
428 rtc_source_set("mock_rtp_interfaces") {
429 testonly = true
430
431 sources = [
432 "test/mock_rtp_packet_sink_interface.h",
Sebastian Jansson8f83b422018-02-21 13:07:13 +0100433 "test/mock_rtp_transport_controller_send.h",
eladalone2173d92017-07-28 10:05:45 -0700434 ]
435 deps = [
436 ":rtp_interfaces",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200437 "../api:libjingle_peerconnection_api",
Sebastian Jansson35dd6cd2018-02-21 17:30:36 +0100438 "../modules/congestion_controller",
439 "../modules/pacing",
440 "../rtc_base:rate_limiter",
441 "../rtc_base:rtc_base",
Sebastian Jansson12985412018-10-15 21:06:26 +0200442 "../rtc_base/network:sent_packet",
eladalone2173d92017-07-28 10:05:45 -0700443 "../test:test_support",
eladalone2173d92017-07-28 10:05:45 -0700444 ]
445 }
Sebastian Jansson83267802018-04-19 08:27:19 +0200446 rtc_source_set("mock_bitrate_allocator") {
447 testonly = true
Fredrik Solenberg2a877972017-12-15 16:42:15 +0100448
Sebastian Jansson83267802018-04-19 08:27:19 +0200449 sources = [
450 "test/mock_bitrate_allocator.h",
451 ]
452 deps = [
453 ":bitrate_allocator",
Yves Gerey21cddff2018-10-30 21:12:42 +0100454 "../test:test_support",
Sebastian Jansson83267802018-04-19 08:27:19 +0200455 ]
456 }
Fredrik Solenberg2a877972017-12-15 16:42:15 +0100457 rtc_source_set("mock_call_interfaces") {
458 testonly = true
459
460 sources = [
461 "test/mock_audio_send_stream.h",
462 ]
463 deps = [
464 ":call_interfaces",
Yves Gerey21cddff2018-10-30 21:12:42 +0100465 "../test:test_support",
Fredrik Solenberg2a877972017-12-15 16:42:15 +0100466 ]
467 }
Erik Språng09708512018-03-14 15:16:50 +0100468
469 rtc_test("fake_network_unittests") {
Artem Titov40a7a352018-10-15 15:25:34 +0200470 sources = [
471 "test/fake_network_pipe_unittest.cc",
472 ]
Erik Språng09708512018-03-14 15:16:50 +0100473 deps = [
474 ":call_interfaces",
475 ":fake_network",
Artem Titove23b8a92018-08-16 15:51:07 +0200476 ":simulated_network",
Erik Språng09708512018-03-14 15:16:50 +0100477 "../modules/rtp_rtcp",
478 "../rtc_base:rtc_base_approved",
479 "../system_wrappers",
480 "../test:test_common",
481 "../test:test_main",
Yves Gerey21cddff2018-10-30 21:12:42 +0100482 "../test:test_support",
Erik Språng09708512018-03-14 15:16:50 +0100483 "//testing/gtest",
484 ]
Erik Språng09708512018-03-14 15:16:50 +0100485 }
Peter Boström02083222016-06-14 12:52:54 +0200486}