blob: e14370c53debe07112e127dbe22ed16f1978829c [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
Mirko Bonadei86d053c2019-10-17 21:32:04 +020011rtc_library("call_interfaces") {
ossuf515ab82016-12-07 04:52:58 -080012 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 = [
Tim Nab8c775a2020-01-10 10:33:05 -080031 ":audio_sender_interface",
nissed76b7b22017-06-01 04:02:35 -070032 ":rtp_interfaces",
aleloi440b6d92017-08-22 05:43:23 -070033 ":video_stream_api",
Ying Wang3b790f32018-01-19 17:58:57 +010034 "../api:fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +020035 "../api:network_state_predictor_api",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +020036 "../api:rtc_error",
Niels Mölleref1052a2019-03-20 08:40:23 +010037 "../api:rtp_headers",
Niels Möller6dcd4dc2019-08-26 10:45:28 +020038 "../api:rtp_parameters",
Mirko Bonadeid9708072019-01-25 20:26:48 +010039 "../api:scoped_refptr",
kjellander2f1a5552017-02-27 15:57:45 -080040 "../api:transport_api",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +010041 "../api/audio:audio_mixer_api",
kjellander2f1a5552017-02-27 15:57:45 -080042 "../api/audio_codecs:audio_codecs_api",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +020043 "../api/crypto:frame_decryptor_interface",
44 "../api/crypto:frame_encryptor_interface",
45 "../api/crypto:options",
Ivo Creusenc3d1f9b2019-11-01 11:47:51 +010046 "../api/neteq:neteq_api",
Sebastian Janssoned50e6c2019-03-01 14:45:21 +010047 "../api/task_queue",
Mirko Bonadei738bfa72019-09-17 14:47:38 +020048 "../api/transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +020049 "../api/transport:network_control",
Erik Språng662678d2019-11-15 17:18:52 +010050 "../api/transport:webrtc_key_value_config",
Niels Möllera8370302019-09-02 15:16:49 +020051 "../api/transport/rtp:rtp_source",
Artem Titov94b57c02019-03-21 13:35:10 +010052 "../modules/audio_device",
53 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +000054 "../modules/audio_processing:api",
Ivo Creusen56d46092017-11-24 17:29:59 +010055 "../modules/audio_processing:audio_processing_statistics",
Henrik Boström6e436d12019-05-27 12:19:33 +020056 "../modules/rtp_rtcp:rtp_rtcp_format",
Artem Titov94b57c02019-03-21 13:35:10 +010057 "../modules/utility",
58 "../rtc_base",
Jonas Olssonabbe8412018-04-03 13:40:05 +020059 "../rtc_base:audio_format_to_string",
Yves Gerey988cc082018-10-23 12:03:01 +020060 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -070061 "../rtc_base:rtc_base_approved",
Sebastian Jansson12985412018-10-15 21:06:26 +020062 "../rtc_base/network:sent_packet",
Danil Chapovalovb9b146c2018-06-15 12:28:07 +020063 "//third_party/abseil-cpp/absl/types:optional",
kjellander2f1a5552017-02-27 15:57:45 -080064 ]
ossuf515ab82016-12-07 04:52:58 -080065}
66
Tim Nab8c775a2020-01-10 10:33:05 -080067rtc_source_set("audio_sender_interface") {
68 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +010069 sources = [ "audio_sender.h" ]
70 deps = [ "../api/audio:audio_frame_api" ]
Tim Nab8c775a2020-01-10 10:33:05 -080071}
72
nissed76b7b22017-06-01 04:02:35 -070073# TODO(nisse): These RTP targets should be moved elsewhere
eladalone2173d92017-07-28 10:05:45 -070074# when interfaces have stabilized. See also TODO for |mock_rtp_interfaces|.
Mirko Bonadei86d053c2019-10-17 21:32:04 +020075rtc_library("rtp_interfaces") {
Danil Chapovalov32fe3d12018-10-04 13:41:03 +020076 # Client code SHOULD NOT USE THIS TARGET, but for now it needs to be public
77 # because there exists client code that uses it.
78 # TODO(bugs.webrtc.org/9808): Move to private visibility as soon as that
79 # client code gets updated.
80 visibility = [ "*" ]
nissed76b7b22017-06-01 04:02:35 -070081 sources = [
eladalona52722f2017-06-26 11:23:54 -070082 "rtcp_packet_sink_interface.h",
Stefan Holmer1acbd682017-09-01 15:29:28 +020083 "rtp_config.cc",
84 "rtp_config.h",
nissed76b7b22017-06-01 04:02:35 -070085 "rtp_packet_sink_interface.h",
nisse0f15f922017-06-21 01:05:22 -070086 "rtp_stream_receiver_controller_interface.h",
nissed76b7b22017-06-01 04:02:35 -070087 "rtp_transport_controller_send_interface.h",
88 ]
eladalona52722f2017-06-26 11:23:54 -070089 deps = [
kwiberg529662a2017-09-04 05:43:17 -070090 "../api:array_view",
Stefan Holmer64be7fa2018-10-04 15:21:55 +020091 "../api:fec_controller_api",
Niels Mölleref1052a2019-03-20 08:40:23 +010092 "../api:rtp_headers",
Niels Möller6dcd4dc2019-08-26 10:45:28 +020093 "../api:rtp_parameters",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +020094 "../api/crypto:options",
Danil Chapovalov83bbe912019-08-07 12:24:53 +020095 "../api/rtc_event_log",
Niels Möller0c4f7be2018-05-07 14:01:37 +020096 "../api/transport:bitrate_settings",
Erik Språng425d6aa2019-07-29 16:38:27 +020097 "../api/units:timestamp",
Stefan Holmerdbdb3a02018-07-17 16:03:46 +020098 "../modules/rtp_rtcp:rtp_rtcp_format",
ehmaldonadof6a861a2017-07-19 10:40:47 -070099 "../rtc_base:rtc_base_approved",
Danil Chapovalovb9b146c2018-06-15 12:28:07 +0200100 "//third_party/abseil-cpp/absl/types:optional",
eladalona52722f2017-06-26 11:23:54 -0700101 ]
nissed76b7b22017-06-01 04:02:35 -0700102}
103
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200104rtc_library("rtp_receiver") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000105 visibility = [ "*" ]
nissed76b7b22017-06-01 04:02:35 -0700106 sources = [
eladalona52722f2017-06-26 11:23:54 -0700107 "rtcp_demuxer.cc",
108 "rtcp_demuxer.h",
nissed76b7b22017-06-01 04:02:35 -0700109 "rtp_demuxer.cc",
110 "rtp_demuxer.h",
eladalona52722f2017-06-26 11:23:54 -0700111 "rtp_rtcp_demuxer_helper.cc",
112 "rtp_rtcp_demuxer_helper.h",
nisse0f15f922017-06-21 01:05:22 -0700113 "rtp_stream_receiver_controller.cc",
114 "rtp_stream_receiver_controller.h",
nissed76b7b22017-06-01 04:02:35 -0700115 "rtx_receive_stream.cc",
116 "rtx_receive_stream.h",
Steve Antonb3329172017-08-17 15:23:51 -0700117 "ssrc_binding_observer.h",
nissed76b7b22017-06-01 04:02:35 -0700118 ]
119 deps = [
120 ":rtp_interfaces",
kwiberg529662a2017-09-04 05:43:17 -0700121 "../api:array_view",
Niels Mölleref1052a2019-03-20 08:40:23 +0100122 "../api:rtp_headers",
nissed76b7b22017-06-01 04:02:35 -0700123 "../modules/rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100124 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100125 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700126 "../rtc_base:rtc_base_approved",
Danil Chapovalovb9b146c2018-06-15 12:28:07 +0200127 "//third_party/abseil-cpp/absl/types:optional",
nissed76b7b22017-06-01 04:02:35 -0700128 ]
129}
130
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200131rtc_library("rtp_sender") {
nissed76b7b22017-06-01 04:02:35 -0700132 sources = [
Stefan Holmerf7044682018-07-17 10:16:41 +0200133 "rtp_payload_params.cc",
134 "rtp_payload_params.h",
nissed76b7b22017-06-01 04:02:35 -0700135 "rtp_transport_controller_send.cc",
136 "rtp_transport_controller_send.h",
Stefan Holmer9416ef82018-07-19 10:34:38 +0200137 "rtp_video_sender.cc",
138 "rtp_video_sender.h",
139 "rtp_video_sender_interface.h",
nissed76b7b22017-06-01 04:02:35 -0700140 ]
141 deps = [
Sebastian Jansson97f61ea2018-02-21 13:01:55 +0100142 ":bitrate_configurator",
nissed76b7b22017-06-01 04:02:35 -0700143 ":rtp_interfaces",
Elad Alon898395d2019-04-10 15:55:00 +0200144 "../api:array_view",
Sebastian Jansson82ed2e82019-10-15 15:58:37 +0200145 "../api:bitrate_allocation",
Stefan Holmer64be7fa2018-10-04 15:21:55 +0200146 "../api:fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200147 "../api:network_state_predictor_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200148 "../api:rtp_parameters",
Stefan Holmerdbdb3a02018-07-17 16:03:46 +0200149 "../api:transport_api",
Danil Chapovalov83bbe912019-08-07 12:24:53 +0200150 "../api/rtc_event_log",
Niels Möller5fe95102019-03-04 16:49:25 +0100151 "../api/transport:field_trial_based_config",
Sebastian Jansson87609be2018-12-05 17:35:35 +0100152 "../api/transport:goog_cc",
Sebastian Janssonc6c44262018-05-09 10:33:39 +0200153 "../api/transport:network_control",
Yves Gerey3e707812018-11-28 16:47:49 +0100154 "../api/units:data_rate",
155 "../api/units:time_delta",
156 "../api/units:timestamp",
157 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200158 "../api/video:video_rtp_headers",
Stefan Holmera2f15332018-07-11 17:11:31 +0200159 "../api/video_codecs:video_codecs_api",
Sebastian Jansson166b45d2019-05-13 11:57:42 +0200160 "../logging:rtc_event_bwe",
nissed76b7b22017-06-01 04:02:35 -0700161 "../modules/congestion_controller",
Sebastian Jansson87609be2018-12-05 17:35:35 +0100162 "../modules/congestion_controller/rtp:control_handler",
163 "../modules/congestion_controller/rtp:transport_feedback",
Niels Möllerfd6c0912017-10-31 10:19:10 +0100164 "../modules/pacing",
Artem Titov94b57c02019-03-21 13:35:10 +0100165 "../modules/rtp_rtcp",
Stefan Holmera2f15332018-07-11 17:11:31 +0200166 "../modules/rtp_rtcp:rtp_rtcp_format",
167 "../modules/rtp_rtcp:rtp_video_header",
Sebastian Janssonc33c0fc2018-02-22 11:10:18 +0100168 "../modules/utility",
Yves Gerey3e707812018-11-28 16:47:49 +0100169 "../modules/video_coding:codec_globals_headers",
Stefan Holmera2f15332018-07-11 17:11:31 +0200170 "../modules/video_coding:video_codec_interface",
Artem Titov94b57c02019-03-21 13:35:10 +0100171 "../rtc_base",
Stefan Holmera2f15332018-07-11 17:11:31 +0200172 "../rtc_base:checks",
Stefan Holmerdbdb3a02018-07-17 16:03:46 +0200173 "../rtc_base:rate_limiter",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700174 "../rtc_base:rtc_base_approved",
Sebastian Janssone6256052018-05-04 14:08:15 +0200175 "../rtc_base:rtc_task_queue",
Sebastian Janssonecb68972019-01-18 10:30:54 +0100176 "../rtc_base/task_utils:repeating_task",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200177 "../system_wrappers:field_trial",
Erik Språng845c6aa2019-05-29 13:02:24 +0200178 "//third_party/abseil-cpp/absl/algorithm:container",
Yves Gerey3e707812018-11-28 16:47:49 +0100179 "//third_party/abseil-cpp/absl/container:inlined_vector",
Erik Språng6cf554e2019-10-02 20:55:39 +0200180 "//third_party/abseil-cpp/absl/strings:strings",
Yves Gerey3e707812018-11-28 16:47:49 +0100181 "//third_party/abseil-cpp/absl/types:optional",
182 "//third_party/abseil-cpp/absl/types:variant",
nissed76b7b22017-06-01 04:02:35 -0700183 ]
184}
185
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200186rtc_library("bitrate_configurator") {
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100187 sources = [
188 "rtp_bitrate_configurator.cc",
189 "rtp_bitrate_configurator.h",
190 ]
191 deps = [
192 ":rtp_interfaces",
Niels Möllerb4a61282019-08-29 12:16:56 +0200193
194 # For api/bitrate_constraints.h
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200195 "../api:libjingle_peerconnection_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200196 "../api/transport:bitrate_settings",
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100197 "../rtc_base:checks",
198 "../rtc_base:rtc_base_approved",
Yves Gerey3e707812018-11-28 16:47:49 +0100199 "//third_party/abseil-cpp/absl/types:optional",
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100200 ]
201}
202
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200203rtc_library("bitrate_allocator") {
Peter Boström5c389d32015-09-25 13:58:30 +0200204 sources = [
mflodman0e7e2592015-11-12 21:02:42 -0800205 "bitrate_allocator.cc",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200206 "bitrate_allocator.h",
207 ]
208 deps = [
Sebastian Jansson6736df12018-11-21 19:18:39 +0100209 "../api:bitrate_allocation",
Sebastian Jansson93b1ea22019-09-18 18:31:52 +0200210 "../api/transport:network_control",
Sebastian Jansson13e59032018-11-21 19:13:07 +0100211 "../api/units:data_rate",
212 "../api/units:time_delta",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100213 "../rtc_base:checks",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200214 "../rtc_base:rtc_base_approved",
Sebastian Jansson40de3cc2019-09-19 14:54:43 +0200215 "../rtc_base:safe_minmax",
Sebastian Janssonb55015e2019-04-09 13:44:04 +0200216 "../rtc_base/synchronization:sequence_checker",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200217 "../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200218 "../system_wrappers:field_trial",
219 "../system_wrappers:metrics",
Sebastian Jansson4d461ba2019-09-17 20:53:26 +0200220 "//third_party/abseil-cpp/absl/algorithm:container",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200221 ]
Mirko Bonadei245660a2017-10-10 14:38:11 +0200222}
223
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200224rtc_library("call") {
Mirko Bonadei245660a2017-10-10 14:38:11 +0200225 sources = [
Peter Boström5c389d32015-09-25 13:58:30 +0200226 "call.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800227 "call_factory.cc",
228 "call_factory.h",
Erik Språng09708512018-03-14 15:16:50 +0100229 "degraded_call.cc",
230 "degraded_call.h",
brandtr7250b392016-12-19 01:13:46 -0800231 "flexfec_receive_stream_impl.cc",
232 "flexfec_receive_stream_impl.h",
Sebastian Janssonb34556e2018-03-21 14:38:32 +0100233 "receive_time_calculator.cc",
234 "receive_time_calculator.h",
Peter Boström5c389d32015-09-25 13:58:30 +0200235 ]
236
Peter Boström5c389d32015-09-25 13:58:30 +0200237 deps = [
Mirko Bonadei245660a2017-10-10 14:38:11 +0200238 ":bitrate_allocator",
ossuf515ab82016-12-07 04:52:58 -0800239 ":call_interfaces",
Erik Språng09708512018-03-14 15:16:50 +0100240 ":fake_network",
nissed76b7b22017-06-01 04:02:35 -0700241 ":rtp_interfaces",
242 ":rtp_receiver",
243 ":rtp_sender",
Artem Titov3229d652018-08-17 13:00:54 +0200244 ":simulated_network",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200245 ":video_stream_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100246 "../api:array_view",
Niels Möller8366e172018-02-14 12:20:13 +0100247 "../api:callfactory_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100248 "../api:fec_controller_api",
Niels Mölleref1052a2019-03-20 08:40:23 +0100249 "../api:rtp_headers",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200250 "../api:rtp_parameters",
Artem Titov3229d652018-08-17 13:00:54 +0200251 "../api:simulated_network_api",
aleloia8eb7562016-11-28 07:02:13 -0800252 "../api:transport_api",
Danil Chapovalov83bbe912019-08-07 12:24:53 +0200253 "../api/rtc_event_log",
Sebastian Janssonc6c44262018-05-09 10:33:39 +0200254 "../api/transport:network_control",
Yves Gerey3e707812018-11-28 16:47:49 +0100255 "../api/units:time_delta",
256 "../api/video_codecs:video_codecs_api",
katrielc14897d02016-06-03 13:14:28 -0700257 "../audio",
Qingsi Wang970b0882018-02-01 11:04:46 -0800258 "../logging:rtc_event_audio",
Qingsi Wang970b0882018-02-01 11:04:46 -0800259 "../logging:rtc_event_rtp_rtcp",
260 "../logging:rtc_event_video",
261 "../logging:rtc_stream_config",
Sebastian Jansson836fee12019-02-08 16:08:10 +0100262 "../modules:module_api",
Stefan Holmer80e12072016-02-23 13:30:42 +0100263 "../modules/congestion_controller",
kjellander2f1a5552017-02-27 15:57:45 -0800264 "../modules/pacing",
Peter Boström5c389d32015-09-25 13:58:30 +0200265 "../modules/rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100266 "../modules/rtp_rtcp:rtp_rtcp_format",
kjellander2f1a5552017-02-27 15:57:45 -0800267 "../modules/utility",
Artem Titov94b57c02019-03-21 13:35:10 +0100268 "../modules/video_coding",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100269 "../rtc_base:checks",
Sebastian Jansson45087cd2018-03-01 15:56:57 +0100270 "../rtc_base:rate_limiter",
mbonadei95c8f652017-08-27 23:40:10 -0700271 "../rtc_base:rtc_base_approved",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700272 "../rtc_base:rtc_task_queue",
Sebastian Jansson19704ec2018-03-12 15:59:12 +0100273 "../rtc_base:safe_minmax",
Christoffer Rodbro76ad1542018-10-12 11:15:09 +0200274 "../rtc_base/experiments:field_trial_parser",
Yves Gerey3e707812018-11-28 16:47:49 +0100275 "../rtc_base/network:sent_packet",
Karl Wiberg2b857922018-03-23 14:53:54 +0100276 "../rtc_base/synchronization:rw_lock_wrapper",
Sebastian Janssonb55015e2019-04-09 13:44:04 +0200277 "../rtc_base/synchronization:sequence_checker",
Peter Boström5c389d32015-09-25 13:58:30 +0200278 "../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200279 "../system_wrappers:field_trial",
280 "../system_wrappers:metrics",
katrielc14897d02016-06-03 13:14:28 -0700281 "../video",
Danil Chapovalovb9b146c2018-06-15 12:28:07 +0200282 "//third_party/abseil-cpp/absl/types:optional",
Peter Boström5c389d32015-09-25 13:58:30 +0200283 ]
284}
Peter Boström02083222016-06-14 12:52:54 +0200285
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200286rtc_library("video_stream_api") {
aleloi440b6d92017-08-22 05:43:23 -0700287 sources = [
288 "video_receive_stream.cc",
289 "video_receive_stream.h",
290 "video_send_stream.cc",
291 "video_send_stream.h",
292 ]
293 deps = [
Stefan Holmer1acbd682017-09-01 15:29:28 +0200294 ":rtp_interfaces",
Niels Mölleref1052a2019-03-20 08:40:23 +0100295 "../api:rtp_headers",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200296 "../api:rtp_parameters",
aleloi440b6d92017-08-22 05:43:23 -0700297 "../api:transport_api",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200298 "../api/crypto:frame_decryptor_interface",
299 "../api/crypto:frame_encryptor_interface",
300 "../api/crypto:options",
Niels Möllera8370302019-09-02 15:16:49 +0200301 "../api/transport/rtp:rtp_source",
Markus Handell269ac812019-12-03 14:31:45 +0100302 "../api/video:recordable_encoded_frame",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200303 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200304 "../api/video:video_rtp_headers",
Niels Möller213618e2018-07-24 09:29:58 +0200305 "../api/video:video_stream_encoder",
Niels Möller88614b02018-03-27 16:39:01 +0200306 "../api/video_codecs:video_codecs_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100307 "../common_video",
Patrik Höglund3e113432017-12-15 14:40:10 +0100308 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglund9e194032018-01-04 15:58:20 +0100309 "../rtc_base:checks",
aleloi440b6d92017-08-22 05:43:23 -0700310 "../rtc_base:rtc_base_approved",
Danil Chapovalovb9b146c2018-06-15 12:28:07 +0200311 "//third_party/abseil-cpp/absl/types:optional",
aleloi440b6d92017-08-22 05:43:23 -0700312 ]
313}
314
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200315rtc_library("simulated_network") {
Sebastian Janssonf96b1ca2018-08-07 18:58:05 +0200316 sources = [
317 "simulated_network.cc",
318 "simulated_network.h",
319 ]
320 deps = [
321 "../api:simulated_network_api",
Sebastian Jansson2cd3b4c2018-11-06 19:18:28 +0100322 "../api/units:data_rate",
323 "../api/units:data_size",
324 "../api/units:time_delta",
Sebastian Jansson2b08e312019-02-25 10:24:46 +0100325 "../api/units:timestamp",
Yves Gerey3e707812018-11-28 16:47:49 +0100326 "../rtc_base:checks",
Sebastian Janssonf96b1ca2018-08-07 18:58:05 +0200327 "../rtc_base:rtc_base_approved",
Sebastian Janssonb55015e2019-04-09 13:44:04 +0200328 "../rtc_base/synchronization:sequence_checker",
Sebastian Janssonf96b1ca2018-08-07 18:58:05 +0200329 "//third_party/abseil-cpp/absl/types:optional",
330 ]
331}
332
Artem Titov46c4e602018-08-17 14:26:54 +0200333rtc_source_set("simulated_packet_receiver") {
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100334 sources = [ "simulated_packet_receiver.h" ]
Artem Titov46c4e602018-08-17 14:26:54 +0200335 deps = [
336 ":call_interfaces",
337 "../api:simulated_network_api",
Artem Titov46c4e602018-08-17 14:26:54 +0200338 ]
339}
340
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200341rtc_library("fake_network") {
Erik Språng09708512018-03-14 15:16:50 +0100342 sources = [
343 "fake_network_pipe.cc",
344 "fake_network_pipe.h",
345 ]
346 deps = [
347 ":call_interfaces",
Sebastian Janssonf96b1ca2018-08-07 18:58:05 +0200348 ":simulated_network",
Artem Titov46c4e602018-08-17 14:26:54 +0200349 ":simulated_packet_receiver",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200350 "../api:rtp_parameters",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200351 "../api:simulated_network_api",
Erik Språng09708512018-03-14 15:16:50 +0100352 "../api:transport_api",
Sebastian Jansson71822862018-10-30 08:23:27 +0100353 "../modules/utility",
Yves Gerey3e707812018-11-28 16:47:49 +0100354 "../rtc_base:checks",
Erik Språng09708512018-03-14 15:16:50 +0100355 "../rtc_base:rtc_base_approved",
Sebastian Janssonb55015e2019-04-09 13:44:04 +0200356 "../rtc_base/synchronization:sequence_checker",
Erik Språng09708512018-03-14 15:16:50 +0100357 "../system_wrappers",
358 ]
Erik Språng09708512018-03-14 15:16:50 +0100359}
360
Peter Boström02083222016-06-14 12:52:54 +0200361if (rtc_include_tests) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200362 rtc_library("call_tests") {
Peter Boström02083222016-06-14 12:52:54 +0200363 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700364
Peter Boström02083222016-06-14 12:52:54 +0200365 sources = [
366 "bitrate_allocator_unittest.cc",
367 "bitrate_estimator_tests.cc",
368 "call_unittest.cc",
brandtr76648da2016-10-20 04:54:48 -0700369 "flexfec_receive_stream_unittest.cc",
Sebastian Janssonb34556e2018-03-21 14:38:32 +0100370 "receive_time_calculator_unittest.cc",
eladalona52722f2017-06-26 11:23:54 -0700371 "rtcp_demuxer_unittest.cc",
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100372 "rtp_bitrate_configurator_unittest.cc",
eladalon760a0762017-05-31 09:12:25 -0700373 "rtp_demuxer_unittest.cc",
Stefan Holmerf7044682018-07-17 10:16:41 +0200374 "rtp_payload_params_unittest.cc",
eladalona52722f2017-06-26 11:23:54 -0700375 "rtp_rtcp_demuxer_helper_unittest.cc",
Stefan Holmer9416ef82018-07-19 10:34:38 +0200376 "rtp_video_sender_unittest.cc",
nisseeed52bf2017-05-19 06:15:19 -0700377 "rtx_receive_stream_unittest.cc",
Peter Boström02083222016-06-14 12:52:54 +0200378 ]
379 deps = [
Mirko Bonadei245660a2017-10-10 14:38:11 +0200380 ":bitrate_allocator",
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100381 ":bitrate_configurator",
Peter Boström02083222016-06-14 12:52:54 +0200382 ":call",
Mirko Bonadeia0e1a552017-12-04 10:50:51 +0100383 ":call_interfaces",
eladalone2173d92017-07-28 10:05:45 -0700384 ":mock_rtp_interfaces",
nissed76b7b22017-06-01 04:02:35 -0700385 ":rtp_interfaces",
386 ":rtp_receiver",
387 ":rtp_sender",
Artem Titovdd2eebe2018-08-20 13:27:45 +0200388 ":simulated_network",
kwiberg529662a2017-09-04 05:43:17 -0700389 "../api:array_view",
Artem Titov33f9d2b2019-12-05 15:59:00 +0100390 "../api:create_frame_generator",
ossuc3d4b482017-05-23 06:07:11 -0700391 "../api:mock_audio_mixer",
Niels Mölleref1052a2019-03-20 08:40:23 +0100392 "../api:rtp_headers",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200393 "../api:rtp_parameters",
Yves Gerey3e707812018-11-28 16:47:49 +0100394 "../api:transport_api",
Karl Wibergf3850f62017-11-02 13:04:41 +0100395 "../api/audio_codecs:builtin_audio_decoder_factory",
Danil Chapovalov83bbe912019-08-07 12:24:53 +0200396 "../api/rtc_event_log",
Danil Chapovalovd3ba2362019-04-10 17:01:23 +0200397 "../api/task_queue:default_task_queue_factory",
Erik Språng014dd3c2019-11-28 13:44:25 +0100398 "../api/transport:field_trial_based_config",
Yves Gerey3e707812018-11-28 16:47:49 +0100399 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200400 "../api/video:video_rtp_headers",
Artem Titov94b57c02019-03-21 13:35:10 +0100401 "../audio",
aleloidd310712016-11-17 06:28:59 -0800402 "../modules/audio_device:mock_audio_device",
aleloi10111bc2016-11-17 06:48:48 -0800403 "../modules/audio_mixer",
Mirko Bonadei03d6f2f2017-12-05 15:33:16 +0100404 "../modules/audio_mixer:audio_mixer_impl",
Patrik Höglund62139292017-12-19 16:44:45 +0100405 "../modules/audio_processing:mocks",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200406 "../modules/congestion_controller",
kjellander2f1a5552017-02-27 15:57:45 -0800407 "../modules/pacing",
408 "../modules/rtp_rtcp",
danilchap2d9d21f2017-05-10 08:41:13 -0700409 "../modules/rtp_rtcp:mock_rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100410 "../modules/rtp_rtcp:rtp_rtcp_format",
mbonadei5166e542017-08-03 05:57:11 -0700411 "../modules/utility:mock_process_thread",
Artem Titov94b57c02019-03-21 13:35:10 +0100412 "../modules/video_coding",
Yves Gerey3e707812018-11-28 16:47:49 +0100413 "../modules/video_coding:codec_globals_headers",
Stefan Holmera2f15332018-07-11 17:11:31 +0200414 "../modules/video_coding:video_codec_interface",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100415 "../rtc_base:checks",
Stefan Holmerdbdb3a02018-07-17 16:03:46 +0200416 "../rtc_base:rate_limiter",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700417 "../rtc_base:rtc_base_approved",
Danil Chapovalov82a3f0a2019-10-21 09:24:27 +0200418 "../rtc_base:task_queue_for_test",
kjellander2f1a5552017-02-27 15:57:45 -0800419 "../system_wrappers",
kwiberg37e99fd2017-04-10 05:15:48 -0700420 "../test:audio_codec_mocks",
kjellander2f1a5552017-02-27 15:57:45 -0800421 "../test:direct_transport",
Danil Chapovalovce928172019-04-24 18:17:42 +0200422 "../test:encoder_settings",
Ilya Nikolaevskiyb0588e62018-08-27 14:12:27 +0200423 "../test:fake_video_codecs",
Stefan Holmera2f15332018-07-11 17:11:31 +0200424 "../test:field_trial",
aleloi10111bc2016-11-17 06:48:48 -0800425 "../test:test_common",
kjellander2f1a5552017-02-27 15:57:45 -0800426 "../test:test_support",
427 "../test:video_test_common",
Erik Språng00cc8362019-11-25 12:21:46 +0100428 "../test/time_controller:time_controller",
Artem Titov94b57c02019-03-21 13:35:10 +0100429 "../video",
Sebastian Jansson3d4d94a2020-01-14 14:25:41 +0100430 "//test/scenario:scenario",
Ilya Nikolaevskiyb0588e62018-08-27 14:12:27 +0200431 "//testing/gmock",
Peter Boström02083222016-06-14 12:52:54 +0200432 "//testing/gtest",
Yves Gerey3e707812018-11-28 16:47:49 +0100433 "//third_party/abseil-cpp/absl/container:inlined_vector",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200434 "//third_party/abseil-cpp/absl/memory",
Yves Gerey69807e82018-10-30 22:23:02 +0100435 "//third_party/abseil-cpp/absl/types:optional",
Peter Boström02083222016-06-14 12:52:54 +0200436 ]
Peter Boström02083222016-06-14 12:52:54 +0200437 }
ehmaldonado021eef32017-01-05 07:09:50 -0800438
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200439 rtc_library("call_perf_tests") {
ehmaldonado021eef32017-01-05 07:09:50 -0800440 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700441
ehmaldonado021eef32017-01-05 07:09:50 -0800442 sources = [
443 "call_perf_tests.cc",
444 "rampup_tests.cc",
445 "rampup_tests.h",
446 ]
447 deps = [
kjellander2f1a5552017-02-27 15:57:45 -0800448 ":call_interfaces",
Artem Titov4e199e92018-08-20 13:30:39 +0200449 ":simulated_network",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200450 ":video_stream_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200451 "../api:rtc_event_log_output_file",
Artem Titov46c4e602018-08-17 14:26:54 +0200452 "../api:simulated_network_api",
ossueb1fde42017-05-02 06:46:30 -0700453 "../api/audio_codecs:builtin_audio_encoder_factory",
Danil Chapovalov83bbe912019-08-07 12:24:53 +0200454 "../api/rtc_event_log",
Danil Chapovalov4ba04b72019-06-26 15:49:47 +0200455 "../api/rtc_event_log:rtc_event_log_factory",
Danil Chapovalov304ea5f2019-04-11 15:18:18 +0200456 "../api/task_queue",
457 "../api/task_queue:default_task_queue_factory",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800458 "../api/video:builtin_video_bitrate_allocator_factory",
Erik Språngef75ebe2018-05-15 15:18:36 +0200459 "../api/video:video_bitrate_allocation",
Niels Möller0a8f4352018-05-18 11:37:23 +0200460 "../api/video_codecs:video_codecs_api",
kjellander2f1a5552017-02-27 15:57:45 -0800461 "../modules/audio_coding",
Artem Titov3faa8322018-03-07 14:44:00 +0100462 "../modules/audio_device",
Paulina Hensman7bd79a02018-03-15 12:44:12 +0100463 "../modules/audio_device:audio_device_impl",
kjellander2f1a5552017-02-27 15:57:45 -0800464 "../modules/audio_mixer:audio_mixer_impl",
465 "../modules/rtp_rtcp",
Danil Chapovalov1b4e4bf2019-12-06 12:34:57 +0100466 "../modules/rtp_rtcp:rtp_rtcp_format",
Niels Möllera8370302019-09-02 15:16:49 +0200467 "../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100468 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700469 "../rtc_base:rtc_base_approved",
Danil Chapovalov82a3f0a2019-10-21 09:24:27 +0200470 "../rtc_base:task_queue_for_test",
Danil Chapovalov9f5ae7b2019-10-21 11:08:13 +0200471 "../rtc_base:task_queue_for_test",
472 "../rtc_base/task_utils:repeating_task",
kjellander2f1a5552017-02-27 15:57:45 -0800473 "../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200474 "../system_wrappers:metrics",
kjellander2f1a5552017-02-27 15:57:45 -0800475 "../test:direct_transport",
Danil Chapovalovce928172019-04-24 18:17:42 +0200476 "../test:encoder_settings",
Ilya Nikolaevskiyb0588e62018-08-27 14:12:27 +0200477 "../test:fake_video_codecs",
jianjun.zhuc0247402017-07-11 06:20:45 -0700478 "../test:field_trial",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100479 "../test:fileutils",
Danil Chapovalovce928172019-04-24 18:17:42 +0200480 "../test:null_transport",
Edward Lemure66572b2018-01-05 15:34:09 +0100481 "../test:perf_test",
Tommi25eb47c2019-08-29 16:39:05 +0200482 "../test:rtp_test_utils",
jianjun.zhuc0247402017-07-11 06:20:45 -0700483 "../test:test_common",
kjellander2f1a5552017-02-27 15:57:45 -0800484 "../test:test_support",
485 "../test:video_test_common",
486 "../video",
ehmaldonado021eef32017-01-05 07:09:50 -0800487 "//testing/gtest",
Mirko Bonadei2ab97f62019-07-18 13:44:12 +0200488 "//third_party/abseil-cpp/absl/flags:flag",
ehmaldonado021eef32017-01-05 07:09:50 -0800489 ]
ehmaldonado021eef32017-01-05 07:09:50 -0800490 }
eladalone2173d92017-07-28 10:05:45 -0700491
492 # TODO(eladalon): This should be moved, as with the TODO for |rtp_interfaces|.
493 rtc_source_set("mock_rtp_interfaces") {
494 testonly = true
495
496 sources = [
497 "test/mock_rtp_packet_sink_interface.h",
Sebastian Jansson8f83b422018-02-21 13:07:13 +0100498 "test/mock_rtp_transport_controller_send.h",
eladalone2173d92017-07-28 10:05:45 -0700499 ]
500 deps = [
501 ":rtp_interfaces",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200502 "../api:libjingle_peerconnection_api",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200503 "../api/crypto:frame_encryptor_interface",
504 "../api/crypto:options",
Mirko Bonadei738bfa72019-09-17 14:47:38 +0200505 "../api/transport:bitrate_settings",
Sebastian Jansson35dd6cd2018-02-21 17:30:36 +0100506 "../modules/pacing",
Artem Titov94b57c02019-03-21 13:35:10 +0100507 "../rtc_base",
Sebastian Jansson35dd6cd2018-02-21 17:30:36 +0100508 "../rtc_base:rate_limiter",
Sebastian Jansson12985412018-10-15 21:06:26 +0200509 "../rtc_base/network:sent_packet",
eladalone2173d92017-07-28 10:05:45 -0700510 "../test:test_support",
eladalone2173d92017-07-28 10:05:45 -0700511 ]
512 }
Sebastian Jansson83267802018-04-19 08:27:19 +0200513 rtc_source_set("mock_bitrate_allocator") {
514 testonly = true
Fredrik Solenberg2a877972017-12-15 16:42:15 +0100515
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100516 sources = [ "test/mock_bitrate_allocator.h" ]
Sebastian Jansson83267802018-04-19 08:27:19 +0200517 deps = [
518 ":bitrate_allocator",
Yves Gerey21cddff2018-10-30 21:12:42 +0100519 "../test:test_support",
Sebastian Jansson83267802018-04-19 08:27:19 +0200520 ]
521 }
Fredrik Solenberg2a877972017-12-15 16:42:15 +0100522 rtc_source_set("mock_call_interfaces") {
523 testonly = true
524
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100525 sources = [ "test/mock_audio_send_stream.h" ]
Fredrik Solenberg2a877972017-12-15 16:42:15 +0100526 deps = [
527 ":call_interfaces",
Yves Gerey21cddff2018-10-30 21:12:42 +0100528 "../test:test_support",
Fredrik Solenberg2a877972017-12-15 16:42:15 +0100529 ]
530 }
Erik Språng09708512018-03-14 15:16:50 +0100531
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200532 rtc_library("fake_network_pipe_unittests") {
Sebastian Jansson487c09b2019-02-21 16:21:51 +0100533 testonly = true
534
Artem Titov40a7a352018-10-15 15:25:34 +0200535 sources = [
Sebastian Jansson487c09b2019-02-21 16:21:51 +0100536 "fake_network_pipe_unittest.cc",
Sebastian Jansson2b08e312019-02-25 10:24:46 +0100537 "simulated_network_unittest.cc",
Artem Titov40a7a352018-10-15 15:25:34 +0200538 ]
Erik Språng09708512018-03-14 15:16:50 +0100539 deps = [
Erik Språng09708512018-03-14 15:16:50 +0100540 ":fake_network",
Artem Titove23b8a92018-08-16 15:51:07 +0200541 ":simulated_network",
Sebastian Jansson2b08e312019-02-25 10:24:46 +0100542 "../api/units:data_rate",
Erik Språng09708512018-03-14 15:16:50 +0100543 "../system_wrappers",
Yves Gerey21cddff2018-10-30 21:12:42 +0100544 "../test:test_support",
Erik Språng09708512018-03-14 15:16:50 +0100545 "//testing/gtest",
Sebastian Jansson2b08e312019-02-25 10:24:46 +0100546 "//third_party/abseil-cpp/absl/algorithm:container",
Erik Språng09708512018-03-14 15:16:50 +0100547 ]
Erik Språng09708512018-03-14 15:16:50 +0100548 }
Peter Boström02083222016-06-14 12:52:54 +0200549}