blob: 3a16757cefa97952db0dbd467c8a49a81f005a91 [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",
Mirko Bonadeid9708072019-01-25 20:26:48 +010036 "../api:scoped_refptr",
kjellander2f1a5552017-02-27 15:57:45 -080037 "../api:transport_api",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +010038 "../api/audio:audio_mixer_api",
kjellander2f1a5552017-02-27 15:57:45 -080039 "../api/audio_codecs:audio_codecs_api",
Sebastian Janssoned50e6c2019-03-01 14:45:21 +010040 "../api/task_queue",
Sebastian Janssondfce03a2018-05-18 18:05:10 +020041 "../api/transport:network_control",
Paulina Hensman11b34f42018-04-09 14:24:52 +020042 "../modules/audio_device:audio_device",
Alessio Bazzicab768e882018-11-07 14:29:54 +000043 "../modules/audio_processing:api",
Paulina Hensman11b34f42018-04-09 14:24:52 +020044 "../modules/audio_processing:audio_processing",
Ivo Creusen56d46092017-11-24 17:29:59 +010045 "../modules/audio_processing:audio_processing_statistics",
Sebastian Janssoned50e6c2019-03-01 14:45:21 +010046 "../modules/utility:utility",
Jonas Olssonabbe8412018-04-03 13:40:05 +020047 "../rtc_base:audio_format_to_string",
Yves Gerey988cc082018-10-23 12:03:01 +020048 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -070049 "../rtc_base:rtc_base",
50 "../rtc_base:rtc_base_approved",
Sebastian Jansson12985412018-10-15 21:06:26 +020051 "../rtc_base/network:sent_packet",
Danil Chapovalovb9b146c2018-06-15 12:28:07 +020052 "//third_party/abseil-cpp/absl/types:optional",
kjellander2f1a5552017-02-27 15:57:45 -080053 ]
ossuf515ab82016-12-07 04:52:58 -080054}
55
nissed76b7b22017-06-01 04:02:35 -070056# TODO(nisse): These RTP targets should be moved elsewhere
eladalone2173d92017-07-28 10:05:45 -070057# when interfaces have stabilized. See also TODO for |mock_rtp_interfaces|.
nissed76b7b22017-06-01 04:02:35 -070058rtc_source_set("rtp_interfaces") {
Danil Chapovalov32fe3d12018-10-04 13:41:03 +020059 # Client code SHOULD NOT USE THIS TARGET, but for now it needs to be public
60 # because there exists client code that uses it.
61 # TODO(bugs.webrtc.org/9808): Move to private visibility as soon as that
62 # client code gets updated.
63 visibility = [ "*" ]
nissed76b7b22017-06-01 04:02:35 -070064 sources = [
eladalona52722f2017-06-26 11:23:54 -070065 "rtcp_packet_sink_interface.h",
Stefan Holmer1acbd682017-09-01 15:29:28 +020066 "rtp_config.cc",
67 "rtp_config.h",
nissed76b7b22017-06-01 04:02:35 -070068 "rtp_packet_sink_interface.h",
nisse0f15f922017-06-21 01:05:22 -070069 "rtp_stream_receiver_controller_interface.h",
nissed76b7b22017-06-01 04:02:35 -070070 "rtp_transport_controller_send_interface.h",
71 ]
eladalona52722f2017-06-26 11:23:54 -070072 deps = [
kwiberg529662a2017-09-04 05:43:17 -070073 "../api:array_view",
Stefan Holmer64be7fa2018-10-04 15:21:55 +020074 "../api:fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +020075 "../api:libjingle_peerconnection_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +020076 "../api/transport:bitrate_settings",
Stefan Holmerdbdb3a02018-07-17 16:03:46 +020077 "../logging:rtc_event_log_api",
78 "../modules/rtp_rtcp:rtp_rtcp_format",
ehmaldonadof6a861a2017-07-19 10:40:47 -070079 "../rtc_base:rtc_base_approved",
Danil Chapovalovb9b146c2018-06-15 12:28:07 +020080 "//third_party/abseil-cpp/absl/types:optional",
eladalona52722f2017-06-26 11:23:54 -070081 ]
nissed76b7b22017-06-01 04:02:35 -070082}
83
84rtc_source_set("rtp_receiver") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000085 visibility = [ "*" ]
nissed76b7b22017-06-01 04:02:35 -070086 sources = [
eladalona52722f2017-06-26 11:23:54 -070087 "rtcp_demuxer.cc",
88 "rtcp_demuxer.h",
nissed76b7b22017-06-01 04:02:35 -070089 "rtp_demuxer.cc",
90 "rtp_demuxer.h",
eladalona52722f2017-06-26 11:23:54 -070091 "rtp_rtcp_demuxer_helper.cc",
92 "rtp_rtcp_demuxer_helper.h",
nisse0f15f922017-06-21 01:05:22 -070093 "rtp_stream_receiver_controller.cc",
94 "rtp_stream_receiver_controller.h",
nissed76b7b22017-06-01 04:02:35 -070095 "rtx_receive_stream.cc",
96 "rtx_receive_stream.h",
Steve Antonb3329172017-08-17 15:23:51 -070097 "ssrc_binding_observer.h",
nissed76b7b22017-06-01 04:02:35 -070098 ]
99 deps = [
100 ":rtp_interfaces",
eladalona52722f2017-06-26 11:23:54 -0700101 "..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -0700102 "../api:array_view",
Patrik Höglund3e113432017-12-15 14:40:10 +0100103 "../api:libjingle_peerconnection_api",
nissed76b7b22017-06-01 04:02:35 -0700104 "../modules/rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100105 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100106 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700107 "../rtc_base:rtc_base_approved",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200108 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalovb9b146c2018-06-15 12:28:07 +0200109 "//third_party/abseil-cpp/absl/types:optional",
nissed76b7b22017-06-01 04:02:35 -0700110 ]
111}
112
113rtc_source_set("rtp_sender") {
114 sources = [
Stefan Holmerf7044682018-07-17 10:16:41 +0200115 "rtp_payload_params.cc",
116 "rtp_payload_params.h",
nissed76b7b22017-06-01 04:02:35 -0700117 "rtp_transport_controller_send.cc",
118 "rtp_transport_controller_send.h",
Stefan Holmer9416ef82018-07-19 10:34:38 +0200119 "rtp_video_sender.cc",
120 "rtp_video_sender.h",
121 "rtp_video_sender_interface.h",
nissed76b7b22017-06-01 04:02:35 -0700122 ]
123 deps = [
Sebastian Jansson97f61ea2018-02-21 13:01:55 +0100124 ":bitrate_configurator",
nissed76b7b22017-06-01 04:02:35 -0700125 ":rtp_interfaces",
sprangdb2a9fc2017-08-09 06:42:32 -0700126 "..:webrtc_common",
Stefan Holmer64be7fa2018-10-04 15:21:55 +0200127 "../api:fec_controller_api",
Stefan Holmerdbdb3a02018-07-17 16:03:46 +0200128 "../api:transport_api",
Niels Möller5fe95102019-03-04 16:49:25 +0100129 "../api/transport:field_trial_based_config",
Sebastian Jansson87609be2018-12-05 17:35:35 +0100130 "../api/transport:goog_cc",
Sebastian Janssonc6c44262018-05-09 10:33:39 +0200131 "../api/transport:network_control",
Yves Gerey3e707812018-11-28 16:47:49 +0100132 "../api/units:data_rate",
133 "../api/units:time_delta",
134 "../api/units:timestamp",
135 "../api/video:video_frame",
Stefan Holmera2f15332018-07-11 17:11:31 +0200136 "../api/video_codecs:video_codecs_api",
Stefan Holmerdbdb3a02018-07-17 16:03:46 +0200137 "../logging:rtc_event_log_api",
nissed76b7b22017-06-01 04:02:35 -0700138 "../modules/congestion_controller",
Sebastian Jansson87609be2018-12-05 17:35:35 +0100139 "../modules/congestion_controller/rtp:control_handler",
140 "../modules/congestion_controller/rtp:transport_feedback",
Niels Möllerfd6c0912017-10-31 10:19:10 +0100141 "../modules/pacing",
Stefan Holmera2f15332018-07-11 17:11:31 +0200142 "../modules/rtp_rtcp:rtp_rtcp",
143 "../modules/rtp_rtcp:rtp_rtcp_format",
144 "../modules/rtp_rtcp:rtp_video_header",
Sebastian Janssonc33c0fc2018-02-22 11:10:18 +0100145 "../modules/utility",
Yves Gerey3e707812018-11-28 16:47:49 +0100146 "../modules/video_coding:codec_globals_headers",
Stefan Holmera2f15332018-07-11 17:11:31 +0200147 "../modules/video_coding:video_codec_interface",
148 "../rtc_base:checks",
Stefan Holmerdbdb3a02018-07-17 16:03:46 +0200149 "../rtc_base:rate_limiter",
Sebastian Jansson91bb6672018-02-21 13:02:51 +0100150 "../rtc_base:rtc_base",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700151 "../rtc_base:rtc_base_approved",
Sebastian Janssone6256052018-05-04 14:08:15 +0200152 "../rtc_base:rtc_task_queue",
Sebastian Janssonecb68972019-01-18 10:30:54 +0100153 "../rtc_base/task_utils:repeating_task",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200154 "../system_wrappers:field_trial",
Yves Gerey3e707812018-11-28 16:47:49 +0100155 "//third_party/abseil-cpp/absl/container:inlined_vector",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200156 "//third_party/abseil-cpp/absl/memory",
Yves Gerey3e707812018-11-28 16:47:49 +0100157 "//third_party/abseil-cpp/absl/types:optional",
158 "//third_party/abseil-cpp/absl/types:variant",
nissed76b7b22017-06-01 04:02:35 -0700159 ]
160}
161
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100162rtc_source_set("bitrate_configurator") {
163 sources = [
164 "rtp_bitrate_configurator.cc",
165 "rtp_bitrate_configurator.h",
166 ]
167 deps = [
168 ":rtp_interfaces",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200169 "../api:libjingle_peerconnection_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200170 "../api/transport:bitrate_settings",
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100171 "../rtc_base:checks",
172 "../rtc_base:rtc_base_approved",
Yves Gerey3e707812018-11-28 16:47:49 +0100173 "//third_party/abseil-cpp/absl/types:optional",
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100174 ]
175}
176
Mirko Bonadei245660a2017-10-10 14:38:11 +0200177rtc_source_set("bitrate_allocator") {
Peter Boström5c389d32015-09-25 13:58:30 +0200178 sources = [
mflodman0e7e2592015-11-12 21:02:42 -0800179 "bitrate_allocator.cc",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200180 "bitrate_allocator.h",
181 ]
182 deps = [
Sebastian Jansson6736df12018-11-21 19:18:39 +0100183 "../api:bitrate_allocation",
Sebastian Jansson13e59032018-11-21 19:13:07 +0100184 "../api/units:data_rate",
185 "../api/units:time_delta",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200186 "../modules/bitrate_controller",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100187 "../rtc_base:checks",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200188 "../rtc_base:rtc_base_approved",
189 "../rtc_base:sequenced_task_checker",
190 "../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200191 "../system_wrappers:field_trial",
192 "../system_wrappers:metrics",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200193 ]
Mirko Bonadei245660a2017-10-10 14:38:11 +0200194}
195
196rtc_static_library("call") {
197 sources = [
Peter Boström5c389d32015-09-25 13:58:30 +0200198 "call.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800199 "call_factory.cc",
200 "call_factory.h",
Erik Språng09708512018-03-14 15:16:50 +0100201 "degraded_call.cc",
202 "degraded_call.h",
brandtr7250b392016-12-19 01:13:46 -0800203 "flexfec_receive_stream_impl.cc",
204 "flexfec_receive_stream_impl.h",
Sebastian Janssonb34556e2018-03-21 14:38:32 +0100205 "receive_time_calculator.cc",
206 "receive_time_calculator.h",
Peter Boström5c389d32015-09-25 13:58:30 +0200207 ]
208
Peter Boström5c389d32015-09-25 13:58:30 +0200209 deps = [
Mirko Bonadei245660a2017-10-10 14:38:11 +0200210 ":bitrate_allocator",
ossuf515ab82016-12-07 04:52:58 -0800211 ":call_interfaces",
Erik Språng09708512018-03-14 15:16:50 +0100212 ":fake_network",
nissed76b7b22017-06-01 04:02:35 -0700213 ":rtp_interfaces",
214 ":rtp_receiver",
215 ":rtp_sender",
Artem Titov3229d652018-08-17 13:00:54 +0200216 ":simulated_network",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200217 ":video_stream_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100218 "..:webrtc_common",
219 "../api:array_view",
Niels Möller8366e172018-02-14 12:20:13 +0100220 "../api:callfactory_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100221 "../api:fec_controller_api",
222 "../api:libjingle_peerconnection_api",
Artem Titov3229d652018-08-17 13:00:54 +0200223 "../api:simulated_network_api",
aleloia8eb7562016-11-28 07:02:13 -0800224 "../api:transport_api",
Sebastian Jansson74682c12019-03-01 11:50:20 +0100225 "../api/task_queue:global_task_queue_factory",
Sebastian Janssonc6c44262018-05-09 10:33:39 +0200226 "../api/transport:network_control",
Yves Gerey3e707812018-11-28 16:47:49 +0100227 "../api/units:time_delta",
228 "../api/video_codecs:video_codecs_api",
katrielc14897d02016-06-03 13:14:28 -0700229 "../audio",
Qingsi Wang970b0882018-02-01 11:04:46 -0800230 "../logging:rtc_event_audio",
kjellander2f1a5552017-02-27 15:57:45 -0800231 "../logging:rtc_event_log_api",
Qingsi Wang970b0882018-02-01 11:04:46 -0800232 "../logging:rtc_event_rtp_rtcp",
233 "../logging:rtc_event_video",
234 "../logging:rtc_stream_config",
Sebastian Jansson836fee12019-02-08 16:08:10 +0100235 "../modules:module_api",
kjellander2f1a5552017-02-27 15:57:45 -0800236 "../modules/bitrate_controller",
Stefan Holmer80e12072016-02-23 13:30:42 +0100237 "../modules/congestion_controller",
kjellander2f1a5552017-02-27 15:57:45 -0800238 "../modules/pacing",
Peter Boström5c389d32015-09-25 13:58:30 +0200239 "../modules/rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100240 "../modules/rtp_rtcp:rtp_rtcp_format",
kjellander2f1a5552017-02-27 15:57:45 -0800241 "../modules/utility",
Ying Wang3b790f32018-01-19 17:58:57 +0100242 "../modules/video_coding:video_coding",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100243 "../rtc_base:checks",
Sebastian Jansson45087cd2018-03-01 15:56:57 +0100244 "../rtc_base:rate_limiter",
mbonadei95c8f652017-08-27 23:40:10 -0700245 "../rtc_base:rtc_base_approved",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700246 "../rtc_base:rtc_task_queue",
Sebastian Jansson19704ec2018-03-12 15:59:12 +0100247 "../rtc_base:safe_minmax",
eladalonf3f5c0e2017-08-18 02:47:08 -0700248 "../rtc_base:sequenced_task_checker",
Christoffer Rodbro76ad1542018-10-12 11:15:09 +0200249 "../rtc_base/experiments:field_trial_parser",
Yves Gerey3e707812018-11-28 16:47:49 +0100250 "../rtc_base/network:sent_packet",
Karl Wiberg2b857922018-03-23 14:53:54 +0100251 "../rtc_base/synchronization:rw_lock_wrapper",
Peter Boström5c389d32015-09-25 13:58:30 +0200252 "../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200253 "../system_wrappers:field_trial",
254 "../system_wrappers:metrics",
katrielc14897d02016-06-03 13:14:28 -0700255 "../video",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200256 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalovb9b146c2018-06-15 12:28:07 +0200257 "//third_party/abseil-cpp/absl/types:optional",
Peter Boström5c389d32015-09-25 13:58:30 +0200258 ]
259}
Peter Boström02083222016-06-14 12:52:54 +0200260
aleloi440b6d92017-08-22 05:43:23 -0700261rtc_source_set("video_stream_api") {
262 sources = [
263 "video_receive_stream.cc",
264 "video_receive_stream.h",
265 "video_send_stream.cc",
266 "video_send_stream.h",
267 ]
268 deps = [
Stefan Holmer1acbd682017-09-01 15:29:28 +0200269 ":rtp_interfaces",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200270 "../api:libjingle_peerconnection_api",
aleloi440b6d92017-08-22 05:43:23 -0700271 "../api:transport_api",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200272 "../api/video:video_frame",
Niels Möller213618e2018-07-24 09:29:58 +0200273 "../api/video:video_stream_encoder",
Niels Möller88614b02018-03-27 16:39:01 +0200274 "../api/video_codecs:video_codecs_api",
aleloi440b6d92017-08-22 05:43:23 -0700275 "../common_video:common_video",
Patrik Höglund3e113432017-12-15 14:40:10 +0100276 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglund9e194032018-01-04 15:58:20 +0100277 "../rtc_base:checks",
aleloi440b6d92017-08-22 05:43:23 -0700278 "../rtc_base:rtc_base_approved",
Danil Chapovalovb9b146c2018-06-15 12:28:07 +0200279 "//third_party/abseil-cpp/absl/types:optional",
aleloi440b6d92017-08-22 05:43:23 -0700280 ]
281}
282
Sebastian Janssonf96b1ca2018-08-07 18:58:05 +0200283rtc_source_set("simulated_network") {
284 sources = [
285 "simulated_network.cc",
286 "simulated_network.h",
287 ]
288 deps = [
289 "../api:simulated_network_api",
Sebastian Jansson2cd3b4c2018-11-06 19:18:28 +0100290 "../api/units:data_rate",
291 "../api/units:data_size",
292 "../api/units:time_delta",
Sebastian Jansson2b08e312019-02-25 10:24:46 +0100293 "../api/units:timestamp",
Yves Gerey3e707812018-11-28 16:47:49 +0100294 "../rtc_base:checks",
Sebastian Janssonf96b1ca2018-08-07 18:58:05 +0200295 "../rtc_base:rtc_base_approved",
Sebastian Janssoneceea312019-01-31 11:50:04 +0100296 "../rtc_base:sequenced_task_checker",
Sebastian Janssonf96b1ca2018-08-07 18:58:05 +0200297 "//third_party/abseil-cpp/absl/memory",
298 "//third_party/abseil-cpp/absl/types:optional",
299 ]
300}
301
Artem Titov46c4e602018-08-17 14:26:54 +0200302rtc_source_set("simulated_packet_receiver") {
303 sources = [
304 "simulated_packet_receiver.h",
305 ]
306 deps = [
307 ":call_interfaces",
308 "../api:simulated_network_api",
Artem Titov46c4e602018-08-17 14:26:54 +0200309 ]
310}
311
Erik Språng09708512018-03-14 15:16:50 +0100312rtc_source_set("fake_network") {
313 sources = [
314 "fake_network_pipe.cc",
315 "fake_network_pipe.h",
316 ]
317 deps = [
318 ":call_interfaces",
Sebastian Janssonf96b1ca2018-08-07 18:58:05 +0200319 ":simulated_network",
Artem Titov46c4e602018-08-17 14:26:54 +0200320 ":simulated_packet_receiver",
Yves Gerey3e707812018-11-28 16:47:49 +0100321 "..:webrtc_common",
322 "../api:libjingle_peerconnection_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200323 "../api:simulated_network_api",
Erik Språng09708512018-03-14 15:16:50 +0100324 "../api:transport_api",
Sebastian Jansson71822862018-10-30 08:23:27 +0100325 "../modules/utility",
Yves Gerey3e707812018-11-28 16:47:49 +0100326 "../rtc_base:checks",
Erik Språng09708512018-03-14 15:16:50 +0100327 "../rtc_base:rtc_base_approved",
328 "../rtc_base:sequenced_task_checker",
329 "../system_wrappers",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200330 "//third_party/abseil-cpp/absl/memory",
Erik Språng09708512018-03-14 15:16:50 +0100331 ]
Erik Språng09708512018-03-14 15:16:50 +0100332}
333
Peter Boström02083222016-06-14 12:52:54 +0200334if (rtc_include_tests) {
ehmaldonado38a21322016-09-02 04:10:34 -0700335 rtc_source_set("call_tests") {
Peter Boström02083222016-06-14 12:52:54 +0200336 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700337
Peter Boström02083222016-06-14 12:52:54 +0200338 sources = [
339 "bitrate_allocator_unittest.cc",
340 "bitrate_estimator_tests.cc",
341 "call_unittest.cc",
brandtr76648da2016-10-20 04:54:48 -0700342 "flexfec_receive_stream_unittest.cc",
Sebastian Janssonb34556e2018-03-21 14:38:32 +0100343 "receive_time_calculator_unittest.cc",
eladalona52722f2017-06-26 11:23:54 -0700344 "rtcp_demuxer_unittest.cc",
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100345 "rtp_bitrate_configurator_unittest.cc",
eladalon760a0762017-05-31 09:12:25 -0700346 "rtp_demuxer_unittest.cc",
Stefan Holmerf7044682018-07-17 10:16:41 +0200347 "rtp_payload_params_unittest.cc",
eladalona52722f2017-06-26 11:23:54 -0700348 "rtp_rtcp_demuxer_helper_unittest.cc",
Stefan Holmer9416ef82018-07-19 10:34:38 +0200349 "rtp_video_sender_unittest.cc",
nisseeed52bf2017-05-19 06:15:19 -0700350 "rtx_receive_stream_unittest.cc",
Peter Boström02083222016-06-14 12:52:54 +0200351 ]
352 deps = [
Mirko Bonadei245660a2017-10-10 14:38:11 +0200353 ":bitrate_allocator",
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100354 ":bitrate_configurator",
Peter Boström02083222016-06-14 12:52:54 +0200355 ":call",
Mirko Bonadeia0e1a552017-12-04 10:50:51 +0100356 ":call_interfaces",
eladalone2173d92017-07-28 10:05:45 -0700357 ":mock_rtp_interfaces",
nissed76b7b22017-06-01 04:02:35 -0700358 ":rtp_interfaces",
359 ":rtp_receiver",
360 ":rtp_sender",
Artem Titovdd2eebe2018-08-20 13:27:45 +0200361 ":simulated_network",
Yves Gerey3e707812018-11-28 16:47:49 +0100362 "../:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -0700363 "../api:array_view",
Piotr (Peter) Slatalacc8e8bb2018-11-15 08:26:19 -0800364 "../api:fake_media_transport",
Piotr (Peter) Slatala179a3922018-11-16 09:57:58 -0800365 "../api:fake_media_transport",
Patrik Höglund3e113432017-12-15 14:40:10 +0100366 "../api:libjingle_peerconnection_api",
ossuc3d4b482017-05-23 06:07:11 -0700367 "../api:mock_audio_mixer",
Yves Gerey3e707812018-11-28 16:47:49 +0100368 "../api:transport_api",
Karl Wibergf3850f62017-11-02 13:04:41 +0100369 "../api/audio_codecs:builtin_audio_decoder_factory",
Sebastian Janssoned50e6c2019-03-01 14:45:21 +0100370 "../api/task_queue:global_task_queue_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100371 "../api/video:video_frame",
Fredrik Solenberg8f5787a2018-01-11 13:52:30 +0100372 "../audio:audio",
kjellander2f1a5552017-02-27 15:57:45 -0800373 "../logging:rtc_event_log_api",
Qingsi Wang970b0882018-02-01 11:04:46 -0800374 "../logging:rtc_event_log_impl_base",
aleloidd310712016-11-17 06:28:59 -0800375 "../modules/audio_device:mock_audio_device",
aleloi10111bc2016-11-17 06:48:48 -0800376 "../modules/audio_mixer",
Mirko Bonadei03d6f2f2017-12-05 15:33:16 +0100377 "../modules/audio_mixer:audio_mixer_impl",
Patrik Höglund62139292017-12-19 16:44:45 +0100378 "../modules/audio_processing:mocks",
kjellander2f1a5552017-02-27 15:57:45 -0800379 "../modules/bitrate_controller",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200380 "../modules/congestion_controller",
kjellander2f1a5552017-02-27 15:57:45 -0800381 "../modules/pacing",
mbonadei334f9e62017-09-04 04:57:11 -0700382 "../modules/pacing:mock_paced_sender",
kjellander2f1a5552017-02-27 15:57:45 -0800383 "../modules/rtp_rtcp",
danilchap2d9d21f2017-05-10 08:41:13 -0700384 "../modules/rtp_rtcp:mock_rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100385 "../modules/rtp_rtcp:rtp_rtcp_format",
mbonadei5166e542017-08-03 05:57:11 -0700386 "../modules/utility:mock_process_thread",
Yves Gerey3e707812018-11-28 16:47:49 +0100387 "../modules/video_coding:codec_globals_headers",
Stefan Holmera2f15332018-07-11 17:11:31 +0200388 "../modules/video_coding:video_codec_interface",
Stefan Holmer64be7fa2018-10-04 15:21:55 +0200389 "../modules/video_coding:video_coding",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100390 "../rtc_base:checks",
Stefan Holmerdbdb3a02018-07-17 16:03:46 +0200391 "../rtc_base:rate_limiter",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700392 "../rtc_base:rtc_base_approved",
kjellander2f1a5552017-02-27 15:57:45 -0800393 "../system_wrappers",
kwiberg37e99fd2017-04-10 05:15:48 -0700394 "../test:audio_codec_mocks",
kjellander2f1a5552017-02-27 15:57:45 -0800395 "../test:direct_transport",
Ilya Nikolaevskiyb0588e62018-08-27 14:12:27 +0200396 "../test:fake_video_codecs",
Stefan Holmera2f15332018-07-11 17:11:31 +0200397 "../test:field_trial",
aleloi10111bc2016-11-17 06:48:48 -0800398 "../test:test_common",
kjellander2f1a5552017-02-27 15:57:45 -0800399 "../test:test_support",
400 "../test:video_test_common",
Stefan Holmerdbdb3a02018-07-17 16:03:46 +0200401 "../video:video",
Ilya Nikolaevskiyb0588e62018-08-27 14:12:27 +0200402 "//testing/gmock",
Peter Boström02083222016-06-14 12:52:54 +0200403 "//testing/gtest",
Yves Gerey3e707812018-11-28 16:47:49 +0100404 "//third_party/abseil-cpp/absl/container:inlined_vector",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200405 "//third_party/abseil-cpp/absl/memory",
Yves Gerey69807e82018-10-30 22:23:02 +0100406 "//third_party/abseil-cpp/absl/types:optional",
Peter Boström02083222016-06-14 12:52:54 +0200407 ]
Peter Boström02083222016-06-14 12:52:54 +0200408 }
ehmaldonado021eef32017-01-05 07:09:50 -0800409
410 rtc_source_set("call_perf_tests") {
411 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700412
ehmaldonado021eef32017-01-05 07:09:50 -0800413 sources = [
414 "call_perf_tests.cc",
415 "rampup_tests.cc",
416 "rampup_tests.h",
417 ]
418 deps = [
kjellander2f1a5552017-02-27 15:57:45 -0800419 ":call_interfaces",
Artem Titov4e199e92018-08-20 13:30:39 +0200420 ":simulated_network",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200421 ":video_stream_api",
Artem Titov46c4e602018-08-17 14:26:54 +0200422 "../api:simulated_network_api",
ossueb1fde42017-05-02 06:46:30 -0700423 "../api/audio_codecs:builtin_audio_encoder_factory",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800424 "../api/video:builtin_video_bitrate_allocator_factory",
Erik Språngef75ebe2018-05-15 15:18:36 +0200425 "../api/video:video_bitrate_allocation",
Niels Möller0a8f4352018-05-18 11:37:23 +0200426 "../api/video_codecs:video_codecs_api",
kjellander2f1a5552017-02-27 15:57:45 -0800427 "../logging:rtc_event_log_api",
Sebastian Janssonf5e767d2018-10-15 13:24:31 +0200428 "../logging:rtc_event_log_impl_output",
kjellander2f1a5552017-02-27 15:57:45 -0800429 "../modules/audio_coding",
Artem Titov3faa8322018-03-07 14:44:00 +0100430 "../modules/audio_device",
Paulina Hensman7bd79a02018-03-15 12:44:12 +0100431 "../modules/audio_device:audio_device_impl",
kjellander2f1a5552017-02-27 15:57:45 -0800432 "../modules/audio_mixer:audio_mixer_impl",
433 "../modules/rtp_rtcp",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100434 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700435 "../rtc_base:rtc_base_approved",
kjellander2f1a5552017-02-27 15:57:45 -0800436 "../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200437 "../system_wrappers:metrics",
kjellander2f1a5552017-02-27 15:57:45 -0800438 "../test:direct_transport",
Ilya Nikolaevskiyb0588e62018-08-27 14:12:27 +0200439 "../test:fake_video_codecs",
jianjun.zhuc0247402017-07-11 06:20:45 -0700440 "../test:field_trial",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100441 "../test:fileutils",
Edward Lemure66572b2018-01-05 15:34:09 +0100442 "../test:perf_test",
jianjun.zhuc0247402017-07-11 06:20:45 -0700443 "../test:test_common",
kjellander2f1a5552017-02-27 15:57:45 -0800444 "../test:test_support",
445 "../test:video_test_common",
446 "../video",
ehmaldonado021eef32017-01-05 07:09:50 -0800447 "//testing/gtest",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200448 "//third_party/abseil-cpp/absl/memory",
ehmaldonado021eef32017-01-05 07:09:50 -0800449 ]
ehmaldonado021eef32017-01-05 07:09:50 -0800450 }
eladalone2173d92017-07-28 10:05:45 -0700451
452 # TODO(eladalon): This should be moved, as with the TODO for |rtp_interfaces|.
453 rtc_source_set("mock_rtp_interfaces") {
454 testonly = true
455
456 sources = [
457 "test/mock_rtp_packet_sink_interface.h",
Sebastian Jansson8f83b422018-02-21 13:07:13 +0100458 "test/mock_rtp_transport_controller_send.h",
eladalone2173d92017-07-28 10:05:45 -0700459 ]
460 deps = [
461 ":rtp_interfaces",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200462 "../api:libjingle_peerconnection_api",
Sebastian Jansson35dd6cd2018-02-21 17:30:36 +0100463 "../modules/congestion_controller",
464 "../modules/pacing",
465 "../rtc_base:rate_limiter",
466 "../rtc_base:rtc_base",
Sebastian Jansson12985412018-10-15 21:06:26 +0200467 "../rtc_base/network:sent_packet",
eladalone2173d92017-07-28 10:05:45 -0700468 "../test:test_support",
eladalone2173d92017-07-28 10:05:45 -0700469 ]
470 }
Sebastian Jansson83267802018-04-19 08:27:19 +0200471 rtc_source_set("mock_bitrate_allocator") {
472 testonly = true
Fredrik Solenberg2a877972017-12-15 16:42:15 +0100473
Sebastian Jansson83267802018-04-19 08:27:19 +0200474 sources = [
475 "test/mock_bitrate_allocator.h",
476 ]
477 deps = [
478 ":bitrate_allocator",
Yves Gerey21cddff2018-10-30 21:12:42 +0100479 "../test:test_support",
Sebastian Jansson83267802018-04-19 08:27:19 +0200480 ]
481 }
Fredrik Solenberg2a877972017-12-15 16:42:15 +0100482 rtc_source_set("mock_call_interfaces") {
483 testonly = true
484
485 sources = [
486 "test/mock_audio_send_stream.h",
487 ]
488 deps = [
489 ":call_interfaces",
Yves Gerey21cddff2018-10-30 21:12:42 +0100490 "../test:test_support",
Fredrik Solenberg2a877972017-12-15 16:42:15 +0100491 ]
492 }
Erik Språng09708512018-03-14 15:16:50 +0100493
Sebastian Jansson487c09b2019-02-21 16:21:51 +0100494 rtc_source_set("fake_network_pipe_unittests") {
495 testonly = true
496
Artem Titov40a7a352018-10-15 15:25:34 +0200497 sources = [
Sebastian Jansson487c09b2019-02-21 16:21:51 +0100498 "fake_network_pipe_unittest.cc",
Sebastian Jansson2b08e312019-02-25 10:24:46 +0100499 "simulated_network_unittest.cc",
Artem Titov40a7a352018-10-15 15:25:34 +0200500 ]
Erik Språng09708512018-03-14 15:16:50 +0100501 deps = [
Erik Språng09708512018-03-14 15:16:50 +0100502 ":fake_network",
Artem Titove23b8a92018-08-16 15:51:07 +0200503 ":simulated_network",
Sebastian Jansson2b08e312019-02-25 10:24:46 +0100504 "../api/units:data_rate",
Erik Språng09708512018-03-14 15:16:50 +0100505 "../system_wrappers",
Yves Gerey21cddff2018-10-30 21:12:42 +0100506 "../test:test_support",
Erik Språng09708512018-03-14 15:16:50 +0100507 "//testing/gtest",
Sebastian Jansson2b08e312019-02-25 10:24:46 +0100508 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton40d55332019-01-07 10:21:47 -0800509 "//third_party/abseil-cpp/absl/memory",
Erik Språng09708512018-03-14 15:16:50 +0100510 ]
Erik Språng09708512018-03-14 15:16:50 +0100511 }
Peter Boström02083222016-06-14 12:52:54 +0200512}