blob: 96941f409d2dbe5e4673b300740b66992bc4b224 [file] [log] [blame]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001# Copyright (c) 2014 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")
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000010
kjellanderb62dbbe2016-09-23 00:38:52 -070011rtc_static_library("video") {
kjellander@webrtc.org788f0582014-08-28 13:51:08 +000012 sources = [
Peter Boström7623ce42015-12-09 12:13:30 +010013 "call_stats.cc",
14 "call_stats.h",
mflodman15d83572016-10-06 08:35:11 -070015 "encoder_rtcp_feedback.cc",
16 "encoder_rtcp_feedback.h",
palmkvist349092b2016-12-13 02:45:57 -080017 "quality_threshold.cc",
18 "quality_threshold.h",
kjellander@webrtc.org788f0582014-08-28 13:51:08 +000019 "receive_statistics_proxy.cc",
20 "receive_statistics_proxy.h",
Peter Boström7623ce42015-12-09 12:13:30 +010021 "report_block_stats.cc",
22 "report_block_stats.h",
mflodman4cd27902016-08-05 06:28:45 -070023 "rtp_streams_synchronizer.cc",
24 "rtp_streams_synchronizer.h",
nisseb1f2ff92017-06-09 04:01:55 -070025 "rtp_video_stream_receiver.cc",
26 "rtp_video_stream_receiver.h",
asapersson35151f32016-05-02 23:44:01 -070027 "send_delay_stats.cc",
28 "send_delay_stats.h",
kjellander@webrtc.org788f0582014-08-28 13:51:08 +000029 "send_statistics_proxy.cc",
30 "send_statistics_proxy.h",
asapersson0e9d6d92016-05-23 06:07:55 -070031 "stats_counter.cc",
32 "stats_counter.h",
Peter Boström7623ce42015-12-09 12:13:30 +010033 "stream_synchronization.cc",
34 "stream_synchronization.h",
charujainbf6a45b2016-11-03 04:21:42 -070035 "transport_adapter.cc",
36 "transport_adapter.h",
Ilya Nikolaevskiy94150ee2018-05-23 11:53:19 +020037 "video_quality_observer.cc",
38 "video_quality_observer.h",
kjellander@webrtc.org788f0582014-08-28 13:51:08 +000039 "video_receive_stream.cc",
40 "video_receive_stream.h",
41 "video_send_stream.cc",
42 "video_send_stream.h",
Sebastian Jansson8e0b15b2018-04-18 19:19:22 +020043 "video_send_stream_impl.cc",
44 "video_send_stream_impl.h",
mflodmancfc8e3b2016-05-03 21:22:04 -070045 "video_stream_decoder.cc",
46 "video_stream_decoder.h",
kjellander@webrtc.org788f0582014-08-28 13:51:08 +000047 ]
48
kjellandere40a7ee2016-10-16 23:56:12 -070049 if (!build_with_chromium && is_clang) {
50 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070051 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander@webrtc.org788f0582014-08-28 13:51:08 +000052 }
53
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +000054 deps = [
55 "..:webrtc_common",
Ying Wang3b790f32018-01-19 17:58:57 +010056 "../api:fec_controller_api",
Patrik Höglundbe214a22018-01-04 12:14:35 +010057 "../api:libjingle_peerconnection_api",
aleloia8eb7562016-11-28 07:02:13 -080058 "../api:transport_api",
Jiawei Ou4206a0a2018-07-20 15:49:43 -070059 "../api/video:video_bitrate_allocator",
Niels Möllerc6ce9c52018-05-11 11:15:30 +020060 "../api/video:video_frame",
61 "../api/video:video_frame_i420",
Niels Möller0327c2d2018-05-21 14:09:31 +020062 "../api/video:video_stream_encoder",
Niels Möller213618e2018-07-24 09:29:58 +020063 "../api/video:video_stream_encoder_create",
ilnikd60d06a2017-04-05 03:02:20 -070064 "../api/video_codecs:video_codecs_api",
Mirko Bonadei245660a2017-10-10 14:38:11 +020065 "../call:bitrate_allocator",
mbonadei9087d492017-04-25 00:35:35 -070066 "../call:call_interfaces",
nissed76b7b22017-06-01 04:02:35 -070067 "../call:rtp_interfaces",
Stefan Holmera2f15332018-07-11 17:11:31 +020068 "../call:rtp_sender",
aleloi440b6d92017-08-22 05:43:23 -070069 "../call:video_stream_api",
Mirko Bonadeib5728d92017-12-06 07:51:33 +010070 "../modules/rtp_rtcp:rtp_rtcp_format",
philipel1a4746a2018-07-09 15:52:29 +020071 "../modules/rtp_rtcp:rtp_video_header",
Sergey Silkin86684962018-03-28 19:32:37 +020072 "../modules/video_coding:codec_globals_headers",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +020073 "../modules/video_coding:nack_module",
74 "../modules/video_coding:packet",
Patrik Höglund99175c62018-01-08 11:05:10 +010075 "../modules/video_coding:video_codec_interface",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010076 "../rtc_base:checks",
Stefan Holmerdbdb3a02018-07-17 16:03:46 +020077 "../rtc_base:rate_limiter",
Tommifef05002018-02-27 13:51:08 +010078 "../rtc_base:stringutils",
Sebastian Janssoncabe3832018-01-12 10:54:18 +010079 "../rtc_base/experiments:alr_experiment",
Åsa Perssona945aee2018-04-24 16:53:25 +020080 "../rtc_base/experiments:quality_scaling_experiment",
Karl Wiberg80ba3332018-02-05 10:33:35 +010081 "../rtc_base/system:fallthrough",
Mirko Bonadeia498ae82017-12-06 09:17:14 +010082 "../system_wrappers:field_trial_api",
83 "../system_wrappers:metrics_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +020084 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalovb9b146c2018-06-15 12:28:07 +020085 "//third_party/abseil-cpp/absl/types:optional",
nisseca5706d2017-09-11 02:32:16 -070086
87 # For RtxReceiveStream.
88 "../call:rtp_receiver",
Peter Boström2ee24392015-06-22 07:57:16 +020089 "../common_video",
skvladcc91d282016-10-03 18:31:22 -070090 "../logging:rtc_event_log_api",
mbonadei1140f972017-04-26 03:38:35 -070091 "../modules:module_api",
Peter Boström2ee24392015-06-22 07:57:16 +020092 "../modules/bitrate_controller",
sprangebbf8a82015-09-21 15:11:14 -070093 "../modules/pacing",
kjellander@webrtc.org7ffeab52016-02-26 22:46:09 +010094 "../modules/remote_bitrate_estimator",
Peter Boström2ee24392015-06-22 07:57:16 +020095 "../modules/rtp_rtcp",
96 "../modules/utility",
Peter Boström2ee24392015-06-22 07:57:16 +020097 "../modules/video_coding",
mbonadei9087d492017-04-25 00:35:35 -070098 "../modules/video_coding:video_coding_utility",
Peter Boström2ee24392015-06-22 07:57:16 +020099 "../modules/video_processing",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700100 "../rtc_base:rtc_base_approved",
101 "../rtc_base:rtc_numerics",
102 "../rtc_base:rtc_task_queue",
103 "../rtc_base:sequenced_task_checker",
104 "../rtc_base:weak_ptr",
Karl Wiberg76b7f512018-03-22 15:29:03 +0100105 "../rtc_base/time:timestamp_extrapolator",
kjellander8237abf2015-12-08 07:12:06 -0800106 "../system_wrappers",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000107 ]
Dan Minor9c686132018-01-15 10:20:00 -0500108
109 if (!build_with_mozilla) {
110 deps += [ "../media:rtc_media_base" ]
111 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000112}
Peter Boström02083222016-06-14 12:52:54 +0200113
philipel2fee4d62018-03-21 16:52:13 +0100114rtc_source_set("video_stream_decoder_impl") {
115 visibility = [ "*" ]
Anders Carlsson51e23ae2018-05-24 13:31:30 +0200116
philipel2fee4d62018-03-21 16:52:13 +0100117 sources = [
118 "video_stream_decoder_impl.cc",
119 "video_stream_decoder_impl.h",
120 ]
121
122 deps = [
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200123 "../api/video:encoded_frame",
124 "../api/video:video_frame",
125 "../api/video:video_stream_decoder",
philipel2fee4d62018-03-21 16:52:13 +0100126 "../api/video_codecs:video_codecs_api",
philipel97187112018-03-23 10:43:21 +0100127 "../modules/video_coding:video_coding",
philipel2fee4d62018-03-21 16:52:13 +0100128 "../rtc_base:rtc_base_approved",
philipel97187112018-03-23 10:43:21 +0100129 "../rtc_base:rtc_task_queue_api",
130 "../system_wrappers:system_wrappers",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200131 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalovb9b146c2018-06-15 12:28:07 +0200132 "//third_party/abseil-cpp/absl/types:optional",
philipel2fee4d62018-03-21 16:52:13 +0100133 ]
philipel2fee4d62018-03-21 16:52:13 +0100134}
135
Niels Möller213618e2018-07-24 09:29:58 +0200136rtc_source_set("video_stream_encoder_impl") {
137 visibility = [ "*" ]
138
139 # visibility = [ "../api/video:video_stream_encoder_create" ]
140 # In modules/video_coding, there's a dependency video_coding --> webrtc_vp8
141 allow_poison = [ "software_video_codecs" ] # TODO(bugs.webrtc.org/7925): Remove.
142 sources = [
143 "overuse_frame_detector.cc",
144 "overuse_frame_detector.h",
145 "video_stream_encoder.cc",
146 "video_stream_encoder.h",
147 ]
148
149 if (!build_with_chromium && is_clang) {
150 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
151 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
152 }
153
154 deps = [
155 "../api/video:video_bitrate_allocator",
156 "../api/video:video_frame",
157 "../api/video:video_frame_i420",
158 "../api/video:video_stream_encoder",
159 "../api/video_codecs:video_codecs_api",
160 "../common_video:common_video",
161 "../modules/video_coding",
162 "../modules/video_coding:video_coding_utility",
163 "../rtc_base:checks",
164 "../rtc_base:criticalsection",
165 "../rtc_base:logging",
166 "../rtc_base:macromagic",
167 "../rtc_base:rtc_base_approved",
168 "../rtc_base:rtc_event",
169 "../rtc_base:rtc_numerics",
170 "../rtc_base:rtc_task_queue",
171 "../rtc_base:sequenced_task_checker",
172 "../rtc_base:timeutils",
173 "../rtc_base/experiments:quality_scaling_experiment",
174 "../rtc_base/system:fallthrough",
175 "../system_wrappers:field_trial_api",
176 "//third_party/abseil-cpp/absl/types:optional",
177 ]
178}
179
Peter Boström02083222016-06-14 12:52:54 +0200180if (rtc_include_tests) {
Sebastian Jansson652dc912018-04-19 17:09:15 +0200181 rtc_source_set("video_mocks") {
182 testonly = true
183 sources = [
184 "test/mock_video_stream_encoder.h",
185 ]
186 deps = [
Niels Möller213618e2018-07-24 09:29:58 +0200187 "../api/video:video_stream_encoder",
Sebastian Jansson652dc912018-04-19 17:09:15 +0200188 "../test:test_support",
189 ]
190 }
kjellandera3cac052016-10-24 01:52:39 -0700191 rtc_source_set("video_quality_test") {
192 testonly = true
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200193
194 # Only targets in this file and api/ can depend on this.
195 visibility = [
196 ":*",
197 "../api:create_video_quality_test_fixture_api",
198 ]
kjellandera3cac052016-10-24 01:52:39 -0700199 sources = [
Sebastian Janssond4c5d632018-07-10 12:57:37 +0200200 "video_analyzer.cc",
201 "video_analyzer.h",
kjellandera3cac052016-10-24 01:52:39 -0700202 "video_quality_test.cc",
203 "video_quality_test.h",
204 ]
205 deps = [
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200206 "../api:fec_controller_api",
207 "../api:video_quality_test_fixture_api",
208 "../call:fake_network",
mbonadei9087d492017-04-25 00:35:35 -0700209 "../logging:rtc_event_log_api",
Qingsi Wang970b0882018-02-01 11:04:46 -0800210 "../logging:rtc_event_log_impl_output",
Mirko Bonadei5f99e652017-12-19 13:40:40 +0100211 "../media:rtc_audio_video",
Anders Carlssona114c882018-01-04 15:10:22 +0100212 "../media:rtc_internal_video_codecs",
mbonadei9087d492017-04-25 00:35:35 -0700213 "../modules/audio_mixer:audio_mixer_impl",
214 "../modules/rtp_rtcp",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200215 "../modules/video_coding:video_coding",
mbonadei9087d492017-04-25 00:35:35 -0700216 "../modules/video_coding:webrtc_h264",
Emircan Uysaler03e6ec92018-03-09 15:03:26 -0800217 "../modules/video_coding:webrtc_multiplex",
mbonadei9087d492017-04-25 00:35:35 -0700218 "../modules/video_coding:webrtc_vp8",
219 "../modules/video_coding:webrtc_vp9",
mbonadei95c8f652017-08-27 23:40:10 -0700220 "../rtc_base:rtc_base_approved",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700221 "../rtc_base:rtc_base_tests_utils",
kjellandera3cac052016-10-24 01:52:39 -0700222 "../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100223 "../test:fileutils",
Edward Lemure66572b2018-01-05 15:34:09 +0100224 "../test:perf_test",
Jianjun Zhu037f3e42017-08-15 21:48:37 +0800225 "../test:rtp_test_utils",
mbonadei9087d492017-04-25 00:35:35 -0700226 "../test:test_common",
jianjun.zhuc0247402017-07-11 06:20:45 -0700227 "../test:test_renderer",
mbonadei9087d492017-04-25 00:35:35 -0700228 "../test:test_support",
Edward Lemuraf8659a2017-09-27 14:46:24 +0200229 "../test:test_support_test_artifacts",
jianjun.zhuc0247402017-07-11 06:20:45 -0700230 "../test:video_test_common",
ilnik59cac992017-07-25 05:45:03 -0700231 "../test:video_test_support",
kjellandera3cac052016-10-24 01:52:39 -0700232 ]
kjellandera3cac052016-10-24 01:52:39 -0700233 if (!build_with_chromium && is_clang) {
234 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
235 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
236 }
237 }
238
ehmaldonado021eef32017-01-05 07:09:50 -0800239 rtc_source_set("video_full_stack_tests") {
240 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700241
ehmaldonado021eef32017-01-05 07:09:50 -0800242 sources = [
243 "full_stack_tests.cc",
244 ]
245 deps = [
246 ":video_quality_test",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700247 "../media:rtc_vp9_profile",
sprang89c4a7e2017-06-30 13:27:40 -0700248 "../modules/pacing:pacing",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700249 "../modules/video_coding:webrtc_vp9",
Sebastian Janssonf8518882018-05-31 14:52:59 +0200250 "../rtc_base:rtc_base_approved",
Sebastian Janssoncabe3832018-01-12 10:54:18 +0100251 "../rtc_base/experiments:alr_experiment",
mbonadei9087d492017-04-25 00:35:35 -0700252 "../test:field_trial",
jianjun.zhuc0247402017-07-11 06:20:45 -0700253 "../test:test_common",
mbonadei9087d492017-04-25 00:35:35 -0700254 "../test:test_support",
ehmaldonado021eef32017-01-05 07:09:50 -0800255 "//testing/gtest",
ehmaldonado021eef32017-01-05 07:09:50 -0800256 ]
257 if (!build_with_chromium && is_clang) {
258 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
259 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
260 }
261 if (rtc_use_h264) {
262 defines = [ "WEBRTC_USE_H264" ]
263 }
264 }
265
kjellandera3cac052016-10-24 01:52:39 -0700266 rtc_executable("video_loopback") {
267 testonly = true
268 sources = [
269 "video_loopback.cc",
270 ]
271 deps = [
272 ":video_quality_test",
Mirko Bonadei45a4c412018-07-31 15:07:28 +0200273 "../rtc_base:logging",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700274 "../rtc_base:rtc_base_approved",
Bjorn Tereliusedab3012018-01-31 17:23:40 +0100275 "../system_wrappers:field_trial_default",
kjellandera3cac052016-10-24 01:52:39 -0700276 "../system_wrappers:metrics_default",
Ilya Nikolaevskiy2ffe3e82018-01-17 19:57:24 +0000277 "../system_wrappers:runtime_enabled_features_default",
kjellandera3cac052016-10-24 01:52:39 -0700278 "../test:field_trial",
279 "../test:run_test",
mbonadei9c296b32017-09-05 05:11:41 -0700280 "../test:run_test_interface",
kjellandera3cac052016-10-24 01:52:39 -0700281 "../test:test_common",
282 "../test:test_renderer",
mbonadei9087d492017-04-25 00:35:35 -0700283 "../test:test_support",
kjellandera3cac052016-10-24 01:52:39 -0700284 "//testing/gtest",
kjellandera3cac052016-10-24 01:52:39 -0700285 ]
286 if (!build_with_chromium && is_clang) {
287 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
288 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
289 }
290 }
291
292 rtc_executable("screenshare_loopback") {
293 testonly = true
294 sources = [
295 "screenshare_loopback.cc",
296 ]
297
298 deps = [
299 ":video_quality_test",
Mirko Bonadei45a4c412018-07-31 15:07:28 +0200300 "../rtc_base:logging",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700301 "../rtc_base:rtc_base_approved",
Bjorn Tereliusedab3012018-01-31 17:23:40 +0100302 "../system_wrappers:field_trial_default",
kjellandera3cac052016-10-24 01:52:39 -0700303 "../system_wrappers:metrics_default",
Ilya Nikolaevskiy2ffe3e82018-01-17 19:57:24 +0000304 "../system_wrappers:runtime_enabled_features_default",
kjellandera3cac052016-10-24 01:52:39 -0700305 "../test:field_trial",
306 "../test:run_test",
mbonadei9c296b32017-09-05 05:11:41 -0700307 "../test:run_test_interface",
kjellandera3cac052016-10-24 01:52:39 -0700308 "../test:test_common",
309 "../test:test_renderer",
mbonadei9087d492017-04-25 00:35:35 -0700310 "../test:test_support",
kjellandera3cac052016-10-24 01:52:39 -0700311 ]
312 if (!build_with_chromium && is_clang) {
313 # Suppress warnings from Chrome's Clang plugins.
314 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
315 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
316 }
317 }
318
Ilya Nikolaevskiy255d1cd2017-12-21 18:02:59 +0100319 rtc_executable("sv_loopback") {
320 testonly = true
321 sources = [
322 "sv_loopback.cc",
323 ]
324 deps = [
325 ":video_quality_test",
Mirko Bonadei45a4c412018-07-31 15:07:28 +0200326 "../rtc_base:logging",
Ilya Nikolaevskiy255d1cd2017-12-21 18:02:59 +0100327 "../rtc_base:rtc_base_approved",
Bjorn Tereliusedab3012018-01-31 17:23:40 +0100328 "../system_wrappers:field_trial_default",
Ilya Nikolaevskiy255d1cd2017-12-21 18:02:59 +0100329 "../system_wrappers:metrics_default",
Ilya Nikolaevskiy2ffe3e82018-01-17 19:57:24 +0000330 "../system_wrappers:runtime_enabled_features_default",
Ilya Nikolaevskiy255d1cd2017-12-21 18:02:59 +0100331 "../test:field_trial",
332 "../test:run_test",
333 "../test:run_test_interface",
334 "../test:test_common",
335 "../test:test_renderer",
336 "../test:test_support",
Ilya Nikolaevskiy255d1cd2017-12-21 18:02:59 +0100337 "//testing/gtest",
338 ]
339 if (!build_with_chromium && is_clang) {
340 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
341 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
342 }
343 }
344
stefan64427e52016-12-20 07:26:58 -0800345 rtc_executable("video_replay") {
346 testonly = true
347 sources = [
348 "replay.cc",
349 ]
350 deps = [
mbonadei9087d492017-04-25 00:35:35 -0700351 "..:webrtc_common",
ilnikd60d06a2017-04-05 03:02:20 -0700352 "../api/video_codecs:video_codecs_api",
mbonadei9087d492017-04-25 00:35:35 -0700353 "../call:call_interfaces",
354 "../common_video",
355 "../logging:rtc_event_log_api",
356 "../modules/rtp_rtcp",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100357 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700358 "../rtc_base:rtc_base_approved",
mbonadei9087d492017-04-25 00:35:35 -0700359 "../system_wrappers",
stefan64427e52016-12-20 07:26:58 -0800360 "../system_wrappers:metrics_default",
Ilya Nikolaevskiy2ffe3e82018-01-17 19:57:24 +0000361 "../system_wrappers:runtime_enabled_features_default",
stefan64427e52016-12-20 07:26:58 -0800362 "../test:field_trial",
mbonadei9087d492017-04-25 00:35:35 -0700363 "../test:rtp_test_utils",
stefan64427e52016-12-20 07:26:58 -0800364 "../test:run_test",
mbonadei9c296b32017-09-05 05:11:41 -0700365 "../test:run_test_interface",
stefan64427e52016-12-20 07:26:58 -0800366 "../test:test_common",
367 "../test:test_renderer",
mbonadei9087d492017-04-25 00:35:35 -0700368 "../test:test_support",
369 "../test:video_test_common",
philipel99b63452017-08-25 07:24:21 -0700370 "../test:video_test_support",
stefan64427e52016-12-20 07:26:58 -0800371 ]
stefan64427e52016-12-20 07:26:58 -0800372 if (!build_with_chromium && is_clang) {
373 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
374 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
375 }
376 }
377
Peter Boström02083222016-06-14 12:52:54 +0200378 # TODO(pbos): Rename test suite.
ehmaldonado38a21322016-09-02 04:10:34 -0700379 rtc_source_set("video_tests") {
Peter Boström02083222016-06-14 12:52:54 +0200380 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700381
hta9aa96882016-12-06 05:36:03 -0800382 defines = []
Peter Boström02083222016-06-14 12:52:54 +0200383 sources = [
384 "call_stats_unittest.cc",
mflodman15d83572016-10-06 08:35:11 -0700385 "encoder_rtcp_feedback_unittest.cc",
Sebastian Janssonc5017132018-02-02 16:24:16 +0100386 "end_to_end_tests/bandwidth_tests.cc",
387 "end_to_end_tests/call_operation_tests.cc",
388 "end_to_end_tests/codec_tests.cc",
389 "end_to_end_tests/config_tests.cc",
390 "end_to_end_tests/extended_reports_tests.cc",
391 "end_to_end_tests/fec_tests.cc",
392 "end_to_end_tests/histogram_tests.cc",
393 "end_to_end_tests/log_tests.cc",
Åsa Persson96c9fc42018-05-23 12:47:20 +0200394 "end_to_end_tests/multi_codec_receive_tests.cc",
Sebastian Janssonc5017132018-02-02 16:24:16 +0100395 "end_to_end_tests/multi_stream_tester.cc",
396 "end_to_end_tests/multi_stream_tester.h",
397 "end_to_end_tests/multi_stream_tests.cc",
398 "end_to_end_tests/network_state_tests.cc",
399 "end_to_end_tests/probing_tests.cc",
Sebastian Janssond78f7052018-04-23 13:35:37 +0200400 "end_to_end_tests/receive_time_tests.cc",
Sebastian Janssonc5017132018-02-02 16:24:16 +0100401 "end_to_end_tests/retransmission_tests.cc",
402 "end_to_end_tests/rtp_rtcp_tests.cc",
403 "end_to_end_tests/ssrc_tests.cc",
404 "end_to_end_tests/stats_tests.cc",
405 "end_to_end_tests/transport_feedback_tests.cc",
Peter Boström02083222016-06-14 12:52:54 +0200406 "overuse_frame_detector_unittest.cc",
Sebastian Janssone92f93f2017-06-22 14:44:04 +0200407 "picture_id_tests.cc",
Åsa Persson2027b662018-05-02 18:08:06 +0200408 "quality_scaling_tests.cc",
palmkvist349092b2016-12-13 02:45:57 -0800409 "quality_threshold_unittest.cc",
sakale5ba44e2016-10-26 07:09:24 -0700410 "receive_statistics_proxy_unittest.cc",
Peter Boström02083222016-06-14 12:52:54 +0200411 "report_block_stats_unittest.cc",
nisseb1f2ff92017-06-09 04:01:55 -0700412 "rtp_video_stream_receiver_unittest.cc",
Peter Boström02083222016-06-14 12:52:54 +0200413 "send_delay_stats_unittest.cc",
414 "send_statistics_proxy_unittest.cc",
415 "stats_counter_unittest.cc",
416 "stream_synchronization_unittest.cc",
johanf2183ff2017-02-28 01:33:09 -0800417 "video_receive_stream_unittest.cc",
Sebastian Jansson652dc912018-04-19 17:09:15 +0200418 "video_send_stream_impl_unittest.cc",
Peter Boström02083222016-06-14 12:52:54 +0200419 "video_send_stream_tests.cc",
mflodmancc3d4422017-08-03 08:27:51 -0700420 "video_stream_encoder_unittest.cc",
Peter Boström02083222016-06-14 12:52:54 +0200421 ]
422 deps = [
423 ":video",
Sebastian Jansson652dc912018-04-19 17:09:15 +0200424 ":video_mocks",
Niels Möller213618e2018-07-24 09:29:58 +0200425 ":video_stream_encoder_impl",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200426 "../api/video:video_frame",
427 "../api/video:video_frame_i420",
mbonadei9087d492017-04-25 00:35:35 -0700428 "../api/video_codecs:video_codecs_api",
mbonadei9087d492017-04-25 00:35:35 -0700429 "../call:call_interfaces",
Sebastian Jansson652dc912018-04-19 17:09:15 +0200430 "../call:mock_bitrate_allocator",
eladalone2173d92017-07-28 10:05:45 -0700431 "../call:mock_rtp_interfaces",
nisse0f15f922017-06-21 01:05:22 -0700432 "../call:rtp_receiver",
sprangdb2a9fc2017-08-09 06:42:32 -0700433 "../call:rtp_sender",
aleloi440b6d92017-08-22 05:43:23 -0700434 "../call:video_stream_api",
mbonadei9087d492017-04-25 00:35:35 -0700435 "../common_video",
436 "../logging:rtc_event_log_api",
Mirko Bonadei75baa492018-01-11 17:07:30 +0100437 "../media:rtc_audio_video",
Anders Carlssona114c882018-01-04 15:10:22 +0100438 "../media:rtc_internal_video_codecs",
brandtr5e171752017-05-23 03:32:16 -0700439 "../media:rtc_media",
magjedceecea42016-11-28 07:20:21 -0800440 "../media:rtc_media_base",
mbonadei9087d492017-04-25 00:35:35 -0700441 "../media:rtc_media_tests_utils",
mbonadei1140f972017-04-26 03:38:35 -0700442 "../modules:module_api",
mbonadei9087d492017-04-25 00:35:35 -0700443 "../modules/pacing",
444 "../modules/rtp_rtcp",
kjellandere0629c02017-04-25 04:04:50 -0700445 "../modules/rtp_rtcp:mock_rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100446 "../modules/rtp_rtcp:rtp_rtcp_format",
mbonadei9087d492017-04-25 00:35:35 -0700447 "../modules/utility",
448 "../modules/video_coding",
Sergey Silkin86684962018-03-28 19:32:37 +0200449 "../modules/video_coding:codec_globals_headers",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +0200450 "../modules/video_coding:packet",
Patrik Höglund99175c62018-01-08 11:05:10 +0100451 "../modules/video_coding:video_codec_interface",
mbonadei9087d492017-04-25 00:35:35 -0700452 "../modules/video_coding:video_coding_utility",
453 "../modules/video_coding:webrtc_h264",
Emircan Uysaleref76e5a2018-02-12 13:36:41 -0800454 "../modules/video_coding:webrtc_multiplex",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200455 "../modules/video_coding:webrtc_vp8",
mbonadei9087d492017-04-25 00:35:35 -0700456 "../modules/video_coding:webrtc_vp9",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100457 "../rtc_base:checks",
458 "../rtc_base:rate_limiter",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700459 "../rtc_base:rtc_base_approved",
460 "../rtc_base:rtc_base_tests_utils",
Bjorn Tereliusa194e582017-10-25 13:07:09 +0200461 "../rtc_base:rtc_numerics",
Tommi38c5d932018-03-27 23:11:09 +0200462 "../rtc_base:rtc_task_queue",
Sebastian Jansson652dc912018-04-19 17:09:15 +0200463 "../rtc_base:rtc_task_queue_for_test",
Sebastian Janssoncabe3832018-01-12 10:54:18 +0100464 "../rtc_base/experiments:alr_experiment",
mbonadei9087d492017-04-25 00:35:35 -0700465 "../system_wrappers",
466 "../system_wrappers:field_trial_default",
467 "../system_wrappers:metrics_api",
468 "../system_wrappers:metrics_default",
469 "../test:direct_transport",
470 "../test:field_trial",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100471 "../test:fileutils",
Edward Lemure66572b2018-01-05 15:34:09 +0100472 "../test:perf_test",
mbonadei9087d492017-04-25 00:35:35 -0700473 "../test:rtp_test_utils",
474 "../test:test_common",
475 "../test:test_support",
476 "../test:video_test_common",
Peter Boström02083222016-06-14 12:52:54 +0200477 "//testing/gtest",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200478 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalovb9b146c2018-06-15 12:28:07 +0200479 "//third_party/abseil-cpp/absl/types:optional",
Peter Boström02083222016-06-14 12:52:54 +0200480 ]
kjellandere40a7ee2016-10-16 23:56:12 -0700481 if (!build_with_chromium && is_clang) {
482 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700483 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström02083222016-06-14 12:52:54 +0200484 }
brandtr445fb8f2016-11-14 04:11:23 -0800485 if (rtc_use_h264) {
hta9aa96882016-12-06 05:36:03 -0800486 defines += [ "WEBRTC_USE_H264" ]
brandtr445fb8f2016-11-14 04:11:23 -0800487 }
Dan Minor9c686132018-01-15 10:20:00 -0500488 if (!build_with_mozilla) {
489 deps += [ "../media:rtc_media_base" ]
490 }
Peter Boström02083222016-06-14 12:52:54 +0200491 }
492}