blob: 9db341b9c7c763e394306b954261ed38639988ac [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",
Ying Wang3b790f32018-01-19 17:58:57 +010033 "../api:fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +020034 "../api:network_state_predictor_api",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +020035 "../api:rtc_error",
Niels Mölleref1052a2019-03-20 08:40:23 +010036 "../api:rtp_headers",
Niels Möller6dcd4dc2019-08-26 10:45:28 +020037 "../api:rtp_parameters",
Mirko Bonadeid9708072019-01-25 20:26:48 +010038 "../api:scoped_refptr",
kjellander2f1a5552017-02-27 15:57:45 -080039 "../api:transport_api",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +010040 "../api/audio:audio_mixer_api",
kjellander2f1a5552017-02-27 15:57:45 -080041 "../api/audio_codecs:audio_codecs_api",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +020042 "../api/crypto:frame_decryptor_interface",
43 "../api/crypto:frame_encryptor_interface",
44 "../api/crypto:options",
Sebastian Janssoned50e6c2019-03-01 14:45:21 +010045 "../api/task_queue",
Mirko Bonadei738bfa72019-09-17 14:47:38 +020046 "../api/transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +020047 "../api/transport:network_control",
Niels Möller65f17ca2019-09-12 13:59:36 +020048 "../api/transport/media:media_transport_interface",
Niels Möllera8370302019-09-02 15:16:49 +020049 "../api/transport/rtp:rtp_source",
Artem Titov94b57c02019-03-21 13:35:10 +010050 "../modules/audio_device",
51 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +000052 "../modules/audio_processing:api",
Ivo Creusen56d46092017-11-24 17:29:59 +010053 "../modules/audio_processing:audio_processing_statistics",
Henrik Boström6e436d12019-05-27 12:19:33 +020054 "../modules/rtp_rtcp:rtp_rtcp_format",
Artem Titov94b57c02019-03-21 13:35:10 +010055 "../modules/utility",
56 "../rtc_base",
Jonas Olssonabbe8412018-04-03 13:40:05 +020057 "../rtc_base:audio_format_to_string",
Yves Gerey988cc082018-10-23 12:03:01 +020058 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -070059 "../rtc_base:rtc_base_approved",
Sebastian Jansson12985412018-10-15 21:06:26 +020060 "../rtc_base/network:sent_packet",
Danil Chapovalovb9b146c2018-06-15 12:28:07 +020061 "//third_party/abseil-cpp/absl/types:optional",
kjellander2f1a5552017-02-27 15:57:45 -080062 ]
ossuf515ab82016-12-07 04:52:58 -080063}
64
nissed76b7b22017-06-01 04:02:35 -070065# TODO(nisse): These RTP targets should be moved elsewhere
eladalone2173d92017-07-28 10:05:45 -070066# when interfaces have stabilized. See also TODO for |mock_rtp_interfaces|.
nissed76b7b22017-06-01 04:02:35 -070067rtc_source_set("rtp_interfaces") {
Danil Chapovalov32fe3d12018-10-04 13:41:03 +020068 # Client code SHOULD NOT USE THIS TARGET, but for now it needs to be public
69 # because there exists client code that uses it.
70 # TODO(bugs.webrtc.org/9808): Move to private visibility as soon as that
71 # client code gets updated.
72 visibility = [ "*" ]
nissed76b7b22017-06-01 04:02:35 -070073 sources = [
eladalona52722f2017-06-26 11:23:54 -070074 "rtcp_packet_sink_interface.h",
Stefan Holmer1acbd682017-09-01 15:29:28 +020075 "rtp_config.cc",
76 "rtp_config.h",
nissed76b7b22017-06-01 04:02:35 -070077 "rtp_packet_sink_interface.h",
nisse0f15f922017-06-21 01:05:22 -070078 "rtp_stream_receiver_controller_interface.h",
nissed76b7b22017-06-01 04:02:35 -070079 "rtp_transport_controller_send_interface.h",
80 ]
eladalona52722f2017-06-26 11:23:54 -070081 deps = [
kwiberg529662a2017-09-04 05:43:17 -070082 "../api:array_view",
Stefan Holmer64be7fa2018-10-04 15:21:55 +020083 "../api:fec_controller_api",
Niels Mölleref1052a2019-03-20 08:40:23 +010084 "../api:rtp_headers",
Niels Möller6dcd4dc2019-08-26 10:45:28 +020085 "../api:rtp_parameters",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +020086 "../api/crypto:options",
Danil Chapovalov83bbe912019-08-07 12:24:53 +020087 "../api/rtc_event_log",
Niels Möller0c4f7be2018-05-07 14:01:37 +020088 "../api/transport:bitrate_settings",
Erik Språng425d6aa2019-07-29 16:38:27 +020089 "../api/units:timestamp",
Stefan Holmerdbdb3a02018-07-17 16:03:46 +020090 "../modules/rtp_rtcp:rtp_rtcp_format",
ehmaldonadof6a861a2017-07-19 10:40:47 -070091 "../rtc_base:rtc_base_approved",
Danil Chapovalovb9b146c2018-06-15 12:28:07 +020092 "//third_party/abseil-cpp/absl/types:optional",
eladalona52722f2017-06-26 11:23:54 -070093 ]
nissed76b7b22017-06-01 04:02:35 -070094}
95
96rtc_source_set("rtp_receiver") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000097 visibility = [ "*" ]
nissed76b7b22017-06-01 04:02:35 -070098 sources = [
eladalona52722f2017-06-26 11:23:54 -070099 "rtcp_demuxer.cc",
100 "rtcp_demuxer.h",
nissed76b7b22017-06-01 04:02:35 -0700101 "rtp_demuxer.cc",
102 "rtp_demuxer.h",
eladalona52722f2017-06-26 11:23:54 -0700103 "rtp_rtcp_demuxer_helper.cc",
104 "rtp_rtcp_demuxer_helper.h",
nisse0f15f922017-06-21 01:05:22 -0700105 "rtp_stream_receiver_controller.cc",
106 "rtp_stream_receiver_controller.h",
nissed76b7b22017-06-01 04:02:35 -0700107 "rtx_receive_stream.cc",
108 "rtx_receive_stream.h",
Steve Antonb3329172017-08-17 15:23:51 -0700109 "ssrc_binding_observer.h",
nissed76b7b22017-06-01 04:02:35 -0700110 ]
111 deps = [
112 ":rtp_interfaces",
kwiberg529662a2017-09-04 05:43:17 -0700113 "../api:array_view",
Niels Mölleref1052a2019-03-20 08:40:23 +0100114 "../api:rtp_headers",
nissed76b7b22017-06-01 04:02:35 -0700115 "../modules/rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100116 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100117 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700118 "../rtc_base:rtc_base_approved",
Danil Chapovalovb9b146c2018-06-15 12:28:07 +0200119 "//third_party/abseil-cpp/absl/types:optional",
nissed76b7b22017-06-01 04:02:35 -0700120 ]
121}
122
123rtc_source_set("rtp_sender") {
124 sources = [
Stefan Holmerf7044682018-07-17 10:16:41 +0200125 "rtp_payload_params.cc",
126 "rtp_payload_params.h",
nissed76b7b22017-06-01 04:02:35 -0700127 "rtp_transport_controller_send.cc",
128 "rtp_transport_controller_send.h",
Stefan Holmer9416ef82018-07-19 10:34:38 +0200129 "rtp_video_sender.cc",
130 "rtp_video_sender.h",
131 "rtp_video_sender_interface.h",
nissed76b7b22017-06-01 04:02:35 -0700132 ]
133 deps = [
Sebastian Jansson97f61ea2018-02-21 13:01:55 +0100134 ":bitrate_configurator",
nissed76b7b22017-06-01 04:02:35 -0700135 ":rtp_interfaces",
Elad Alon898395d2019-04-10 15:55:00 +0200136 "../api:array_view",
Sebastian Jansson82ed2e82019-10-15 15:58:37 +0200137 "../api:bitrate_allocation",
Stefan Holmer64be7fa2018-10-04 15:21:55 +0200138 "../api:fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200139 "../api:network_state_predictor_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200140 "../api:rtp_parameters",
Stefan Holmerdbdb3a02018-07-17 16:03:46 +0200141 "../api:transport_api",
Danil Chapovalov83bbe912019-08-07 12:24:53 +0200142 "../api/rtc_event_log",
Niels Möller5fe95102019-03-04 16:49:25 +0100143 "../api/transport:field_trial_based_config",
Sebastian Jansson87609be2018-12-05 17:35:35 +0100144 "../api/transport:goog_cc",
Sebastian Janssonc6c44262018-05-09 10:33:39 +0200145 "../api/transport:network_control",
Yves Gerey3e707812018-11-28 16:47:49 +0100146 "../api/units:data_rate",
147 "../api/units:time_delta",
148 "../api/units:timestamp",
149 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200150 "../api/video:video_rtp_headers",
Stefan Holmera2f15332018-07-11 17:11:31 +0200151 "../api/video_codecs:video_codecs_api",
Sebastian Jansson166b45d2019-05-13 11:57:42 +0200152 "../logging:rtc_event_bwe",
nissed76b7b22017-06-01 04:02:35 -0700153 "../modules/congestion_controller",
Sebastian Jansson87609be2018-12-05 17:35:35 +0100154 "../modules/congestion_controller/rtp:control_handler",
155 "../modules/congestion_controller/rtp:transport_feedback",
Niels Möllerfd6c0912017-10-31 10:19:10 +0100156 "../modules/pacing",
Artem Titov94b57c02019-03-21 13:35:10 +0100157 "../modules/rtp_rtcp",
Stefan Holmera2f15332018-07-11 17:11:31 +0200158 "../modules/rtp_rtcp:rtp_rtcp_format",
159 "../modules/rtp_rtcp:rtp_video_header",
Sebastian Janssonc33c0fc2018-02-22 11:10:18 +0100160 "../modules/utility",
Yves Gerey3e707812018-11-28 16:47:49 +0100161 "../modules/video_coding:codec_globals_headers",
Stefan Holmera2f15332018-07-11 17:11:31 +0200162 "../modules/video_coding:video_codec_interface",
Artem Titov94b57c02019-03-21 13:35:10 +0100163 "../rtc_base",
Stefan Holmera2f15332018-07-11 17:11:31 +0200164 "../rtc_base:checks",
Stefan Holmerdbdb3a02018-07-17 16:03:46 +0200165 "../rtc_base:rate_limiter",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700166 "../rtc_base:rtc_base_approved",
Sebastian Janssone6256052018-05-04 14:08:15 +0200167 "../rtc_base:rtc_task_queue",
Sebastian Janssonecb68972019-01-18 10:30:54 +0100168 "../rtc_base/task_utils:repeating_task",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200169 "../system_wrappers:field_trial",
Erik Språng845c6aa2019-05-29 13:02:24 +0200170 "//third_party/abseil-cpp/absl/algorithm:container",
Yves Gerey3e707812018-11-28 16:47:49 +0100171 "//third_party/abseil-cpp/absl/container:inlined_vector",
Erik Språng6cf554e2019-10-02 20:55:39 +0200172 "//third_party/abseil-cpp/absl/strings:strings",
Yves Gerey3e707812018-11-28 16:47:49 +0100173 "//third_party/abseil-cpp/absl/types:optional",
174 "//third_party/abseil-cpp/absl/types:variant",
nissed76b7b22017-06-01 04:02:35 -0700175 ]
176}
177
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100178rtc_source_set("bitrate_configurator") {
179 sources = [
180 "rtp_bitrate_configurator.cc",
181 "rtp_bitrate_configurator.h",
182 ]
183 deps = [
184 ":rtp_interfaces",
Niels Möllerb4a61282019-08-29 12:16:56 +0200185
186 # For api/bitrate_constraints.h
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200187 "../api:libjingle_peerconnection_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200188 "../api/transport:bitrate_settings",
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100189 "../rtc_base:checks",
190 "../rtc_base:rtc_base_approved",
Yves Gerey3e707812018-11-28 16:47:49 +0100191 "//third_party/abseil-cpp/absl/types:optional",
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100192 ]
193}
194
Mirko Bonadei245660a2017-10-10 14:38:11 +0200195rtc_source_set("bitrate_allocator") {
Peter Boström5c389d32015-09-25 13:58:30 +0200196 sources = [
mflodman0e7e2592015-11-12 21:02:42 -0800197 "bitrate_allocator.cc",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200198 "bitrate_allocator.h",
199 ]
200 deps = [
Sebastian Jansson6736df12018-11-21 19:18:39 +0100201 "../api:bitrate_allocation",
Sebastian Jansson93b1ea22019-09-18 18:31:52 +0200202 "../api/transport:network_control",
Sebastian Jansson13e59032018-11-21 19:13:07 +0100203 "../api/units:data_rate",
204 "../api/units:time_delta",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100205 "../rtc_base:checks",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200206 "../rtc_base:rtc_base_approved",
Sebastian Jansson40de3cc2019-09-19 14:54:43 +0200207 "../rtc_base:safe_minmax",
Sebastian Janssonb55015e2019-04-09 13:44:04 +0200208 "../rtc_base/synchronization:sequence_checker",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200209 "../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200210 "../system_wrappers:field_trial",
211 "../system_wrappers:metrics",
Sebastian Jansson4d461ba2019-09-17 20:53:26 +0200212 "//third_party/abseil-cpp/absl/algorithm:container",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200213 ]
Mirko Bonadei245660a2017-10-10 14:38:11 +0200214}
215
216rtc_static_library("call") {
217 sources = [
Peter Boström5c389d32015-09-25 13:58:30 +0200218 "call.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800219 "call_factory.cc",
220 "call_factory.h",
Erik Språng09708512018-03-14 15:16:50 +0100221 "degraded_call.cc",
222 "degraded_call.h",
brandtr7250b392016-12-19 01:13:46 -0800223 "flexfec_receive_stream_impl.cc",
224 "flexfec_receive_stream_impl.h",
Sebastian Janssonb34556e2018-03-21 14:38:32 +0100225 "receive_time_calculator.cc",
226 "receive_time_calculator.h",
Peter Boström5c389d32015-09-25 13:58:30 +0200227 ]
228
Peter Boström5c389d32015-09-25 13:58:30 +0200229 deps = [
Mirko Bonadei245660a2017-10-10 14:38:11 +0200230 ":bitrate_allocator",
ossuf515ab82016-12-07 04:52:58 -0800231 ":call_interfaces",
Erik Språng09708512018-03-14 15:16:50 +0100232 ":fake_network",
nissed76b7b22017-06-01 04:02:35 -0700233 ":rtp_interfaces",
234 ":rtp_receiver",
235 ":rtp_sender",
Artem Titov3229d652018-08-17 13:00:54 +0200236 ":simulated_network",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200237 ":video_stream_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100238 "../api:array_view",
Niels Möller8366e172018-02-14 12:20:13 +0100239 "../api:callfactory_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100240 "../api:fec_controller_api",
Niels Mölleref1052a2019-03-20 08:40:23 +0100241 "../api:rtp_headers",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200242 "../api:rtp_parameters",
Artem Titov3229d652018-08-17 13:00:54 +0200243 "../api:simulated_network_api",
aleloia8eb7562016-11-28 07:02:13 -0800244 "../api:transport_api",
Danil Chapovalov83bbe912019-08-07 12:24:53 +0200245 "../api/rtc_event_log",
Sebastian Janssonc6c44262018-05-09 10:33:39 +0200246 "../api/transport:network_control",
Yves Gerey3e707812018-11-28 16:47:49 +0100247 "../api/units:time_delta",
248 "../api/video_codecs:video_codecs_api",
katrielc14897d02016-06-03 13:14:28 -0700249 "../audio",
Qingsi Wang970b0882018-02-01 11:04:46 -0800250 "../logging:rtc_event_audio",
Qingsi Wang970b0882018-02-01 11:04:46 -0800251 "../logging:rtc_event_rtp_rtcp",
252 "../logging:rtc_event_video",
253 "../logging:rtc_stream_config",
Sebastian Jansson836fee12019-02-08 16:08:10 +0100254 "../modules:module_api",
Stefan Holmer80e12072016-02-23 13:30:42 +0100255 "../modules/congestion_controller",
kjellander2f1a5552017-02-27 15:57:45 -0800256 "../modules/pacing",
Peter Boström5c389d32015-09-25 13:58:30 +0200257 "../modules/rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100258 "../modules/rtp_rtcp:rtp_rtcp_format",
kjellander2f1a5552017-02-27 15:57:45 -0800259 "../modules/utility",
Artem Titov94b57c02019-03-21 13:35:10 +0100260 "../modules/video_coding",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100261 "../rtc_base:checks",
Sebastian Jansson45087cd2018-03-01 15:56:57 +0100262 "../rtc_base:rate_limiter",
mbonadei95c8f652017-08-27 23:40:10 -0700263 "../rtc_base:rtc_base_approved",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700264 "../rtc_base:rtc_task_queue",
Sebastian Jansson19704ec2018-03-12 15:59:12 +0100265 "../rtc_base:safe_minmax",
Christoffer Rodbro76ad1542018-10-12 11:15:09 +0200266 "../rtc_base/experiments:field_trial_parser",
Yves Gerey3e707812018-11-28 16:47:49 +0100267 "../rtc_base/network:sent_packet",
Karl Wiberg2b857922018-03-23 14:53:54 +0100268 "../rtc_base/synchronization:rw_lock_wrapper",
Sebastian Janssonb55015e2019-04-09 13:44:04 +0200269 "../rtc_base/synchronization:sequence_checker",
Peter Boström5c389d32015-09-25 13:58:30 +0200270 "../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200271 "../system_wrappers:field_trial",
272 "../system_wrappers:metrics",
katrielc14897d02016-06-03 13:14:28 -0700273 "../video",
Danil Chapovalovb9b146c2018-06-15 12:28:07 +0200274 "//third_party/abseil-cpp/absl/types:optional",
Peter Boström5c389d32015-09-25 13:58:30 +0200275 ]
276}
Peter Boström02083222016-06-14 12:52:54 +0200277
aleloi440b6d92017-08-22 05:43:23 -0700278rtc_source_set("video_stream_api") {
279 sources = [
280 "video_receive_stream.cc",
281 "video_receive_stream.h",
282 "video_send_stream.cc",
283 "video_send_stream.h",
284 ]
285 deps = [
Stefan Holmer1acbd682017-09-01 15:29:28 +0200286 ":rtp_interfaces",
Niels Mölleref1052a2019-03-20 08:40:23 +0100287 "../api:rtp_headers",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200288 "../api:rtp_parameters",
aleloi440b6d92017-08-22 05:43:23 -0700289 "../api:transport_api",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200290 "../api/crypto:frame_decryptor_interface",
291 "../api/crypto:frame_encryptor_interface",
292 "../api/crypto:options",
Niels Möller65f17ca2019-09-12 13:59:36 +0200293 "../api/transport/media:media_transport_interface",
Niels Möllera8370302019-09-02 15:16:49 +0200294 "../api/transport/rtp:rtp_source",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200295 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200296 "../api/video:video_rtp_headers",
Niels Möller213618e2018-07-24 09:29:58 +0200297 "../api/video:video_stream_encoder",
Niels Möller88614b02018-03-27 16:39:01 +0200298 "../api/video_codecs:video_codecs_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100299 "../common_video",
Patrik Höglund3e113432017-12-15 14:40:10 +0100300 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglund9e194032018-01-04 15:58:20 +0100301 "../rtc_base:checks",
aleloi440b6d92017-08-22 05:43:23 -0700302 "../rtc_base:rtc_base_approved",
Danil Chapovalovb9b146c2018-06-15 12:28:07 +0200303 "//third_party/abseil-cpp/absl/types:optional",
aleloi440b6d92017-08-22 05:43:23 -0700304 ]
305}
306
Sebastian Janssonf96b1ca2018-08-07 18:58:05 +0200307rtc_source_set("simulated_network") {
308 sources = [
309 "simulated_network.cc",
310 "simulated_network.h",
311 ]
312 deps = [
313 "../api:simulated_network_api",
Sebastian Jansson2cd3b4c2018-11-06 19:18:28 +0100314 "../api/units:data_rate",
315 "../api/units:data_size",
316 "../api/units:time_delta",
Sebastian Jansson2b08e312019-02-25 10:24:46 +0100317 "../api/units:timestamp",
Yves Gerey3e707812018-11-28 16:47:49 +0100318 "../rtc_base:checks",
Sebastian Janssonf96b1ca2018-08-07 18:58:05 +0200319 "../rtc_base:rtc_base_approved",
Sebastian Janssonb55015e2019-04-09 13:44:04 +0200320 "../rtc_base/synchronization:sequence_checker",
Sebastian Janssonf96b1ca2018-08-07 18:58:05 +0200321 "//third_party/abseil-cpp/absl/types:optional",
322 ]
323}
324
Artem Titov46c4e602018-08-17 14:26:54 +0200325rtc_source_set("simulated_packet_receiver") {
326 sources = [
327 "simulated_packet_receiver.h",
328 ]
329 deps = [
330 ":call_interfaces",
331 "../api:simulated_network_api",
Artem Titov46c4e602018-08-17 14:26:54 +0200332 ]
333}
334
Erik Språng09708512018-03-14 15:16:50 +0100335rtc_source_set("fake_network") {
336 sources = [
337 "fake_network_pipe.cc",
338 "fake_network_pipe.h",
339 ]
340 deps = [
341 ":call_interfaces",
Sebastian Janssonf96b1ca2018-08-07 18:58:05 +0200342 ":simulated_network",
Artem Titov46c4e602018-08-17 14:26:54 +0200343 ":simulated_packet_receiver",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200344 "../api:rtp_parameters",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200345 "../api:simulated_network_api",
Erik Språng09708512018-03-14 15:16:50 +0100346 "../api:transport_api",
Sebastian Jansson71822862018-10-30 08:23:27 +0100347 "../modules/utility",
Yves Gerey3e707812018-11-28 16:47:49 +0100348 "../rtc_base:checks",
Erik Språng09708512018-03-14 15:16:50 +0100349 "../rtc_base:rtc_base_approved",
Sebastian Janssonb55015e2019-04-09 13:44:04 +0200350 "../rtc_base/synchronization:sequence_checker",
Erik Språng09708512018-03-14 15:16:50 +0100351 "../system_wrappers",
352 ]
Erik Språng09708512018-03-14 15:16:50 +0100353}
354
Peter Boström02083222016-06-14 12:52:54 +0200355if (rtc_include_tests) {
ehmaldonado38a21322016-09-02 04:10:34 -0700356 rtc_source_set("call_tests") {
Peter Boström02083222016-06-14 12:52:54 +0200357 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700358
Peter Boström02083222016-06-14 12:52:54 +0200359 sources = [
360 "bitrate_allocator_unittest.cc",
361 "bitrate_estimator_tests.cc",
362 "call_unittest.cc",
brandtr76648da2016-10-20 04:54:48 -0700363 "flexfec_receive_stream_unittest.cc",
Sebastian Janssonb34556e2018-03-21 14:38:32 +0100364 "receive_time_calculator_unittest.cc",
eladalona52722f2017-06-26 11:23:54 -0700365 "rtcp_demuxer_unittest.cc",
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100366 "rtp_bitrate_configurator_unittest.cc",
eladalon760a0762017-05-31 09:12:25 -0700367 "rtp_demuxer_unittest.cc",
Stefan Holmerf7044682018-07-17 10:16:41 +0200368 "rtp_payload_params_unittest.cc",
eladalona52722f2017-06-26 11:23:54 -0700369 "rtp_rtcp_demuxer_helper_unittest.cc",
Stefan Holmer9416ef82018-07-19 10:34:38 +0200370 "rtp_video_sender_unittest.cc",
nisseeed52bf2017-05-19 06:15:19 -0700371 "rtx_receive_stream_unittest.cc",
Peter Boström02083222016-06-14 12:52:54 +0200372 ]
373 deps = [
Mirko Bonadei245660a2017-10-10 14:38:11 +0200374 ":bitrate_allocator",
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100375 ":bitrate_configurator",
Peter Boström02083222016-06-14 12:52:54 +0200376 ":call",
Mirko Bonadeia0e1a552017-12-04 10:50:51 +0100377 ":call_interfaces",
eladalone2173d92017-07-28 10:05:45 -0700378 ":mock_rtp_interfaces",
nissed76b7b22017-06-01 04:02:35 -0700379 ":rtp_interfaces",
380 ":rtp_receiver",
381 ":rtp_sender",
Artem Titovdd2eebe2018-08-20 13:27:45 +0200382 ":simulated_network",
kwiberg529662a2017-09-04 05:43:17 -0700383 "../api:array_view",
Piotr (Peter) Slatalacc8e8bb2018-11-15 08:26:19 -0800384 "../api:fake_media_transport",
Piotr (Peter) Slatala179a3922018-11-16 09:57:58 -0800385 "../api:fake_media_transport",
ossuc3d4b482017-05-23 06:07:11 -0700386 "../api:mock_audio_mixer",
Niels Mölleref1052a2019-03-20 08:40:23 +0100387 "../api:rtp_headers",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200388 "../api:rtp_parameters",
Yves Gerey3e707812018-11-28 16:47:49 +0100389 "../api:transport_api",
Karl Wibergf3850f62017-11-02 13:04:41 +0100390 "../api/audio_codecs:builtin_audio_decoder_factory",
Danil Chapovalov83bbe912019-08-07 12:24:53 +0200391 "../api/rtc_event_log",
Danil Chapovalovd3ba2362019-04-10 17:01:23 +0200392 "../api/task_queue:default_task_queue_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100393 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200394 "../api/video:video_rtp_headers",
Artem Titov94b57c02019-03-21 13:35:10 +0100395 "../audio",
aleloidd310712016-11-17 06:28:59 -0800396 "../modules/audio_device:mock_audio_device",
aleloi10111bc2016-11-17 06:48:48 -0800397 "../modules/audio_mixer",
Mirko Bonadei03d6f2f2017-12-05 15:33:16 +0100398 "../modules/audio_mixer:audio_mixer_impl",
Patrik Höglund62139292017-12-19 16:44:45 +0100399 "../modules/audio_processing:mocks",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200400 "../modules/congestion_controller",
kjellander2f1a5552017-02-27 15:57:45 -0800401 "../modules/pacing",
402 "../modules/rtp_rtcp",
danilchap2d9d21f2017-05-10 08:41:13 -0700403 "../modules/rtp_rtcp:mock_rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100404 "../modules/rtp_rtcp:rtp_rtcp_format",
mbonadei5166e542017-08-03 05:57:11 -0700405 "../modules/utility:mock_process_thread",
Artem Titov94b57c02019-03-21 13:35:10 +0100406 "../modules/video_coding",
Yves Gerey3e707812018-11-28 16:47:49 +0100407 "../modules/video_coding:codec_globals_headers",
Stefan Holmera2f15332018-07-11 17:11:31 +0200408 "../modules/video_coding:video_codec_interface",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100409 "../rtc_base:checks",
Stefan Holmerdbdb3a02018-07-17 16:03:46 +0200410 "../rtc_base:rate_limiter",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700411 "../rtc_base:rtc_base_approved",
kjellander2f1a5552017-02-27 15:57:45 -0800412 "../system_wrappers",
kwiberg37e99fd2017-04-10 05:15:48 -0700413 "../test:audio_codec_mocks",
kjellander2f1a5552017-02-27 15:57:45 -0800414 "../test:direct_transport",
Danil Chapovalovce928172019-04-24 18:17:42 +0200415 "../test:encoder_settings",
Ilya Nikolaevskiyb0588e62018-08-27 14:12:27 +0200416 "../test:fake_video_codecs",
Stefan Holmera2f15332018-07-11 17:11:31 +0200417 "../test:field_trial",
aleloi10111bc2016-11-17 06:48:48 -0800418 "../test:test_common",
kjellander2f1a5552017-02-27 15:57:45 -0800419 "../test:test_support",
420 "../test:video_test_common",
Artem Titov94b57c02019-03-21 13:35:10 +0100421 "../video",
Ilya Nikolaevskiyb0588e62018-08-27 14:12:27 +0200422 "//testing/gmock",
Peter Boström02083222016-06-14 12:52:54 +0200423 "//testing/gtest",
Yves Gerey3e707812018-11-28 16:47:49 +0100424 "//third_party/abseil-cpp/absl/container:inlined_vector",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200425 "//third_party/abseil-cpp/absl/memory",
Yves Gerey69807e82018-10-30 22:23:02 +0100426 "//third_party/abseil-cpp/absl/types:optional",
Peter Boström02083222016-06-14 12:52:54 +0200427 ]
Peter Boström02083222016-06-14 12:52:54 +0200428 }
ehmaldonado021eef32017-01-05 07:09:50 -0800429
430 rtc_source_set("call_perf_tests") {
431 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700432
ehmaldonado021eef32017-01-05 07:09:50 -0800433 sources = [
434 "call_perf_tests.cc",
435 "rampup_tests.cc",
436 "rampup_tests.h",
437 ]
438 deps = [
kjellander2f1a5552017-02-27 15:57:45 -0800439 ":call_interfaces",
Artem Titov4e199e92018-08-20 13:30:39 +0200440 ":simulated_network",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200441 ":video_stream_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200442 "../api:rtc_event_log_output_file",
Artem Titov46c4e602018-08-17 14:26:54 +0200443 "../api:simulated_network_api",
ossueb1fde42017-05-02 06:46:30 -0700444 "../api/audio_codecs:builtin_audio_encoder_factory",
Danil Chapovalov83bbe912019-08-07 12:24:53 +0200445 "../api/rtc_event_log",
Danil Chapovalov4ba04b72019-06-26 15:49:47 +0200446 "../api/rtc_event_log:rtc_event_log_factory",
Danil Chapovalov304ea5f2019-04-11 15:18:18 +0200447 "../api/task_queue",
448 "../api/task_queue:default_task_queue_factory",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800449 "../api/video:builtin_video_bitrate_allocator_factory",
Erik Språngef75ebe2018-05-15 15:18:36 +0200450 "../api/video:video_bitrate_allocation",
Niels Möller0a8f4352018-05-18 11:37:23 +0200451 "../api/video_codecs:video_codecs_api",
kjellander2f1a5552017-02-27 15:57:45 -0800452 "../modules/audio_coding",
Artem Titov3faa8322018-03-07 14:44:00 +0100453 "../modules/audio_device",
Paulina Hensman7bd79a02018-03-15 12:44:12 +0100454 "../modules/audio_device:audio_device_impl",
kjellander2f1a5552017-02-27 15:57:45 -0800455 "../modules/audio_mixer:audio_mixer_impl",
456 "../modules/rtp_rtcp",
Niels Möllera8370302019-09-02 15:16:49 +0200457 "../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100458 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700459 "../rtc_base:rtc_base_approved",
kjellander2f1a5552017-02-27 15:57:45 -0800460 "../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200461 "../system_wrappers:metrics",
kjellander2f1a5552017-02-27 15:57:45 -0800462 "../test:direct_transport",
Danil Chapovalovce928172019-04-24 18:17:42 +0200463 "../test:encoder_settings",
Ilya Nikolaevskiyb0588e62018-08-27 14:12:27 +0200464 "../test:fake_video_codecs",
jianjun.zhuc0247402017-07-11 06:20:45 -0700465 "../test:field_trial",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100466 "../test:fileutils",
Danil Chapovalovce928172019-04-24 18:17:42 +0200467 "../test:null_transport",
Edward Lemure66572b2018-01-05 15:34:09 +0100468 "../test:perf_test",
Tommi25eb47c2019-08-29 16:39:05 +0200469 "../test:rtp_test_utils",
jianjun.zhuc0247402017-07-11 06:20:45 -0700470 "../test:test_common",
kjellander2f1a5552017-02-27 15:57:45 -0800471 "../test:test_support",
472 "../test:video_test_common",
473 "../video",
ehmaldonado021eef32017-01-05 07:09:50 -0800474 "//testing/gtest",
Mirko Bonadei2ab97f62019-07-18 13:44:12 +0200475 "//third_party/abseil-cpp/absl/flags:flag",
ehmaldonado021eef32017-01-05 07:09:50 -0800476 ]
ehmaldonado021eef32017-01-05 07:09:50 -0800477 }
eladalone2173d92017-07-28 10:05:45 -0700478
479 # TODO(eladalon): This should be moved, as with the TODO for |rtp_interfaces|.
480 rtc_source_set("mock_rtp_interfaces") {
481 testonly = true
482
483 sources = [
484 "test/mock_rtp_packet_sink_interface.h",
Sebastian Jansson8f83b422018-02-21 13:07:13 +0100485 "test/mock_rtp_transport_controller_send.h",
eladalone2173d92017-07-28 10:05:45 -0700486 ]
487 deps = [
488 ":rtp_interfaces",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200489 "../api:libjingle_peerconnection_api",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200490 "../api/crypto:frame_encryptor_interface",
491 "../api/crypto:options",
Mirko Bonadei738bfa72019-09-17 14:47:38 +0200492 "../api/transport:bitrate_settings",
Sebastian Jansson35dd6cd2018-02-21 17:30:36 +0100493 "../modules/pacing",
Artem Titov94b57c02019-03-21 13:35:10 +0100494 "../rtc_base",
Sebastian Jansson35dd6cd2018-02-21 17:30:36 +0100495 "../rtc_base:rate_limiter",
Sebastian Jansson12985412018-10-15 21:06:26 +0200496 "../rtc_base/network:sent_packet",
eladalone2173d92017-07-28 10:05:45 -0700497 "../test:test_support",
eladalone2173d92017-07-28 10:05:45 -0700498 ]
499 }
Sebastian Jansson83267802018-04-19 08:27:19 +0200500 rtc_source_set("mock_bitrate_allocator") {
501 testonly = true
Fredrik Solenberg2a877972017-12-15 16:42:15 +0100502
Sebastian Jansson83267802018-04-19 08:27:19 +0200503 sources = [
504 "test/mock_bitrate_allocator.h",
505 ]
506 deps = [
507 ":bitrate_allocator",
Yves Gerey21cddff2018-10-30 21:12:42 +0100508 "../test:test_support",
Sebastian Jansson83267802018-04-19 08:27:19 +0200509 ]
510 }
Fredrik Solenberg2a877972017-12-15 16:42:15 +0100511 rtc_source_set("mock_call_interfaces") {
512 testonly = true
513
514 sources = [
515 "test/mock_audio_send_stream.h",
516 ]
517 deps = [
518 ":call_interfaces",
Yves Gerey21cddff2018-10-30 21:12:42 +0100519 "../test:test_support",
Fredrik Solenberg2a877972017-12-15 16:42:15 +0100520 ]
521 }
Erik Språng09708512018-03-14 15:16:50 +0100522
Sebastian Jansson487c09b2019-02-21 16:21:51 +0100523 rtc_source_set("fake_network_pipe_unittests") {
524 testonly = true
525
Artem Titov40a7a352018-10-15 15:25:34 +0200526 sources = [
Sebastian Jansson487c09b2019-02-21 16:21:51 +0100527 "fake_network_pipe_unittest.cc",
Sebastian Jansson2b08e312019-02-25 10:24:46 +0100528 "simulated_network_unittest.cc",
Artem Titov40a7a352018-10-15 15:25:34 +0200529 ]
Erik Språng09708512018-03-14 15:16:50 +0100530 deps = [
Erik Språng09708512018-03-14 15:16:50 +0100531 ":fake_network",
Artem Titove23b8a92018-08-16 15:51:07 +0200532 ":simulated_network",
Sebastian Jansson2b08e312019-02-25 10:24:46 +0100533 "../api/units:data_rate",
Erik Språng09708512018-03-14 15:16:50 +0100534 "../system_wrappers",
Yves Gerey21cddff2018-10-30 21:12:42 +0100535 "../test:test_support",
Erik Språng09708512018-03-14 15:16:50 +0100536 "//testing/gtest",
Sebastian Jansson2b08e312019-02-25 10:24:46 +0100537 "//third_party/abseil-cpp/absl/algorithm:container",
Erik Språng09708512018-03-14 15:16:50 +0100538 ]
Erik Språng09708512018-03-14 15:16:50 +0100539 }
Peter Boström02083222016-06-14 12:52:54 +0200540}