blob: c509acedbbd9732a5db72a8226c985175480693f [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",
solenberg3ebbcb52017-01-31 03:58:40 -080023 "syncable.cc",
24 "syncable.h",
ossuf515ab82016-12-07 04:52:58 -080025 ]
Dan Minor9c686132018-01-15 10:20:00 -050026 if (!build_with_mozilla) {
27 sources += [ "audio_send_stream.cc" ]
28 }
kjellander2f1a5552017-02-27 15:57:45 -080029 deps = [
nissed76b7b22017-06-01 04:02:35 -070030 ":rtp_interfaces",
aleloi440b6d92017-08-22 05:43:23 -070031 ":video_stream_api",
kjellander2f1a5552017-02-27 15:57:45 -080032 "..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +010033 "../:typedefs",
Ying Wang3b790f32018-01-19 17:58:57 +010034 "../api:fec_controller_api",
hbos8d609f62017-04-10 07:39:05 -070035 "../api:libjingle_peerconnection_api",
kwiberg84f6a3f2017-09-05 08:43:13 -070036 "../api:optional",
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",
Paulina Hensman11b34f42018-04-09 14:24:52 +020040 "../modules/audio_device:audio_device",
41 "../modules/audio_processing:audio_processing",
Ivo Creusen56d46092017-11-24 17:29:59 +010042 "../modules/audio_processing:audio_processing_statistics",
Jonas Olssonabbe8412018-04-03 13:40:05 +020043 "../rtc_base:audio_format_to_string",
ehmaldonadof6a861a2017-07-19 10:40:47 -070044 "../rtc_base:rtc_base",
45 "../rtc_base:rtc_base_approved",
kjellander2f1a5552017-02-27 15:57:45 -080046 ]
ossuf515ab82016-12-07 04:52:58 -080047}
48
nissed76b7b22017-06-01 04:02:35 -070049# TODO(nisse): These RTP targets should be moved elsewhere
eladalone2173d92017-07-28 10:05:45 -070050# when interfaces have stabilized. See also TODO for |mock_rtp_interfaces|.
nissed76b7b22017-06-01 04:02:35 -070051rtc_source_set("rtp_interfaces") {
52 sources = [
Sebastian Janssonfc8d26b2018-02-21 09:52:06 +010053 "bitrate_constraints.h",
eladalona52722f2017-06-26 11:23:54 -070054 "rtcp_packet_sink_interface.h",
Stefan Holmer1acbd682017-09-01 15:29:28 +020055 "rtp_config.cc",
56 "rtp_config.h",
nissed76b7b22017-06-01 04:02:35 -070057 "rtp_packet_sink_interface.h",
nisse0f15f922017-06-21 01:05:22 -070058 "rtp_stream_receiver_controller_interface.h",
nissed76b7b22017-06-01 04:02:35 -070059 "rtp_transport_controller_send_interface.h",
60 ]
eladalona52722f2017-06-26 11:23:54 -070061 deps = [
kwiberg529662a2017-09-04 05:43:17 -070062 "../api:array_view",
Sebastian Janssonfc8d26b2018-02-21 09:52:06 +010063 "../api:optional",
Niels Möller0c4f7be2018-05-07 14:01:37 +020064 "../api/transport:bitrate_settings",
ehmaldonadof6a861a2017-07-19 10:40:47 -070065 "../rtc_base:rtc_base_approved",
eladalona52722f2017-06-26 11:23:54 -070066 ]
nissed76b7b22017-06-01 04:02:35 -070067}
68
69rtc_source_set("rtp_receiver") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000070 visibility = [ "*" ]
nissed76b7b22017-06-01 04:02:35 -070071 sources = [
eladalona52722f2017-06-26 11:23:54 -070072 "rtcp_demuxer.cc",
73 "rtcp_demuxer.h",
nissed76b7b22017-06-01 04:02:35 -070074 "rtp_demuxer.cc",
75 "rtp_demuxer.h",
eladalona52722f2017-06-26 11:23:54 -070076 "rtp_rtcp_demuxer_helper.cc",
77 "rtp_rtcp_demuxer_helper.h",
nisse0f15f922017-06-21 01:05:22 -070078 "rtp_stream_receiver_controller.cc",
79 "rtp_stream_receiver_controller.h",
nissed76b7b22017-06-01 04:02:35 -070080 "rtx_receive_stream.cc",
81 "rtx_receive_stream.h",
Steve Antonb3329172017-08-17 15:23:51 -070082 "ssrc_binding_observer.h",
nissed76b7b22017-06-01 04:02:35 -070083 ]
84 deps = [
85 ":rtp_interfaces",
eladalona52722f2017-06-26 11:23:54 -070086 "..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -070087 "../api:array_view",
Patrik Höglund3e113432017-12-15 14:40:10 +010088 "../api:libjingle_peerconnection_api",
kwiberg84f6a3f2017-09-05 08:43:13 -070089 "../api:optional",
nissed76b7b22017-06-01 04:02:35 -070090 "../modules/rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +010091 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010092 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -070093 "../rtc_base:rtc_base_approved",
nissed76b7b22017-06-01 04:02:35 -070094 ]
95}
96
97rtc_source_set("rtp_sender") {
98 sources = [
99 "rtp_transport_controller_send.cc",
100 "rtp_transport_controller_send.h",
101 ]
102 deps = [
Sebastian Jansson97f61ea2018-02-21 13:01:55 +0100103 ":bitrate_configurator",
nissed76b7b22017-06-01 04:02:35 -0700104 ":rtp_interfaces",
sprangdb2a9fc2017-08-09 06:42:32 -0700105 "..:webrtc_common",
Sebastian Janssonc6c44262018-05-09 10:33:39 +0200106 "../api/transport:network_control",
nissed76b7b22017-06-01 04:02:35 -0700107 "../modules/congestion_controller",
Sebastian Jansson19bea512018-03-13 19:07:46 +0100108 "../modules/congestion_controller/rtp:congestion_controller",
Niels Möllerfd6c0912017-10-31 10:19:10 +0100109 "../modules/pacing",
Sebastian Janssonc33c0fc2018-02-22 11:10:18 +0100110 "../modules/utility",
Sebastian Jansson91bb6672018-02-21 13:02:51 +0100111 "../rtc_base:rtc_base",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700112 "../rtc_base:rtc_base_approved",
Sebastian Janssone6256052018-05-04 14:08:15 +0200113 "../rtc_base:rtc_task_queue",
Sebastian Jansson19bea512018-03-13 19:07:46 +0100114 "../system_wrappers:field_trial_api",
nissed76b7b22017-06-01 04:02:35 -0700115 ]
116}
117
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100118rtc_source_set("bitrate_configurator") {
119 sources = [
120 "rtp_bitrate_configurator.cc",
121 "rtp_bitrate_configurator.h",
122 ]
123 deps = [
124 ":rtp_interfaces",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200125 "../api/transport:bitrate_settings",
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100126 "../rtc_base:checks",
127 "../rtc_base:rtc_base_approved",
128 ]
129}
130
Mirko Bonadei245660a2017-10-10 14:38:11 +0200131rtc_source_set("bitrate_allocator") {
Peter Boström5c389d32015-09-25 13:58:30 +0200132 sources = [
mflodman0e7e2592015-11-12 21:02:42 -0800133 "bitrate_allocator.cc",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200134 "bitrate_allocator.h",
135 ]
136 deps = [
137 "../modules/bitrate_controller",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100138 "../rtc_base:checks",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200139 "../rtc_base:rtc_base_approved",
140 "../rtc_base:sequenced_task_checker",
141 "../system_wrappers",
Ying Wanga646d302018-03-02 17:04:11 +0100142 "../system_wrappers:field_trial_api",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100143 "../system_wrappers:metrics_api",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200144 ]
145 if (!build_with_chromium && is_clang) {
146 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
147 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
148 }
149}
150
151rtc_static_library("call") {
152 sources = [
Peter Boström5c389d32015-09-25 13:58:30 +0200153 "call.cc",
zhihuang38ede132017-06-15 12:52:32 -0700154 "callfactory.cc",
155 "callfactory.h",
Erik Språng09708512018-03-14 15:16:50 +0100156 "degraded_call.cc",
157 "degraded_call.h",
brandtr7250b392016-12-19 01:13:46 -0800158 "flexfec_receive_stream_impl.cc",
159 "flexfec_receive_stream_impl.h",
Sebastian Janssonb34556e2018-03-21 14:38:32 +0100160 "receive_time_calculator.cc",
161 "receive_time_calculator.h",
Peter Boström5c389d32015-09-25 13:58:30 +0200162 ]
163
kjellandere40a7ee2016-10-16 23:56:12 -0700164 if (!build_with_chromium && is_clang) {
165 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700166 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström5c389d32015-09-25 13:58:30 +0200167 }
168
169 deps = [
Mirko Bonadei245660a2017-10-10 14:38:11 +0200170 ":bitrate_allocator",
ossuf515ab82016-12-07 04:52:58 -0800171 ":call_interfaces",
Erik Språng09708512018-03-14 15:16:50 +0100172 ":fake_network",
nissed76b7b22017-06-01 04:02:35 -0700173 ":rtp_interfaces",
174 ":rtp_receiver",
175 ":rtp_sender",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200176 ":video_stream_api",
Peter Boström5c389d32015-09-25 13:58:30 +0200177 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100178 "../api:callfactory_api",
kwiberg84f6a3f2017-09-05 08:43:13 -0700179 "../api:optional",
aleloia8eb7562016-11-28 07:02:13 -0800180 "../api:transport_api",
Sebastian Janssonc6c44262018-05-09 10:33:39 +0200181 "../api/transport:network_control",
katrielc14897d02016-06-03 13:14:28 -0700182 "../audio",
Qingsi Wang970b0882018-02-01 11:04:46 -0800183 "../logging:rtc_event_audio",
kjellander2f1a5552017-02-27 15:57:45 -0800184 "../logging:rtc_event_log_api",
Qingsi Wang970b0882018-02-01 11:04:46 -0800185 "../logging:rtc_event_rtp_rtcp",
186 "../logging:rtc_event_video",
187 "../logging:rtc_stream_config",
kjellander2f1a5552017-02-27 15:57:45 -0800188 "../modules/bitrate_controller",
Stefan Holmer80e12072016-02-23 13:30:42 +0100189 "../modules/congestion_controller",
kjellander2f1a5552017-02-27 15:57:45 -0800190 "../modules/pacing",
Peter Boström5c389d32015-09-25 13:58:30 +0200191 "../modules/rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100192 "../modules/rtp_rtcp:rtp_rtcp_format",
kjellander2f1a5552017-02-27 15:57:45 -0800193 "../modules/utility",
Ying Wang3b790f32018-01-19 17:58:57 +0100194 "../modules/video_coding:video_coding",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100195 "../rtc_base:checks",
Sebastian Jansson45087cd2018-03-01 15:56:57 +0100196 "../rtc_base:rate_limiter",
mbonadei95c8f652017-08-27 23:40:10 -0700197 "../rtc_base:rtc_base_approved",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700198 "../rtc_base:rtc_task_queue",
Sebastian Jansson19704ec2018-03-12 15:59:12 +0100199 "../rtc_base:safe_minmax",
eladalonf3f5c0e2017-08-18 02:47:08 -0700200 "../rtc_base:sequenced_task_checker",
Karl Wiberg2b857922018-03-23 14:53:54 +0100201 "../rtc_base/synchronization:rw_lock_wrapper",
Peter Boström5c389d32015-09-25 13:58:30 +0200202 "../system_wrappers",
Erik Språng09708512018-03-14 15:16:50 +0100203 "../system_wrappers:field_trial_api",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100204 "../system_wrappers:metrics_api",
katrielc14897d02016-06-03 13:14:28 -0700205 "../video",
Peter Boström5c389d32015-09-25 13:58:30 +0200206 ]
207}
Peter Boström02083222016-06-14 12:52:54 +0200208
aleloi440b6d92017-08-22 05:43:23 -0700209rtc_source_set("video_stream_api") {
210 sources = [
Stefan Holmer1acbd682017-09-01 15:29:28 +0200211 "video_config.h",
aleloi440b6d92017-08-22 05:43:23 -0700212 "video_receive_stream.cc",
213 "video_receive_stream.h",
214 "video_send_stream.cc",
215 "video_send_stream.h",
216 ]
217 deps = [
Stefan Holmer1acbd682017-09-01 15:29:28 +0200218 ":rtp_interfaces",
Patrik Höglund9e194032018-01-04 15:58:20 +0100219 "../:typedefs",
aleloi440b6d92017-08-22 05:43:23 -0700220 "../:webrtc_common",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200221 "../api:libjingle_peerconnection_api",
kwiberg84f6a3f2017-09-05 08:43:13 -0700222 "../api:optional",
aleloi440b6d92017-08-22 05:43:23 -0700223 "../api:transport_api",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200224 "../api/video:video_frame",
Niels Möller88614b02018-03-27 16:39:01 +0200225 "../api/video_codecs:video_codecs_api",
aleloi440b6d92017-08-22 05:43:23 -0700226 "../common_video:common_video",
Patrik Höglund3e113432017-12-15 14:40:10 +0100227 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglund9e194032018-01-04 15:58:20 +0100228 "../rtc_base:checks",
aleloi440b6d92017-08-22 05:43:23 -0700229 "../rtc_base:rtc_base_approved",
230 ]
231}
232
Erik Språng09708512018-03-14 15:16:50 +0100233rtc_source_set("fake_network") {
234 sources = [
235 "fake_network_pipe.cc",
236 "fake_network_pipe.h",
237 ]
238 deps = [
239 ":call_interfaces",
240 "..:typedefs",
241 "..:webrtc_common",
242 "../api:transport_api",
243 "../modules:module_api",
Erik Språng09708512018-03-14 15:16:50 +0100244 "../rtc_base:rtc_base_approved",
245 "../rtc_base:sequenced_task_checker",
246 "../system_wrappers",
247 ]
248
249 if (!build_with_chromium && is_clang) {
250 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
251 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
252 }
253}
254
Peter Boström02083222016-06-14 12:52:54 +0200255if (rtc_include_tests) {
ehmaldonado38a21322016-09-02 04:10:34 -0700256 rtc_source_set("call_tests") {
Peter Boström02083222016-06-14 12:52:54 +0200257 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700258
Peter Boström02083222016-06-14 12:52:54 +0200259 sources = [
260 "bitrate_allocator_unittest.cc",
261 "bitrate_estimator_tests.cc",
262 "call_unittest.cc",
brandtr76648da2016-10-20 04:54:48 -0700263 "flexfec_receive_stream_unittest.cc",
Sebastian Janssonb34556e2018-03-21 14:38:32 +0100264 "receive_time_calculator_unittest.cc",
eladalona52722f2017-06-26 11:23:54 -0700265 "rtcp_demuxer_unittest.cc",
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100266 "rtp_bitrate_configurator_unittest.cc",
eladalon760a0762017-05-31 09:12:25 -0700267 "rtp_demuxer_unittest.cc",
eladalona52722f2017-06-26 11:23:54 -0700268 "rtp_rtcp_demuxer_helper_unittest.cc",
nisseeed52bf2017-05-19 06:15:19 -0700269 "rtx_receive_stream_unittest.cc",
Peter Boström02083222016-06-14 12:52:54 +0200270 ]
271 deps = [
Mirko Bonadei245660a2017-10-10 14:38:11 +0200272 ":bitrate_allocator",
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100273 ":bitrate_configurator",
Peter Boström02083222016-06-14 12:52:54 +0200274 ":call",
Mirko Bonadeia0e1a552017-12-04 10:50:51 +0100275 ":call_interfaces",
eladalone2173d92017-07-28 10:05:45 -0700276 ":mock_rtp_interfaces",
nissed76b7b22017-06-01 04:02:35 -0700277 ":rtp_interfaces",
278 ":rtp_receiver",
279 ":rtp_sender",
eladalona52722f2017-06-26 11:23:54 -0700280 "..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -0700281 "../api:array_view",
Patrik Höglund3e113432017-12-15 14:40:10 +0100282 "../api:libjingle_peerconnection_api",
ossuc3d4b482017-05-23 06:07:11 -0700283 "../api:mock_audio_mixer",
Karl Wibergf3850f62017-11-02 13:04:41 +0100284 "../api/audio_codecs:builtin_audio_decoder_factory",
Fredrik Solenberg8f5787a2018-01-11 13:52:30 +0100285 "../audio:audio",
kjellander2f1a5552017-02-27 15:57:45 -0800286 "../logging:rtc_event_log_api",
Qingsi Wang970b0882018-02-01 11:04:46 -0800287 "../logging:rtc_event_log_impl_base",
aleloidd310712016-11-17 06:28:59 -0800288 "../modules/audio_device:mock_audio_device",
aleloi10111bc2016-11-17 06:48:48 -0800289 "../modules/audio_mixer",
Mirko Bonadei03d6f2f2017-12-05 15:33:16 +0100290 "../modules/audio_mixer:audio_mixer_impl",
Patrik Höglund62139292017-12-19 16:44:45 +0100291 "../modules/audio_processing:mocks",
kjellander2f1a5552017-02-27 15:57:45 -0800292 "../modules/bitrate_controller",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200293 "../modules/congestion_controller",
kjellander2f1a5552017-02-27 15:57:45 -0800294 "../modules/pacing",
mbonadei334f9e62017-09-04 04:57:11 -0700295 "../modules/pacing:mock_paced_sender",
kjellander2f1a5552017-02-27 15:57:45 -0800296 "../modules/rtp_rtcp",
danilchap2d9d21f2017-05-10 08:41:13 -0700297 "../modules/rtp_rtcp:mock_rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100298 "../modules/rtp_rtcp:rtp_rtcp_format",
mbonadei5166e542017-08-03 05:57:11 -0700299 "../modules/utility:mock_process_thread",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100300 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700301 "../rtc_base:rtc_base_approved",
kjellander2f1a5552017-02-27 15:57:45 -0800302 "../system_wrappers",
kwiberg37e99fd2017-04-10 05:15:48 -0700303 "../test:audio_codec_mocks",
kjellander2f1a5552017-02-27 15:57:45 -0800304 "../test:direct_transport",
aleloi10111bc2016-11-17 06:48:48 -0800305 "../test:test_common",
kjellander2f1a5552017-02-27 15:57:45 -0800306 "../test:test_support",
307 "../test:video_test_common",
Peter Boström02083222016-06-14 12:52:54 +0200308 "//testing/gtest",
309 ]
kjellandere40a7ee2016-10-16 23:56:12 -0700310 if (!build_with_chromium && is_clang) {
311 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700312 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström02083222016-06-14 12:52:54 +0200313 }
314 }
ehmaldonado021eef32017-01-05 07:09:50 -0800315
316 rtc_source_set("call_perf_tests") {
317 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700318
ehmaldonado021eef32017-01-05 07:09:50 -0800319 sources = [
320 "call_perf_tests.cc",
321 "rampup_tests.cc",
322 "rampup_tests.h",
323 ]
324 deps = [
kjellander2f1a5552017-02-27 15:57:45 -0800325 ":call_interfaces",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200326 ":video_stream_api",
kjellander2f1a5552017-02-27 15:57:45 -0800327 "..:webrtc_common",
ossueb1fde42017-05-02 06:46:30 -0700328 "../api/audio_codecs:builtin_audio_encoder_factory",
Erik Språngef75ebe2018-05-15 15:18:36 +0200329 "../api/video:video_bitrate_allocation",
Niels Möller0a8f4352018-05-18 11:37:23 +0200330 "../api/video_codecs:video_codecs_api",
kjellander2f1a5552017-02-27 15:57:45 -0800331 "../logging:rtc_event_log_api",
332 "../modules/audio_coding",
Artem Titov3faa8322018-03-07 14:44:00 +0100333 "../modules/audio_device",
Paulina Hensman7bd79a02018-03-15 12:44:12 +0100334 "../modules/audio_device:audio_device_impl",
kjellander2f1a5552017-02-27 15:57:45 -0800335 "../modules/audio_mixer:audio_mixer_impl",
336 "../modules/rtp_rtcp",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100337 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700338 "../rtc_base:rtc_base_approved",
kjellander2f1a5552017-02-27 15:57:45 -0800339 "../system_wrappers",
340 "../system_wrappers:metrics_default",
Ilya Nikolaevskiy2ffe3e82018-01-17 19:57:24 +0000341 "../system_wrappers:runtime_enabled_features_default",
kjellander2f1a5552017-02-27 15:57:45 -0800342 "../test:direct_transport",
jianjun.zhuc0247402017-07-11 06:20:45 -0700343 "../test:field_trial",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100344 "../test:fileutils",
Edward Lemure66572b2018-01-05 15:34:09 +0100345 "../test:perf_test",
jianjun.zhuc0247402017-07-11 06:20:45 -0700346 "../test:test_common",
kjellander2f1a5552017-02-27 15:57:45 -0800347 "../test:test_support",
348 "../test:video_test_common",
349 "../video",
ehmaldonado021eef32017-01-05 07:09:50 -0800350 "//testing/gtest",
ehmaldonado021eef32017-01-05 07:09:50 -0800351 ]
352 if (!build_with_chromium && is_clang) {
353 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
354 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
355 }
356 }
eladalone2173d92017-07-28 10:05:45 -0700357
358 # TODO(eladalon): This should be moved, as with the TODO for |rtp_interfaces|.
359 rtc_source_set("mock_rtp_interfaces") {
360 testonly = true
361
362 sources = [
363 "test/mock_rtp_packet_sink_interface.h",
Sebastian Jansson8f83b422018-02-21 13:07:13 +0100364 "test/mock_rtp_transport_controller_send.h",
eladalone2173d92017-07-28 10:05:45 -0700365 ]
366 deps = [
367 ":rtp_interfaces",
Sebastian Jansson35dd6cd2018-02-21 17:30:36 +0100368 "../modules/congestion_controller",
369 "../modules/pacing",
370 "../rtc_base:rate_limiter",
371 "../rtc_base:rtc_base",
eladalone2173d92017-07-28 10:05:45 -0700372 "../test:test_support",
eladalone2173d92017-07-28 10:05:45 -0700373 ]
374 }
Sebastian Jansson83267802018-04-19 08:27:19 +0200375 rtc_source_set("mock_bitrate_allocator") {
376 testonly = true
Fredrik Solenberg2a877972017-12-15 16:42:15 +0100377
Sebastian Jansson83267802018-04-19 08:27:19 +0200378 sources = [
379 "test/mock_bitrate_allocator.h",
380 ]
381 deps = [
382 ":bitrate_allocator",
383 "//test:test_support",
384 ]
385 }
Fredrik Solenberg2a877972017-12-15 16:42:15 +0100386 rtc_source_set("mock_call_interfaces") {
387 testonly = true
388
389 sources = [
390 "test/mock_audio_send_stream.h",
391 ]
392 deps = [
393 ":call_interfaces",
394 "//test:test_support",
395 ]
396 }
Erik Språng09708512018-03-14 15:16:50 +0100397
398 rtc_test("fake_network_unittests") {
399 deps = [
400 ":call_interfaces",
401 ":fake_network",
402 "../modules/rtp_rtcp",
403 "../rtc_base:rtc_base_approved",
404 "../system_wrappers",
405 "../test:test_common",
406 "../test:test_main",
407 "//testing/gtest",
408 ]
409 sources = [
410 "test/fake_network_pipe_unittest.cc",
411 ]
412 if (!build_with_chromium && is_clang) {
413 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
414 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
415 }
416 }
Peter Boström02083222016-06-14 12:52:54 +0200417}