blob: 8fa8485a9e3a02d5de6a7c4d40b000d932a4fac2 [file] [log] [blame]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:021# 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
kjellander0f380d82016-06-01 11:48:269import("//build/config/ui.gni")
Robin Raymondce1b1402018-11-23 01:10:1110import("../webrtc.gni")
kjellander0f380d82016-06-01 11:48:2611if (is_android) {
12 import("//build/config/android/rules.gni")
13}
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:0214
kjellanderb62dbbe2016-09-23 07:38:5215group("test") {
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:0216 testonly = true
17
18 deps = [
Artem Titov66a29b92019-01-15 13:43:2019 ":copy_to_file_audio_capturer",
kjellander0f380d82016-06-01 11:48:2620 ":rtp_test_utils",
21 ":test_common",
22 ":test_renderer",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:0223 ":test_support",
kjellander0f380d82016-06-01 11:48:2624 ":video_test_common",
Artem Titov4895b452019-01-14 15:54:0425 "pc/e2e",
Artem Titovb6c62012019-01-08 13:58:2326 "pc/e2e/api:peer_connection_quality_test_fixture_api",
kjellander0f380d82016-06-01 11:48:2627 ]
mbonadei148d5a22017-04-28 12:24:5028
oprypinfbbba3f2017-09-25 15:34:4129 if (rtc_include_tests) {
mbonadei148d5a22017-04-28 12:24:5030 deps += [
31 ":test_main",
32 ":test_support_unittests",
Sebastian Jansson98b07e912018-09-27 11:47:0133 "scenario/scenario_tests",
mbonadei148d5a22017-04-28 12:24:5034 ]
35 }
kjellander0f380d82016-06-01 11:48:2636}
37
ehmaldonado38a21322016-09-02 11:10:3438rtc_source_set("video_test_common") {
Per Kjellandera7f2d842018-01-10 15:54:5339 visibility = [ "*" ]
kjellander0f380d82016-06-01 11:48:2640 testonly = true
41 sources = [
42 "fake_texture_frame.cc",
43 "fake_texture_frame.h",
44 "frame_generator.cc",
45 "frame_generator.h",
ehmaldonado656610f2017-02-06 10:21:1146 "frame_generator_capturer.cc",
47 "frame_generator_capturer.h",
kjellander0f380d82016-06-01 11:48:2648 "frame_utils.cc",
49 "frame_utils.h",
Sebastian Janssonf1f363f2018-08-13 12:24:5850 "test_video_capturer.cc",
51 "test_video_capturer.h",
ehmaldonado656610f2017-02-06 10:21:1152 "vcm_capturer.cc",
53 "vcm_capturer.h",
mflodman351424e2017-08-10 09:43:1454 "video_codec_settings.h",
kjellander0f380d82016-06-01 11:48:2655 ]
56
kjellandere40a7ee2016-10-17 06:56:1257 if (!build_with_chromium && is_clang) {
58 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 11:10:3459 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander0f380d82016-06-01 11:48:2660 }
61
62 deps = [
mbonadei3edccb92017-06-01 11:47:2063 "..:webrtc_common",
Patrik Höglund9e194032018-01-04 14:58:2064 "../api:libjingle_peerconnection_api",
Niels Möllerc6ce9c52018-05-11 09:15:3065 "../api/video:video_frame",
Emircan Uysaler0823eec2018-07-14 00:10:0066 "../api/video:video_frame_i010",
Niels Möllerc6ce9c52018-05-11 09:15:3067 "../api/video:video_frame_i420",
mflodman351424e2017-08-10 09:43:1468 "../api/video_codecs:video_codecs_api",
aleloi440b6d92017-08-22 12:43:2369 "../call:video_stream_api",
kjellander0f380d82016-06-01 11:48:2670 "../common_video",
sprangc5d62e22017-04-03 06:53:0471 "../media:rtc_media_base",
ehmaldonado656610f2017-02-06 10:21:1172 "../modules/video_capture:video_capture_module",
Patrik Höglunda8005cf2017-12-13 15:05:4273 "../rtc_base:checks",
Patrik Höglund76df0df2017-12-19 10:50:2174 "../rtc_base:rtc_base",
ehmaldonadof6a861a2017-07-19 17:40:4775 "../rtc_base:rtc_task_queue",
mbonadei3edccb92017-06-01 11:47:2076 "../system_wrappers",
Danil Chapovalovabd42732018-09-10 12:07:4577 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalov431abd92018-06-18 10:54:1778 "//third_party/abseil-cpp/absl/types:optional",
kjellander0f380d82016-06-01 11:48:2679 ]
80}
81
ehmaldonado38a21322016-09-02 11:10:3482rtc_source_set("rtp_test_utils") {
kjellander0f380d82016-06-01 11:48:2683 testonly = true
84 sources = [
85 "rtcp_packet_parser.cc",
86 "rtcp_packet_parser.h",
87 "rtp_file_reader.cc",
88 "rtp_file_reader.h",
89 "rtp_file_writer.cc",
90 "rtp_file_writer.h",
91 ]
92
kjellandere40a7ee2016-10-17 06:56:1293 if (!build_with_chromium && is_clang) {
94 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 11:10:3495 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander0f380d82016-06-01 11:48:2696 }
97
98 deps = [
99 "..:webrtc_common",
kwiberg529662a2017-09-04 12:43:17100 "../api:array_view",
kjellander0f380d82016-06-01 11:48:26101 "../modules/rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 06:51:33102 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 15:05:42103 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 17:40:47104 "../rtc_base:rtc_base_approved",
Niels Möllera12c42a2018-07-25 14:05:48105 "../rtc_base/system:arch",
kjellander0f380d82016-06-01 11:48:26106 "//testing/gtest",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02107 ]
108}
109
ehmaldonado38a21322016-09-02 11:10:34110rtc_source_set("field_trial") {
Per Kjellandera7f2d842018-01-10 15:54:53111 visibility = [ "*" ]
kjellander0f380d82016-06-01 11:48:26112 testonly = true
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02113 sources = [
114 "field_trial.cc",
115 "field_trial.h",
116 ]
117
118 deps = [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22119 "..:webrtc_common",
Mirko Bonadei17f48782018-09-28 06:51:10120 "../system_wrappers:field_trial",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02121 ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02122}
123
Edward Lemure66572b2018-01-05 14:34:09124rtc_source_set("perf_test") {
Per Kjellandera7f2d842018-01-10 15:54:53125 visibility = [ "*" ]
Edward Lemure66572b2018-01-05 14:34:09126 sources = [
127 "testsupport/perf_test.cc",
128 "testsupport/perf_test.h",
129 ]
130 deps = [
131 "..:webrtc_common",
132 "../api:array_view",
Oleh Prypind136b282018-10-03 11:53:44133 "../rtc_base:checks",
Edward Lemure66572b2018-01-05 14:34:09134 "../rtc_base:rtc_base_approved",
135 ]
136}
137
mbonadeicd95a4e2017-08-24 06:55:54138if (is_ios) {
139 rtc_source_set("test_support_objc") {
140 testonly = true
mbonadei9c296b32017-09-05 12:11:41141 visibility = [ ":test_support" ]
mbonadeicd95a4e2017-08-24 06:55:54142 sources = [
Artem Titarenko34fc3462018-11-06 11:29:29143 "ios/coverage_util_ios.h",
144 "ios/coverage_util_ios.mm",
mbonadeicd95a4e2017-08-24 06:55:54145 "ios/test_support.h",
146 "ios/test_support.mm",
147 ]
denicijad207a392017-09-11 13:43:28148 deps = [
Edward Lemure66572b2018-01-05 14:34:09149 ":perf_test",
Anders Carlsson7bca8ca2018-08-30 07:30:29150 "../sdk:helpers_objc",
denicijad207a392017-09-11 13:43:28151 ]
Artem Titarenko34fc3462018-11-06 11:29:29152 configs += [ ":test_support_objc_config" ]
153 }
154
155 config("test_support_objc_config") {
156 defines = []
157
158 if (use_clang_coverage) {
159 defines += [ "WEBRTC_IOS_ENABLE_COVERAGE" ]
160 }
mbonadeicd95a4e2017-08-24 06:55:54161 }
162}
163
Patrik Höglund34924c22018-01-19 08:11:07164config("suppress_warning_4373") {
165 if (is_win) {
166 cflags = [
167 # MSVC has a bug which generates this warning when using mocks; see the
168 # section on warning 4373 in he googlemock FAQ. This warning isn't the
169 # least relevant for us, anyway.
170 "/wd4373",
171 ]
172 }
173}
174
Sebastian Jansson2afd2812018-08-23 12:44:05175config("test_main_direct_config") {
176 visibility = [ ":*" ]
177 defines = [ "UNIT_TEST" ]
178}
mbonadei148d5a22017-04-28 12:24:50179rtc_source_set("test_support") {
Per Kjellandera7f2d842018-01-10 15:54:53180 visibility = [ "*" ]
mbonadei148d5a22017-04-28 12:24:50181 testonly = true
kjellander32c4a202016-08-30 09:53:49182
Mirko Bonadei65ce3112018-01-26 10:57:47183 all_dependent_configs = [
184 ":suppress_warning_4373",
185 "//third_party/googletest:gmock_config",
186 "//third_party/googletest:gtest_config",
187 ]
Patrik Höglund34924c22018-01-19 08:11:07188
mbonadei148d5a22017-04-28 12:24:50189 sources = [
190 "gmock.h",
191 "gtest.h",
mbonadei148d5a22017-04-28 12:24:50192 ]
193
Patrik Höglund7696bef2018-03-15 14:05:39194 public_deps = []
Kári Tristan Helgasone2baffb2017-06-09 08:31:58195 if (is_ios) {
mbonadeicd95a4e2017-08-24 06:55:54196 public_deps += [ ":test_support_objc" ]
Kári Tristan Helgasone2baffb2017-06-09 08:31:58197 }
198
Sebastian Jansson2afd2812018-08-23 12:44:05199 public_configs = [ ":test_main_direct_config" ]
mbonadei148d5a22017-04-28 12:24:50200 deps = [
ehmaldonadof6a861a2017-07-19 17:40:47201 "../rtc_base:rtc_base_approved",
mbonadei148d5a22017-04-28 12:24:50202 "//testing/gmock",
203 "//testing/gtest",
204 ]
205
mbonadei148d5a22017-04-28 12:24:50206 if (!build_with_chromium && is_clang) {
207 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
208 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
209 }
kjellander32c4a202016-08-30 09:53:49210}
211
oprypinfbbba3f2017-09-25 15:34:41212if (rtc_include_tests) {
Artem Titov40a7a352018-10-15 13:25:34213 rtc_source_set("test_main_lib") {
Per Kjellandera7f2d842018-01-10 15:54:53214 visibility = [ "*" ]
Oleh Prypin90ce84e2017-09-25 08:27:22215 testonly = true
Oleh Prypin5ab68542017-09-25 09:18:00216 sources = [
Artem Titov40a7a352018-10-15 13:25:34217 "test_main_lib.cc",
218 "test_main_lib.h",
Oleh Prypin5ab68542017-09-25 09:18:00219 ]
220
Oleh Prypin5ab68542017-09-25 09:18:00221 deps = [
222 ":field_trial",
Edward Lemure66572b2018-01-05 14:34:09223 ":perf_test",
Artem Titov40a7a352018-10-15 13:25:34224 ":test_support",
Yves Gerey3e707812018-11-28 15:47:49225 "../rtc_base:checks",
Niels Möller8909a632018-09-06 06:42:44226 "../rtc_base:rtc_base",
Mirko Bonadei17f48782018-09-28 06:51:10227 "../system_wrappers:field_trial",
228 "../system_wrappers:metrics",
Oleh Prypin5ab68542017-09-25 09:18:00229 "//testing/gtest",
Yves Gerey3e707812018-11-28 15:47:49230 "//third_party/abseil-cpp/absl/memory",
Patrik Höglund77301932018-10-09 13:09:51231
232 # TODO(bugs.webrtc.org/9792): This is needed for downstream projects on
233 # Android, where it's replaced by an internal version of fileutils that
234 # has a certain flag. Remove this once the internal fileutils has been
235 # eliminated.
236 "../test:fileutils",
mbonadei9452c622017-04-27 19:29:29237 ]
238 }
mbonadei9452c622017-04-27 19:29:29239
Artem Titov40a7a352018-10-15 13:25:34240 rtc_source_set("test_main") {
241 visibility = [ "*" ]
242 testonly = true
243 sources = [
244 "test_main.cc",
245 ]
246
247 deps = [
248 ":test_main_lib",
249 ]
250 }
251
Oleh Prypin5ab68542017-09-25 09:18:00252 rtc_source_set("video_test_support") {
253 testonly = true
254
255 sources = [
256 "testsupport/frame_reader.h",
257 "testsupport/frame_writer.h",
Oleh Prypin5ab68542017-09-25 09:18:00258 "testsupport/mock/mock_frame_reader.h",
Artem Titov645df9e2019-01-14 13:21:59259 "testsupport/y4m_frame_reader.cc",
Oleh Prypin5ab68542017-09-25 09:18:00260 "testsupport/y4m_frame_writer.cc",
261 "testsupport/yuv_frame_reader.cc",
262 "testsupport/yuv_frame_writer.cc",
263 ]
264
265 deps = [
Patrik Höglund7696bef2018-03-15 14:05:39266 ":fileutils",
Oleh Prypin5ab68542017-09-25 09:18:00267 ":test_support",
268 ":video_test_common",
269 "..:webrtc_common",
Niels Möllerc6ce9c52018-05-11 09:15:30270 "../api/video:video_frame",
271 "../api/video:video_frame_i420",
Oleh Prypin5ab68542017-09-25 09:18:00272 "../common_video",
Patrik Höglunda8005cf2017-12-13 15:05:42273 "../rtc_base:checks",
Oleh Prypin5ab68542017-09-25 09:18:00274 "../rtc_base:rtc_base_approved",
275 "../system_wrappers",
Oleh Prypin5ab68542017-09-25 09:18:00276 "//testing/gtest",
Mirko Bonadei401d0562017-12-14 10:24:00277 "//third_party/libyuv",
Oleh Prypin5ab68542017-09-25 09:18:00278 ]
279
280 if (!is_ios) {
281 deps += [ "//third_party:jpeg" ]
282 sources += [ "testsupport/jpeg_frame_writer.cc" ]
283 } else {
284 sources += [ "testsupport/jpeg_frame_writer_ios.cc" ]
285 }
286
Oleh Prypin5ab68542017-09-25 09:18:00287 if (!build_with_chromium && is_clang) {
288 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
289 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
290 }
291
292 if (is_android) {
293 deps += [ "//base:base" ]
294 }
Oleh Prypin5ab68542017-09-25 09:18:00295 }
296
Edward Lemuraf8659a2017-09-27 12:46:24297 rtc_source_set("test_support_test_artifacts") {
Oleh Prypin5ab68542017-09-25 09:18:00298 testonly = true
299 sources = [
Edward Lemuraf8659a2017-09-27 12:46:24300 "testsupport/test_artifacts.cc",
301 "testsupport/test_artifacts.h",
Oleh Prypin5ab68542017-09-25 09:18:00302 ]
303 deps = [
304 ":fileutils",
305 "../rtc_base:rtc_base_approved",
306 ]
307 }
308
309 test_support_unittests_resources = [
310 "../resources/foreman_cif_short.yuv",
311 "../resources/video_coding/frame-ethernet-ii.pcap",
312 "../resources/video_coding/frame-loopback.pcap",
313 "../resources/video_coding/pltype103.rtp",
314 "../resources/video_coding/pltype103_header_only.rtp",
315 "../resources/video_coding/ssrcs-2.pcap",
316 "../resources/video_coding/ssrcs-3.pcap",
Oleh Prypin90ce84e2017-09-25 08:27:22317 ]
Oleh Prypin90ce84e2017-09-25 08:27:22318
319 if (is_ios) {
Oleh Prypin5ab68542017-09-25 09:18:00320 bundle_data("test_support_unittests_bundle_data") {
321 testonly = true
322 sources = test_support_unittests_resources
323 outputs = [
324 "{{bundle_resources_dir}}/{{source_file_part}}",
325 ]
326 }
Oleh Prypin90ce84e2017-09-25 08:27:22327 }
328
Oleh Prypin5ab68542017-09-25 09:18:00329 rtc_test("test_support_unittests") {
330 deps = [
Benjamin Wright9db8b882019-01-14 23:30:20331 ":call_config_utils",
Artem Titov66a29b92019-01-15 13:43:20332 ":copy_to_file_audio_capturer_unittest",
Sebastian Jansson09408112018-04-24 12:41:22333 ":direct_transport",
Ilya Nikolaevskiyb0588e62018-08-27 12:12:27334 ":fake_video_codecs",
Patrik Höglund7696bef2018-03-15 14:05:39335 ":fileutils",
Mirko Bonadei46399992018-08-22 13:32:38336 ":fileutils_unittests",
Edward Lemure66572b2018-01-05 14:34:09337 ":perf_test",
Oleh Prypin5ab68542017-09-25 09:18:00338 ":rtp_test_utils",
Ilya Nikolaevskiyb0588e62018-08-27 12:12:27339 ":test_common",
Mirko Bonadei9098b302018-04-06 08:48:10340 ":test_main",
341 ":test_support",
342 ":test_support_test_artifacts",
343 ":video_test_common",
344 ":video_test_support",
Ilya Nikolaevskiyb0588e62018-08-27 12:12:27345 "../api:create_simulcast_test_fixture_api",
346 "../api:simulcast_test_fixture_api",
Danil Chapovalov99b71df2018-10-26 13:57:48347 "../api/test/video:function_video_factory",
Jiawei Ouc2ebe212018-11-08 18:02:56348 "../api/video:builtin_video_bitrate_allocator_factory",
Yves Gerey3e707812018-11-28 15:47:49349 "../api/video:video_frame",
Niels Möllerc6ce9c52018-05-11 09:15:30350 "../api/video:video_frame_i420",
Benjamin Wright9db8b882019-01-14 23:30:20351 "../call:video_stream_api",
Mirko Bonadei9098b302018-04-06 08:48:10352 "../modules/rtp_rtcp:rtp_rtcp",
Ilya Nikolaevskiyb0588e62018-08-27 12:12:27353 "../modules/video_capture",
354 "../modules/video_coding:simulcast_test_fixture_impl",
Oleh Prypin5ab68542017-09-25 09:18:00355 "../rtc_base:rtc_base_approved",
Mirko Bonadei9098b302018-04-06 08:48:10356 "../test:single_threaded_task_queue",
Artem Titov4895b452019-01-14 15:54:04357 "pc/e2e:e2e_unittests",
Sebastian Jansson98b07e912018-09-27 11:47:01358 "scenario:scenario_unittests",
Ilya Nikolaevskiyb0588e62018-08-27 12:12:27359 "//testing/gmock",
Mirko Bonadei9098b302018-04-06 08:48:10360 "//testing/gtest",
Karl Wiberg918f50c2018-07-05 09:40:33361 "//third_party/abseil-cpp/absl/memory",
Artem Titov645df9e2019-01-14 13:21:59362 "//third_party/abseil-cpp/absl/strings",
Oleh Prypin5ab68542017-09-25 09:18:00363 ]
364 sources = [
Benjamin Wright9db8b882019-01-14 23:30:20365 "call_config_utils_unittest.cc",
Sebastian Jansson09408112018-04-24 12:41:22366 "direct_transport_unittest.cc",
Ilya Nikolaevskiyb0588e62018-08-27 12:12:27367 "fake_vp8_encoder_unittest.cc",
Oleh Prypin5ab68542017-09-25 09:18:00368 "frame_generator_unittest.cc",
369 "rtp_file_reader_unittest.cc",
370 "rtp_file_writer_unittest.cc",
371 "single_threaded_task_queue_unittest.cc",
372 "testsupport/always_passing_unittest.cc",
Oleh Prypin5ab68542017-09-25 09:18:00373 "testsupport/perf_test_unittest.cc",
Edward Lemuraf8659a2017-09-27 12:46:24374 "testsupport/test_artifacts_unittest.cc",
Artem Titov645df9e2019-01-14 13:21:59375 "testsupport/y4m_frame_reader_unittest.cc",
Oleh Prypin5ab68542017-09-25 09:18:00376 "testsupport/y4m_frame_writer_unittest.cc",
377 "testsupport/yuv_frame_reader_unittest.cc",
378 "testsupport/yuv_frame_writer_unittest.cc",
379 ]
380
Oleh Prypin5ab68542017-09-25 09:18:00381 if (!build_with_chromium && is_clang) {
382 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
383 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
384 }
385
386 data = test_support_unittests_resources
387 if (is_android) {
388 deps += [ "//testing/android/native_test:native_test_support" ]
389 shard_timeout = 900
390 }
391
392 if (is_ios) {
393 deps += [ ":test_support_unittests_bundle_data" ]
394 }
Ilya Nikolaevskiyb0588e62018-08-27 12:12:27395
Mirko Bonadei9098b302018-04-06 08:48:10396 if (!is_android && !build_with_chromium) {
397 # This is needed in order to avoid:
398 # undefined symbol: webrtc::videocapturemodule::VideoCaptureImpl::Create
399 deps += [ "../modules/video_capture:video_capture_internal_impl" ]
400 }
Oleh Prypin5ab68542017-09-25 09:18:00401 }
Oleh Prypin90ce84e2017-09-25 08:27:22402}
403
mbonadeicd95a4e2017-08-24 06:55:54404if (is_ios) {
Patrik Höglund8434aeb32018-10-05 12:52:11405 rtc_source_set("fileutils_ios_objc") {
Artem Titov8f726be2018-10-23 13:50:10406 visibility = [
407 ":fileutils",
408 ":fileutils_override_impl",
409 ]
mbonadeicd95a4e2017-08-24 06:55:54410 sources = [
Steve Anton10542f22019-01-11 17:11:00411 "testsupport/ios_file_utils.h",
412 "testsupport/ios_file_utils.mm",
Steve Antonaec15aa2019-01-11 17:13:07413 "testsupport/iosfileutils.h",
mbonadeicd95a4e2017-08-24 06:55:54414 ]
415 deps = [
416 "..:webrtc_common",
Patrik Höglunda8005cf2017-12-13 15:05:42417 "../rtc_base:checks",
mbonadeicd95a4e2017-08-24 06:55:54418 "../rtc_base:rtc_base_approved",
Anders Carlsson7bca8ca2018-08-30 07:30:29419 "../sdk:helpers_objc",
mbonadeicd95a4e2017-08-24 06:55:54420 ]
421 }
422}
423
Patrik Höglund8434aeb32018-10-05 12:52:11424if (is_mac) {
425 rtc_source_set("fileutils_mac_objc") {
Artem Titov8f726be2018-10-23 13:50:10426 visibility = [
427 ":fileutils",
428 ":fileutils_override_impl",
429 ]
Patrik Höglund8434aeb32018-10-05 12:52:11430 sources = [
Steve Anton10542f22019-01-11 17:11:00431 "testsupport/mac_file_utils.h",
432 "testsupport/mac_file_utils.mm",
Steve Antonaec15aa2019-01-11 17:13:07433 "testsupport/macfileutils.h",
Patrik Höglund8434aeb32018-10-05 12:52:11434 ]
435 deps = [
436 "../rtc_base:checks",
437 ]
438 }
439}
440
mbonadei9452c622017-04-27 19:29:29441rtc_source_set("fileutils") {
442 testonly = true
Patrik Höglund7696bef2018-03-15 14:05:39443 visibility = [ "*" ]
mbonadei9452c622017-04-27 19:29:29444 sources = [
Steve Anton10542f22019-01-11 17:11:00445 "testsupport/file_utils.cc",
446 "testsupport/file_utils.h",
Steve Antonaec15aa2019-01-11 17:13:07447 "testsupport/fileutils.h",
mbonadei9452c622017-04-27 19:29:29448 ]
mbonadei3edccb92017-06-01 11:47:20449 deps = [
Artem Titov8f726be2018-10-23 13:50:10450 ":fileutils_override_api",
451 ":fileutils_override_impl",
452 "..:webrtc_common",
453 "../rtc_base:checks",
454 "../rtc_base:rtc_base_approved",
455 "../rtc_base/system:arch",
456 "//third_party/abseil-cpp/absl/types:optional",
457 ]
458 if (is_ios) {
459 deps += [ ":fileutils_ios_objc" ]
460 }
461 if (is_mac) {
462 deps += [ ":fileutils_mac_objc" ]
463 }
464 if (is_win) {
465 deps += [ "../rtc_base:rtc_base" ]
466 }
467}
468
469# We separate header into own target to make it possible for downstream
470# projects to override implementation.
471rtc_source_set("fileutils_override_api") {
472 testonly = true
473 sources = [
Steve Anton10542f22019-01-11 17:11:00474 "testsupport/file_utils_override.h",
Steve Antonaec15aa2019-01-11 17:13:07475 "testsupport/fileutils_override.h",
Artem Titov8f726be2018-10-23 13:50:10476 ]
477}
478
479rtc_source_set("fileutils_override_impl") {
480 testonly = true
481 visibility = [ ":fileutils" ]
482 sources = [
Steve Anton10542f22019-01-11 17:11:00483 "testsupport/file_utils_override.cc",
Artem Titov8f726be2018-10-23 13:50:10484 ]
485 deps = [
486 ":fileutils_override_api",
mbonadei3edccb92017-06-01 11:47:20487 "..:webrtc_common",
Patrik Höglunda8005cf2017-12-13 15:05:42488 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 17:40:47489 "../rtc_base:rtc_base_approved",
Niels Möllera12c42a2018-07-25 14:05:48490 "../rtc_base/system:arch",
Danil Chapovalov431abd92018-06-18 10:54:17491 "//third_party/abseil-cpp/absl/types:optional",
mbonadei3edccb92017-06-01 11:47:20492 ]
mbonadei9452c622017-04-27 19:29:29493 if (is_ios) {
Patrik Höglund8434aeb32018-10-05 12:52:11494 deps += [ ":fileutils_ios_objc" ]
495 }
496 if (is_mac) {
497 deps += [ ":fileutils_mac_objc" ]
mbonadei3edccb92017-06-01 11:47:20498 }
499 if (is_win) {
ehmaldonadof6a861a2017-07-19 17:40:47500 deps += [ "../rtc_base:rtc_base" ]
mbonadei9452c622017-04-27 19:29:29501 }
mbonadei9452c622017-04-27 19:29:29502}
503
504rtc_source_set("run_test") {
505 testonly = true
mbonadeicd95a4e2017-08-24 06:55:54506 if (is_mac) {
507 public_deps = [
508 ":run_test_objc",
509 ]
510 } else {
511 public_deps = [
512 ":run_test_generic",
513 ]
514 }
515}
516
517rtc_source_set("run_test_interface") {
mbonadei9452c622017-04-27 19:29:29518 sources = [
519 "run_test.h",
520 ]
mbonadeicd95a4e2017-08-24 06:55:54521}
522
523if (is_mac) {
524 rtc_source_set("run_test_objc") {
525 testonly = true
mbonadei9c296b32017-09-05 12:11:41526 visibility = [ ":run_test" ]
mbonadeicd95a4e2017-08-24 06:55:54527 sources = [
528 "mac/run_test.mm",
529 ]
mbonadei9c296b32017-09-05 12:11:41530 deps = [
mbonadeicd95a4e2017-08-24 06:55:54531 ":run_test_interface",
532 ]
mbonadei9452c622017-04-27 19:29:29533 }
534}
535
mbonadeicd95a4e2017-08-24 06:55:54536rtc_source_set("run_test_generic") {
537 testonly = true
mbonadei9c296b32017-09-05 12:11:41538 visibility = [ ":run_test" ]
mbonadeicd95a4e2017-08-24 06:55:54539 sources = [
540 "run_test.cc",
541 ]
mbonadei9c296b32017-09-05 12:11:41542 deps = [
mbonadeicd95a4e2017-08-24 06:55:54543 ":run_test_interface",
544 ]
545}
546
ehmaldonado37535bf2016-12-05 14:42:45547rtc_source_set("fileutils_unittests") {
548 testonly = true
kjellandere0629c02017-04-25 11:04:50549 visibility = [ ":*" ] # Only targets in this file can depend on this.
ehmaldonado37535bf2016-12-05 14:42:45550 sources = [
Steve Anton10542f22019-01-11 17:11:00551 "testsupport/file_utils_unittest.cc",
ehmaldonado37535bf2016-12-05 14:42:45552 ]
553 deps = [
554 ":fileutils",
mbonadei3edccb92017-06-01 11:47:20555 ":test_support",
Patrik Höglunda8005cf2017-12-13 15:05:42556 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 17:40:47557 "../rtc_base:rtc_base_approved",
ehmaldonado37535bf2016-12-05 14:42:45558 "//testing/gtest",
Danil Chapovalov431abd92018-06-18 10:54:17559 "//third_party/abseil-cpp/absl/types:optional",
ehmaldonado37535bf2016-12-05 14:42:45560 ]
561}
kjellander0f380d82016-06-01 11:48:26562
perkj488c5dc2017-02-08 13:55:51563rtc_source_set("direct_transport") {
Per Kjellandera7f2d842018-01-10 15:54:53564 visibility = [ "*" ]
perkj488c5dc2017-02-08 13:55:51565 testonly = true
566 sources = [
567 "direct_transport.cc",
568 "direct_transport.h",
perkj488c5dc2017-02-08 13:55:51569 ]
570 if (!build_with_chromium && is_clang) {
571 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
572 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
573 }
574 deps = [
mbonadei3edccb92017-06-01 11:47:20575 "..:webrtc_common",
Artem Titov46c4e602018-08-17 12:26:54576 "../api:simulated_network_api",
perkj488c5dc2017-02-08 13:55:51577 "../api:transport_api",
Mirko Bonadeia0e1a552017-12-04 09:50:51578 "../call:call_interfaces",
Artem Titov46c4e602018-08-17 12:26:54579 "../call:simulated_packet_receiver",
mbonadei3edccb92017-06-01 11:47:20580 "../modules/rtp_rtcp",
ehmaldonadof6a861a2017-07-19 17:40:47581 "../rtc_base:rtc_base_approved",
eladalon413ee9a2017-08-22 11:02:52582 "../rtc_base:sequenced_task_checker",
mbonadei3edccb92017-06-01 11:47:20583 "../system_wrappers",
Karl Wiberg918f50c2018-07-05 09:40:33584 "//third_party/abseil-cpp/absl/memory",
perkj488c5dc2017-02-08 13:55:51585 ]
eladalon413ee9a2017-08-22 11:02:52586 public_deps = [
587 ":single_threaded_task_queue",
Erik Språng09708512018-03-14 14:16:50588 "../call:fake_network",
eladalon413ee9a2017-08-22 11:02:52589 ]
590}
591
592rtc_source_set("single_threaded_task_queue") {
593 testonly = true
594 sources = [
595 "single_threaded_task_queue.cc",
596 "single_threaded_task_queue.h",
597 ]
598 deps = [
Patrik Höglunda8005cf2017-12-13 15:05:42599 "../rtc_base:checks",
eladalon413ee9a2017-08-22 11:02:52600 "../rtc_base:rtc_base_approved",
Karl Wiberg918f50c2018-07-05 09:40:33601 "//third_party/abseil-cpp/absl/memory",
eladalon413ee9a2017-08-22 11:02:52602 ]
perkj488c5dc2017-02-08 13:55:51603}
604
Ilya Nikolaevskiyb0588e62018-08-27 12:12:27605rtc_source_set("fake_video_codecs") {
Emircan Uysaler7c03bdc2019-01-16 20:07:56606 allow_poison = [ "software_video_codecs" ]
Ilya Nikolaevskiyb0588e62018-08-27 12:12:27607 visibility = [ "*" ]
608 sources = [
609 "configurable_frame_size_encoder.cc",
610 "configurable_frame_size_encoder.h",
611 "fake_decoder.cc",
612 "fake_decoder.h",
613 "fake_encoder.cc",
614 "fake_encoder.h",
Per Kjellander841c9122018-10-04 16:40:28615 "fake_vp8_decoder.cc",
616 "fake_vp8_decoder.h",
Ilya Nikolaevskiyb0588e62018-08-27 12:12:27617 "fake_vp8_encoder.cc",
618 "fake_vp8_encoder.h",
619 ]
620 if (!build_with_chromium && is_clang) {
621 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
622 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
623 }
624 deps = [
625 "..:webrtc_common",
Niels Möller4dc66c52018-10-05 12:17:58626 "../api/video:encoded_image",
Yves Gerey3e707812018-11-28 15:47:49627 "../api/video:video_bitrate_allocation",
628 "../api/video:video_frame",
Ilya Nikolaevskiyb0588e62018-08-27 12:12:27629 "../api/video:video_frame_i420",
Erik Språng4529fbc2018-10-12 08:30:31630 "../api/video_codecs:create_vp8_temporal_layers",
Ilya Nikolaevskiyb0588e62018-08-27 12:12:27631 "../api/video_codecs:video_codecs_api",
632 "../common_video:common_video",
Yves Gerey3e707812018-11-28 15:47:49633 "../modules:module_api",
634 "../modules/video_coding:codec_globals_headers",
Ilya Nikolaevskiyb0588e62018-08-27 12:12:27635 "../modules/video_coding:video_codec_interface",
636 "../modules/video_coding:video_coding_utility",
637 "../modules/video_coding:webrtc_h264",
638 "../modules/video_coding:webrtc_vp8",
639 "../modules/video_coding:webrtc_vp9",
640 "../rtc_base:checks",
641 "../rtc_base:rtc_base_approved",
642 "../rtc_base:rtc_task_queue",
643 "../rtc_base:sequenced_task_checker",
644 "../system_wrappers",
Yves Gerey3e707812018-11-28 15:47:49645 "//third_party/abseil-cpp/absl/types:optional",
Ilya Nikolaevskiyb0588e62018-08-27 12:12:27646 ]
647}
648
ehmaldonado38a21322016-09-02 11:10:34649rtc_source_set("test_common") {
kjellander0f380d82016-06-01 11:48:26650 testonly = true
651 sources = [
652 "call_test.cc",
653 "call_test.h",
kjellander0f380d82016-06-01 11:48:26654 "constants.cc",
655 "constants.h",
kjellander0f380d82016-06-01 11:48:26656 "drifting_clock.cc",
657 "drifting_clock.h",
658 "encoder_settings.cc",
659 "encoder_settings.h",
sakal55d932b2016-09-30 13:19:08660 "fake_videorenderer.h",
kjellander0f380d82016-06-01 11:48:26661 "layer_filtering_transport.cc",
662 "layer_filtering_transport.h",
Danil Chapovalovdd7e2842018-03-09 15:37:03663 "mock_transport.cc",
kjellander0f380d82016-06-01 11:48:26664 "mock_transport.h",
kjellander0f380d82016-06-01 11:48:26665 "null_transport.cc",
666 "null_transport.h",
667 "rtp_rtcp_observer.h",
668 "statistics.cc",
669 "statistics.h",
Niels Möllercbcbc222018-09-28 07:07:24670 "video_decoder_proxy_factory.h",
671 "video_encoder_proxy_factory.h",
kjellander0f380d82016-06-01 11:48:26672 ]
Robin Raymondce1b1402018-11-23 01:10:11673 if (current_os != "winuwp") {
674 # The filtering of *_win.cc is not done for WinUWP (intentionally) as
675 # most _win.cc files are compatible with WinUWP. However, the
676 # peek/dispatch Win32 runloops are entirely WinUWP incompatible thus
677 # WinUWP uses the generic runloop as defined for non-Windows targets.
678 sources += [ "win/run_loop_win.cc" ]
679 }
680 if (!is_win || current_os == "winuwp") {
kjellander0f380d82016-06-01 11:48:26681 sources += [
682 "run_loop.cc",
683 "run_loop.h",
684 ]
685 }
686
kjellandere40a7ee2016-10-17 06:56:12687 if (!build_with_chromium && is_clang) {
688 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 11:10:34689 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander0f380d82016-06-01 11:48:26690 }
691
692 deps = [
perkj488c5dc2017-02-08 13:55:51693 ":direct_transport",
Ilya Nikolaevskiyb0588e62018-08-27 12:12:27694 ":fake_video_codecs",
Patrik Höglund7696bef2018-03-15 14:05:39695 ":fileutils",
kjellander0f380d82016-06-01 11:48:26696 ":rtp_test_utils",
697 ":test_support",
perkjc5726c12017-03-01 11:37:08698 ":video_test_common",
Yves Gerey3e707812018-11-28 15:47:49699 "../:webrtc_common",
Patrik Höglundbe214a22018-01-04 11:14:35700 "../api:libjingle_peerconnection_api",
Artem Titov46c4e602018-08-17 12:26:54701 "../api:simulated_network_api",
mbonadei3edccb92017-06-01 11:47:20702 "../api:transport_api",
mbonadei3edccb92017-06-01 11:47:20703 "../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 13:46:30704 "../api/audio_codecs:builtin_audio_encoder_factory",
Danil Chapovalovddc84e92018-10-24 15:01:58705 "../api/test/video:function_video_factory",
Jiawei Ouc2ebe212018-11-08 18:02:56706 "../api/video:builtin_video_bitrate_allocator_factory",
707 "../api/video:video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 09:15:30708 "../api/video:video_frame",
ilnikd60d06a2017-04-05 10:02:20709 "../api/video_codecs:video_codecs_api",
kjellander94cee312016-06-10 08:56:57710 "../audio",
kjellander94cee312016-06-10 08:56:57711 "../call",
Mirko Bonadeia0e1a552017-12-04 09:50:51712 "../call:call_interfaces",
Artem Titov4e199e92018-08-20 11:30:39713 "../call:fake_network",
Yves Gerey3e707812018-11-28 15:47:49714 "../call:rtp_interfaces",
sprangdb2a9fc2017-08-09 13:42:32715 "../call:rtp_sender",
Artem Titov4e199e92018-08-20 11:30:39716 "../call:simulated_network",
Artem Titov46c4e602018-08-17 12:26:54717 "../call:simulated_packet_receiver",
aleloi440b6d92017-08-22 12:43:23718 "../call:video_stream_api",
mbonadei3edccb92017-06-01 11:47:20719 "../logging:rtc_event_log_api",
Qingsi Wang970b0882018-02-01 19:04:46720 "../logging:rtc_event_log_impl_base",
Emircan Uysaler03e6ec92018-03-09 23:03:26721 "../media:rtc_internal_video_codecs",
Mirko Bonadeiad627922017-11-30 16:16:21722 "../media:rtc_media_base",
Artem Titov3faa8322018-03-07 13:44:00723 "../modules/audio_device",
Paulina Hensman7bd79a02018-03-15 11:44:12724 "../modules/audio_device:audio_device_impl",
mbonadei3edccb92017-06-01 11:47:20725 "../modules/audio_device:mock_audio_device",
aleloi10111bc2016-11-17 14:48:48726 "../modules/audio_mixer:audio_mixer_impl",
aleloidd310712016-11-17 14:28:59727 "../modules/audio_processing",
mbonadei3edccb92017-06-01 11:47:20728 "../modules/rtp_rtcp",
729 "../modules/rtp_rtcp:mock_rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 06:51:33730 "../modules/rtp_rtcp:rtp_rtcp_format",
Yves Gerey3e707812018-11-28 15:47:49731 "../modules/rtp_rtcp:rtp_video_header",
732 "../modules/video_coding:codec_globals_headers",
charujaincb728ea2017-09-18 10:08:08733 "../modules/video_coding:video_coding_utility",
mbonadei3edccb92017-06-01 11:47:20734 "../modules/video_coding:webrtc_h264",
Emircan Uysaler03e6ec92018-03-09 23:03:26735 "../modules/video_coding:webrtc_multiplex",
Sergio Garcia Murillo43800f92018-06-21 14:16:38736 "../modules/video_coding:webrtc_vp8",
mbonadei3edccb92017-06-01 11:47:20737 "../modules/video_coding:webrtc_vp9",
Patrik Höglunda8005cf2017-12-13 15:05:42738 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 17:40:47739 "../rtc_base:rtc_base_approved",
mbonadei3edccb92017-06-01 11:47:20740 "../system_wrappers",
Mirko Bonadei17f48782018-09-28 06:51:10741 "../system_wrappers:field_trial",
kjellander94cee312016-06-10 08:56:57742 "../video",
kjellander0f380d82016-06-01 11:48:26743 "//testing/gtest",
Karl Wiberg918f50c2018-07-05 09:40:33744 "//third_party/abseil-cpp/absl/memory",
kjellander0f380d82016-06-01 11:48:26745 ]
mbonadei148d5a22017-04-28 12:24:50746 if (!is_android && !build_with_chromium) {
oprypin92220ff2017-03-23 10:40:03747 deps += [ "../modules/video_capture:video_capture_internal_impl" ]
748 }
kjellander0f380d82016-06-01 11:48:26749}
750
ehmaldonado38a21322016-09-02 11:10:34751rtc_source_set("test_renderer") {
mbonadei9c296b32017-09-05 12:11:41752 public_deps = [
753 ":test_renderer_generic",
754 ]
kjellander0f380d82016-06-01 11:48:26755 testonly = true
mbonadeicd95a4e2017-08-24 06:55:54756 if (is_mac) {
mbonadei9c296b32017-09-05 12:11:41757 public_deps += [ ":test_renderer_objc" ]
mbonadeicd95a4e2017-08-24 06:55:54758 }
759}
760
761if (is_mac) {
762 rtc_source_set("test_renderer_objc") {
763 testonly = true
mbonadei9c296b32017-09-05 12:11:41764 visibility = [ ":test_renderer" ]
mbonadeicd95a4e2017-08-24 06:55:54765 sources = [
766 "mac/video_renderer_mac.h",
767 "mac/video_renderer_mac.mm",
768 ]
mbonadeicd95a4e2017-08-24 06:55:54769 deps = [
mbonadei9c296b32017-09-05 12:11:41770 ":test_renderer_generic",
mbonadeicd95a4e2017-08-24 06:55:54771 "../rtc_base:rtc_base_approved",
772 ]
773 libs = [
774 "Cocoa.framework",
775 "OpenGL.framework",
776 "CoreVideo.framework",
777 ]
778 if (!build_with_chromium && is_clang) {
779 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
780 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
781 }
782 }
783}
784
785rtc_source_set("test_renderer_generic") {
786 testonly = true
mbonadei9c296b32017-09-05 12:11:41787 visibility = [
788 ":test_renderer",
789 ":test_renderer_objc",
790 ]
kjellander0f380d82016-06-01 11:48:26791 libs = []
792 sources = [
kjellander0f380d82016-06-01 11:48:26793 "video_renderer.cc",
794 "video_renderer.h",
795 "win/d3d_renderer.cc",
796 "win/d3d_renderer.h",
797 ]
mbonadeicd95a4e2017-08-24 06:55:54798 deps = [
799 ":test_support",
800 "..:webrtc_common",
Niels Möllerc6ce9c52018-05-11 09:15:30801 "../api/video:video_frame",
mbonadeicd95a4e2017-08-24 06:55:54802 "../common_video",
Mirko Bonadeiad627922017-11-30 16:16:21803 "../media:rtc_media_base",
Patrik Höglunda8005cf2017-12-13 15:05:42804 "../rtc_base:checks",
mbonadeicd95a4e2017-08-24 06:55:54805 "../rtc_base:rtc_base_approved",
806 "//testing/gtest",
807 ]
Joachim Bauch75f18fc2017-12-20 20:25:47808 if (!(is_linux && rtc_use_x11) && !is_mac && !is_win) {
kjellander0f380d82016-06-01 11:48:26809 sources += [ "null_platform_renderer.cc" ]
810 }
Joachim Bauch75f18fc2017-12-20 20:25:47811 if ((is_linux && rtc_use_x11) || is_mac) {
kjellander0f380d82016-06-01 11:48:26812 sources += [
813 "gl/gl_renderer.cc",
814 "gl/gl_renderer.h",
815 ]
816 }
817
Joachim Bauch75f18fc2017-12-20 20:25:47818 if (is_linux && rtc_use_x11) {
Edward Lemur84a87c42017-11-07 18:07:31819 sources += [
820 "linux/glx_renderer.cc",
821 "linux/glx_renderer.h",
822 "linux/video_renderer_linux.cc",
823 ]
kjellander0f380d82016-06-01 11:48:26824 libs += [
825 "Xext",
826 "X11",
827 "GL",
828 ]
829 }
830 if (is_android) {
831 libs += [
832 "GLESv2",
833 "log",
834 ]
835 }
kjellander0f380d82016-06-01 11:48:26836
kjellandere40a7ee2016-10-17 06:56:12837 if (!build_with_chromium && is_clang) {
838 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 11:10:34839 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander0f380d82016-06-01 11:48:26840 }
kjellander0f380d82016-06-01 11:48:26841}
kwiberg37e99fd2017-04-10 12:15:48842
843rtc_source_set("audio_codec_mocks") {
844 testonly = true
845 sources = [
Niels Möller3f651d82018-12-19 14:06:17846 # TODO(nisse): Move these factories to their own target, to avoid
847 # unnecessary dependencies on gmock and gtest.
Niels Möllerb7180c02018-12-06 12:07:11848 "audio_decoder_proxy_factory.h",
Niels Möllera0f44302018-11-30 09:45:12849 "function_audio_decoder_factory.h",
kwiberg2b3aa142017-06-14 10:31:17850 "mock_audio_decoder.cc",
kwiberg37e99fd2017-04-10 12:15:48851 "mock_audio_decoder.h",
852 "mock_audio_decoder_factory.h",
ossueb1fde42017-05-02 13:46:30853 "mock_audio_encoder.cc",
854 "mock_audio_encoder.h",
855 "mock_audio_encoder_factory.h",
856 ]
857
858 deps = [
mbonadei3edccb92017-06-01 11:47:20859 ":test_support",
kwiberg529662a2017-09-04 12:43:17860 "../api:array_view",
ossueb1fde42017-05-02 13:46:30861 "../api/audio_codecs:audio_codecs_api",
mbonadei3edccb92017-06-01 11:47:20862 "../api/audio_codecs:builtin_audio_decoder_factory",
Niels Möllera0f44302018-11-30 09:45:12863 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 17:40:47864 "../rtc_base:rtc_base_approved",
Niels Möllera0f44302018-11-30 09:45:12865 "//third_party/abseil-cpp/absl/memory",
kwiberg37e99fd2017-04-10 12:15:48866 ]
867}
sakald7fdb802017-05-26 08:51:53868
Artem Titov66a29b92019-01-15 13:43:20869rtc_source_set("copy_to_file_audio_capturer") {
870 testonly = true
871 sources = [
872 "testsupport/copy_to_file_audio_capturer.cc",
873 "testsupport/copy_to_file_audio_capturer.h",
874 ]
875 deps = [
876 "../api:array_view",
877 "../common_audio:common_audio",
878 "../modules/audio_device:audio_device_impl",
879 "../rtc_base:rtc_base_approved",
880 "//third_party/abseil-cpp/absl/memory",
881 "//third_party/abseil-cpp/absl/types:optional",
882 ]
883}
884
885rtc_source_set("copy_to_file_audio_capturer_unittest") {
886 testonly = true
887 sources = [
888 "testsupport/copy_to_file_audio_capturer_unittest.cc",
889 ]
890 deps = [
891 ":copy_to_file_audio_capturer",
892 ":fileutils",
893 ":test_support",
894 "../modules/audio_device:audio_device_impl",
895 "//third_party/abseil-cpp/absl/memory",
896 ]
897}
898
sakald7fdb802017-05-26 08:51:53899if (!build_with_chromium && is_android) {
Mirko Bonadeifbb3b7d2017-11-07 15:36:33900 rtc_android_library("native_test_java") {
sakald7fdb802017-05-26 08:51:53901 testonly = true
902 java_files = [
903 "android/org/webrtc/native_test/RTCNativeUnitTest.java",
904 "android/org/webrtc/native_test/RTCNativeUnitTestActivity.java",
905 ]
906 deps = [
jianjun.zhuc0247402017-07-11 13:20:45907 "../rtc_base:base_java",
sakald7fdb802017-05-26 08:51:53908 "//testing/android/native_test:native_test_java",
sakald7fdb802017-05-26 08:51:53909 ]
910 }
911}
Benjamin Wright8efafdf2019-01-11 18:48:42912
913rtc_source_set("call_config_utils") {
914 sources = [
915 "call_config_utils.cc",
916 "call_config_utils.h",
917 ]
918 deps = [
919 "../call:call_interfaces",
920 "../call:video_stream_api",
921 "../rtc_base:rtc_json",
922 ]
923}