kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 1 | # 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 | |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 9 | import("//build/config/ui.gni") |
Robin Raymond | ce1b140 | 2018-11-22 20:10:11 -0500 | [diff] [blame] | 10 | import("../webrtc.gni") |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 11 | if (is_android) { |
| 12 | import("//build/config/android/rules.gni") |
| 13 | } |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 14 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 15 | group("test") { |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 16 | testonly = true |
| 17 | |
| 18 | deps = [ |
Artem Titov | 66a29b9 | 2019-01-15 14:43:20 +0100 | [diff] [blame] | 19 | ":copy_to_file_audio_capturer", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 20 | ":rtp_test_utils", |
| 21 | ":test_common", |
| 22 | ":test_renderer", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 23 | ":test_support", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 24 | ":video_test_common", |
Artem Titov | 4895b45 | 2019-01-14 16:54:04 +0100 | [diff] [blame] | 25 | "pc/e2e", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 26 | ] |
mbonadei | 148d5a2 | 2017-04-28 05:24:50 -0700 | [diff] [blame] | 27 | |
oprypin | fbbba3f | 2017-09-25 08:34:41 -0700 | [diff] [blame] | 28 | if (rtc_include_tests) { |
mbonadei | 148d5a2 | 2017-04-28 05:24:50 -0700 | [diff] [blame] | 29 | deps += [ |
| 30 | ":test_main", |
| 31 | ":test_support_unittests", |
Sebastian Jansson | 98b07e9 | 2018-09-27 13:47:01 +0200 | [diff] [blame] | 32 | "scenario/scenario_tests", |
mbonadei | 148d5a2 | 2017-04-28 05:24:50 -0700 | [diff] [blame] | 33 | ] |
| 34 | } |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 35 | } |
| 36 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 37 | rtc_source_set("video_test_common") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 38 | visibility = [ "*" ] |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 39 | testonly = true |
| 40 | sources = [ |
| 41 | "fake_texture_frame.cc", |
| 42 | "fake_texture_frame.h", |
| 43 | "frame_generator.cc", |
| 44 | "frame_generator.h", |
ehmaldonado | 656610f | 2017-02-06 02:21:11 -0800 | [diff] [blame] | 45 | "frame_generator_capturer.cc", |
| 46 | "frame_generator_capturer.h", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 47 | "frame_utils.cc", |
| 48 | "frame_utils.h", |
Sebastian Jansson | f1f363f | 2018-08-13 14:24:58 +0200 | [diff] [blame] | 49 | "test_video_capturer.cc", |
| 50 | "test_video_capturer.h", |
mflodman | 351424e | 2017-08-10 02:43:14 -0700 | [diff] [blame] | 51 | "video_codec_settings.h", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 52 | ] |
| 53 | |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 54 | deps = [ |
Sebastian Jansson | 53571c7 | 2019-07-31 17:30:03 +0200 | [diff] [blame] | 55 | ":fileutils", |
Patrik Höglund | 9e19403 | 2018-01-04 15:58:20 +0100 | [diff] [blame] | 56 | "../api:libjingle_peerconnection_api", |
Mirko Bonadei | d970807 | 2019-01-25 20:26:48 +0100 | [diff] [blame] | 57 | "../api:scoped_refptr", |
Sebastian Jansson | fb14c5d | 2019-02-28 13:30:04 +0100 | [diff] [blame] | 58 | "../api/task_queue", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 59 | "../api/video:video_frame", |
Emircan Uysaler | 0823eec | 2018-07-13 17:10:00 -0700 | [diff] [blame] | 60 | "../api/video:video_frame_i010", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 61 | "../api/video:video_frame_i420", |
Chen Xing | 5d24b16 | 2019-06-10 12:59:38 +0200 | [diff] [blame] | 62 | "../api/video:video_rtp_headers", |
mflodman | 351424e | 2017-08-10 02:43:14 -0700 | [diff] [blame] | 63 | "../api/video_codecs:video_codecs_api", |
aleloi | 440b6d9 | 2017-08-22 05:43:23 -0700 | [diff] [blame] | 64 | "../call:video_stream_api", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 65 | "../common_video", |
sprang | c5d62e2 | 2017-04-02 23:53:04 -0700 | [diff] [blame] | 66 | "../media:rtc_media_base", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 67 | "../rtc_base", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 68 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 69 | "../rtc_base:rtc_task_queue", |
Sebastian Jansson | ecb6897 | 2019-01-18 10:30:54 +0100 | [diff] [blame] | 70 | "../rtc_base/task_utils:repeating_task", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 71 | "../system_wrappers", |
Danil Chapovalov | abd4273 | 2018-09-10 14:07:45 +0200 | [diff] [blame] | 72 | "//third_party/abseil-cpp/absl/memory", |
Danil Chapovalov | 431abd9 | 2018-06-18 12:54:17 +0200 | [diff] [blame] | 73 | "//third_party/abseil-cpp/absl/types:optional", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 74 | ] |
| 75 | } |
| 76 | |
Kári Tristan Helgason | ede7cb2 | 2019-03-06 10:34:09 +0100 | [diff] [blame] | 77 | if (!build_with_chromium) { |
| 78 | if (is_mac || is_ios) { |
| 79 | rtc_source_set("video_test_mac") { |
| 80 | testonly = true |
| 81 | sources = [ |
| 82 | "mac_capturer.h", |
| 83 | "mac_capturer.mm", |
| 84 | ] |
| 85 | deps = [ |
| 86 | ":video_test_common", |
| 87 | "../api:libjingle_peerconnection_api", |
| 88 | "../api:scoped_refptr", |
| 89 | "../modules/video_capture:video_capture_module", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 90 | "../rtc_base", |
Kári Tristan Helgason | ede7cb2 | 2019-03-06 10:34:09 +0100 | [diff] [blame] | 91 | "../sdk:base_objc", |
| 92 | "../sdk:native_api", |
| 93 | "../sdk:native_video", |
| 94 | "../sdk:videocapture_objc", |
| 95 | ] |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | rtc_source_set("platform_video_capturer") { |
| 100 | testonly = true |
| 101 | sources = [ |
| 102 | "platform_video_capturer.cc", |
| 103 | "platform_video_capturer.h", |
| 104 | ] |
| 105 | deps = [ |
| 106 | ":video_test_common", |
| 107 | "//third_party/abseil-cpp/absl/memory", |
| 108 | ] |
| 109 | if (is_mac || is_ios) { |
| 110 | deps += [ ":video_test_mac" ] |
| 111 | } else { |
| 112 | sources += [ |
| 113 | "vcm_capturer.cc", |
| 114 | "vcm_capturer.h", |
| 115 | ] |
| 116 | deps += [ |
| 117 | "../api:scoped_refptr", |
| 118 | "../modules/video_capture:video_capture_module", |
| 119 | "../rtc_base:checks", |
| 120 | "../rtc_base:logging", |
| 121 | ] |
| 122 | } |
| 123 | } |
| 124 | } |
| 125 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 126 | rtc_source_set("rtp_test_utils") { |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 127 | testonly = true |
| 128 | sources = [ |
| 129 | "rtcp_packet_parser.cc", |
| 130 | "rtcp_packet_parser.h", |
| 131 | "rtp_file_reader.cc", |
| 132 | "rtp_file_reader.h", |
| 133 | "rtp_file_writer.cc", |
| 134 | "rtp_file_writer.h", |
| 135 | ] |
| 136 | |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 137 | deps = [ |
kwiberg | 529662a | 2017-09-04 05:43:17 -0700 | [diff] [blame] | 138 | "../api:array_view", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 139 | "../modules/rtp_rtcp", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 140 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 141 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 142 | "../rtc_base:rtc_base_approved", |
Niels Möller | a12c42a | 2018-07-25 16:05:48 +0200 | [diff] [blame] | 143 | "../rtc_base/system:arch", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 144 | ] |
| 145 | } |
| 146 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 147 | rtc_source_set("field_trial") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 148 | visibility = [ "*" ] |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 149 | testonly = true |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 150 | sources = [ |
| 151 | "field_trial.cc", |
| 152 | "field_trial.h", |
| 153 | ] |
| 154 | |
| 155 | deps = [ |
Mirko Bonadei | 17f4878 | 2018-09-28 08:51:10 +0200 | [diff] [blame] | 156 | "../system_wrappers:field_trial", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 157 | ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 158 | } |
| 159 | |
Edward Lemur | e66572b | 2018-01-05 15:34:09 +0100 | [diff] [blame] | 160 | rtc_source_set("perf_test") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 161 | visibility = [ "*" ] |
Edward Lemur | e66572b | 2018-01-05 15:34:09 +0100 | [diff] [blame] | 162 | sources = [ |
| 163 | "testsupport/perf_test.cc", |
| 164 | "testsupport/perf_test.h", |
| 165 | ] |
| 166 | deps = [ |
Edward Lemur | e66572b | 2018-01-05 15:34:09 +0100 | [diff] [blame] | 167 | "../api:array_view", |
Oleh Prypin | d136b28 | 2018-10-03 13:53:44 +0200 | [diff] [blame] | 168 | "../rtc_base:checks", |
Edward Lemur | e66572b | 2018-01-05 15:34:09 +0100 | [diff] [blame] | 169 | "../rtc_base:rtc_base_approved", |
| 170 | ] |
| 171 | } |
| 172 | |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 173 | if (is_ios) { |
| 174 | rtc_source_set("test_support_objc") { |
| 175 | testonly = true |
mbonadei | 9c296b3 | 2017-09-05 05:11:41 -0700 | [diff] [blame] | 176 | visibility = [ ":test_support" ] |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 177 | sources = [ |
Artem Titarenko | 34fc346 | 2018-11-06 12:29:29 +0100 | [diff] [blame] | 178 | "ios/coverage_util_ios.h", |
| 179 | "ios/coverage_util_ios.mm", |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 180 | "ios/test_support.h", |
| 181 | "ios/test_support.mm", |
| 182 | ] |
denicija | d207a39 | 2017-09-11 06:43:28 -0700 | [diff] [blame] | 183 | deps = [ |
Edward Lemur | e66572b | 2018-01-05 15:34:09 +0100 | [diff] [blame] | 184 | ":perf_test", |
Anders Carlsson | 7bca8ca | 2018-08-30 09:30:29 +0200 | [diff] [blame] | 185 | "../sdk:helpers_objc", |
denicija | d207a39 | 2017-09-11 06:43:28 -0700 | [diff] [blame] | 186 | ] |
Artem Titarenko | 34fc346 | 2018-11-06 12:29:29 +0100 | [diff] [blame] | 187 | configs += [ ":test_support_objc_config" ] |
| 188 | } |
| 189 | |
| 190 | config("test_support_objc_config") { |
| 191 | defines = [] |
| 192 | |
| 193 | if (use_clang_coverage) { |
| 194 | defines += [ "WEBRTC_IOS_ENABLE_COVERAGE" ] |
| 195 | } |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 196 | } |
| 197 | } |
| 198 | |
Patrik Höglund | 34924c2 | 2018-01-19 09:11:07 +0100 | [diff] [blame] | 199 | config("suppress_warning_4373") { |
| 200 | if (is_win) { |
| 201 | cflags = [ |
| 202 | # MSVC has a bug which generates this warning when using mocks; see the |
| 203 | # section on warning 4373 in he googlemock FAQ. This warning isn't the |
| 204 | # least relevant for us, anyway. |
| 205 | "/wd4373", |
| 206 | ] |
| 207 | } |
| 208 | } |
| 209 | |
Sebastian Jansson | 2afd281 | 2018-08-23 14:44:05 +0200 | [diff] [blame] | 210 | config("test_main_direct_config") { |
| 211 | visibility = [ ":*" ] |
| 212 | defines = [ "UNIT_TEST" ] |
| 213 | } |
mbonadei | 148d5a2 | 2017-04-28 05:24:50 -0700 | [diff] [blame] | 214 | rtc_source_set("test_support") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 215 | visibility = [ "*" ] |
mbonadei | 148d5a2 | 2017-04-28 05:24:50 -0700 | [diff] [blame] | 216 | testonly = true |
kjellander | 32c4a20 | 2016-08-30 02:53:49 -0700 | [diff] [blame] | 217 | |
Mirko Bonadei | 65ce311 | 2018-01-26 11:57:47 +0100 | [diff] [blame] | 218 | all_dependent_configs = [ |
| 219 | ":suppress_warning_4373", |
| 220 | "//third_party/googletest:gmock_config", |
| 221 | "//third_party/googletest:gtest_config", |
| 222 | ] |
Patrik Höglund | 34924c2 | 2018-01-19 09:11:07 +0100 | [diff] [blame] | 223 | |
mbonadei | 148d5a2 | 2017-04-28 05:24:50 -0700 | [diff] [blame] | 224 | sources = [ |
| 225 | "gmock.h", |
| 226 | "gtest.h", |
mbonadei | 148d5a2 | 2017-04-28 05:24:50 -0700 | [diff] [blame] | 227 | ] |
| 228 | |
Kári Tristan Helgason | ede7cb2 | 2019-03-06 10:34:09 +0100 | [diff] [blame] | 229 | public_deps = [] # no-presubmit-check TODO(webrtc:8603) |
Kári Tristan Helgason | e2baffb | 2017-06-09 10:31:58 +0200 | [diff] [blame] | 230 | if (is_ios) { |
Kári Tristan Helgason | ede7cb2 | 2019-03-06 10:34:09 +0100 | [diff] [blame] | 231 | public_deps += [ ":test_support_objc" ] # no-presubmit-check TODO(webrtc:8603) |
Kári Tristan Helgason | e2baffb | 2017-06-09 10:31:58 +0200 | [diff] [blame] | 232 | } |
| 233 | |
Sebastian Jansson | 2afd281 | 2018-08-23 14:44:05 +0200 | [diff] [blame] | 234 | public_configs = [ ":test_main_direct_config" ] |
mbonadei | 148d5a2 | 2017-04-28 05:24:50 -0700 | [diff] [blame] | 235 | deps = [ |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 236 | "../rtc_base:rtc_base_approved", |
mbonadei | 148d5a2 | 2017-04-28 05:24:50 -0700 | [diff] [blame] | 237 | "//testing/gmock", |
| 238 | "//testing/gtest", |
| 239 | ] |
kjellander | 32c4a20 | 2016-08-30 02:53:49 -0700 | [diff] [blame] | 240 | } |
| 241 | |
oprypin | fbbba3f | 2017-09-25 08:34:41 -0700 | [diff] [blame] | 242 | if (rtc_include_tests) { |
Artem Titov | 40a7a35 | 2018-10-15 15:25:34 +0200 | [diff] [blame] | 243 | rtc_source_set("test_main_lib") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 244 | visibility = [ "*" ] |
Oleh Prypin | 90ce84e | 2017-09-25 10:27:22 +0200 | [diff] [blame] | 245 | testonly = true |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 246 | sources = [ |
Artem Titov | 40a7a35 | 2018-10-15 15:25:34 +0200 | [diff] [blame] | 247 | "test_main_lib.cc", |
| 248 | "test_main_lib.h", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 249 | ] |
| 250 | |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 251 | deps = [ |
| 252 | ":field_trial", |
Edward Lemur | e66572b | 2018-01-05 15:34:09 +0100 | [diff] [blame] | 253 | ":perf_test", |
Artem Titov | 40a7a35 | 2018-10-15 15:25:34 +0200 | [diff] [blame] | 254 | ":test_support", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 255 | "../rtc_base", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 256 | "../rtc_base:checks", |
Mirko Bonadei | 17f4878 | 2018-09-28 08:51:10 +0200 | [diff] [blame] | 257 | "../system_wrappers:field_trial", |
| 258 | "../system_wrappers:metrics", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 259 | "//testing/gtest", |
Mirko Bonadei | 2ab97f6 | 2019-07-18 13:44:12 +0200 | [diff] [blame] | 260 | "//third_party/abseil-cpp/absl/flags:flag", |
| 261 | "//third_party/abseil-cpp/absl/flags:parse", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 262 | "//third_party/abseil-cpp/absl/memory", |
Patrik Höglund | 7730193 | 2018-10-09 15:09:51 +0200 | [diff] [blame] | 263 | |
| 264 | # TODO(bugs.webrtc.org/9792): This is needed for downstream projects on |
| 265 | # Android, where it's replaced by an internal version of fileutils that |
| 266 | # has a certain flag. Remove this once the internal fileutils has been |
| 267 | # eliminated. |
| 268 | "../test:fileutils", |
mbonadei | 9452c62 | 2017-04-27 12:29:29 -0700 | [diff] [blame] | 269 | ] |
| 270 | } |
mbonadei | 9452c62 | 2017-04-27 12:29:29 -0700 | [diff] [blame] | 271 | |
Artem Titov | 40a7a35 | 2018-10-15 15:25:34 +0200 | [diff] [blame] | 272 | rtc_source_set("test_main") { |
| 273 | visibility = [ "*" ] |
| 274 | testonly = true |
| 275 | sources = [ |
| 276 | "test_main.cc", |
| 277 | ] |
| 278 | |
| 279 | deps = [ |
| 280 | ":test_main_lib", |
| 281 | ] |
| 282 | } |
| 283 | |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 284 | rtc_source_set("video_test_support") { |
| 285 | testonly = true |
| 286 | |
| 287 | sources = [ |
| 288 | "testsupport/frame_reader.h", |
| 289 | "testsupport/frame_writer.h", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 290 | "testsupport/mock/mock_frame_reader.h", |
Artem Titov | 08a9b61 | 2019-01-17 21:37:19 +0100 | [diff] [blame] | 291 | "testsupport/video_frame_writer.cc", |
| 292 | "testsupport/video_frame_writer.h", |
Artem Titov | 645df9e | 2019-01-14 14:21:59 +0100 | [diff] [blame] | 293 | "testsupport/y4m_frame_reader.cc", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 294 | "testsupport/y4m_frame_writer.cc", |
| 295 | "testsupport/yuv_frame_reader.cc", |
| 296 | "testsupport/yuv_frame_writer.cc", |
| 297 | ] |
| 298 | |
| 299 | deps = [ |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 300 | ":fileutils", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 301 | ":test_support", |
| 302 | ":video_test_common", |
Artem Titov | 08a9b61 | 2019-01-17 21:37:19 +0100 | [diff] [blame] | 303 | "../api:scoped_refptr", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 304 | "../api/video:video_frame", |
| 305 | "../api/video:video_frame_i420", |
Chen Xing | 5d24b16 | 2019-06-10 12:59:38 +0200 | [diff] [blame] | 306 | "../api/video:video_rtp_headers", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 307 | "../common_video", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 308 | "../rtc_base:checks", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 309 | "../rtc_base:rtc_base_approved", |
| 310 | "../system_wrappers", |
Artem Titov | 533a9fe | 2019-03-21 12:18:05 +0100 | [diff] [blame] | 311 | "//third_party/abseil-cpp/absl/memory", |
Mirko Bonadei | 401d056 | 2017-12-14 11:24:00 +0100 | [diff] [blame] | 312 | "//third_party/libyuv", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 313 | ] |
| 314 | |
| 315 | if (!is_ios) { |
| 316 | deps += [ "//third_party:jpeg" ] |
| 317 | sources += [ "testsupport/jpeg_frame_writer.cc" ] |
| 318 | } else { |
| 319 | sources += [ "testsupport/jpeg_frame_writer_ios.cc" ] |
| 320 | } |
| 321 | |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 322 | if (is_android) { |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 323 | deps += [ "//base" ] |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 324 | } |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 325 | } |
| 326 | |
Edward Lemur | af8659a | 2017-09-27 14:46:24 +0200 | [diff] [blame] | 327 | rtc_source_set("test_support_test_artifacts") { |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 328 | testonly = true |
| 329 | sources = [ |
Edward Lemur | af8659a | 2017-09-27 14:46:24 +0200 | [diff] [blame] | 330 | "testsupport/test_artifacts.cc", |
| 331 | "testsupport/test_artifacts.h", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 332 | ] |
| 333 | deps = [ |
| 334 | ":fileutils", |
| 335 | "../rtc_base:rtc_base_approved", |
Niels Möller | b7edf69 | 2019-02-08 16:40:53 +0100 | [diff] [blame] | 336 | "../rtc_base/system:file_wrapper", |
Mirko Bonadei | 2ab97f6 | 2019-07-18 13:44:12 +0200 | [diff] [blame] | 337 | "//third_party/abseil-cpp/absl/flags:flag", |
| 338 | "//third_party/abseil-cpp/absl/flags:parse", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 339 | ] |
| 340 | } |
| 341 | |
| 342 | test_support_unittests_resources = [ |
| 343 | "../resources/foreman_cif_short.yuv", |
| 344 | "../resources/video_coding/frame-ethernet-ii.pcap", |
| 345 | "../resources/video_coding/frame-loopback.pcap", |
| 346 | "../resources/video_coding/pltype103.rtp", |
| 347 | "../resources/video_coding/pltype103_header_only.rtp", |
| 348 | "../resources/video_coding/ssrcs-2.pcap", |
| 349 | "../resources/video_coding/ssrcs-3.pcap", |
Oleh Prypin | 90ce84e | 2017-09-25 10:27:22 +0200 | [diff] [blame] | 350 | ] |
Oleh Prypin | 90ce84e | 2017-09-25 10:27:22 +0200 | [diff] [blame] | 351 | |
| 352 | if (is_ios) { |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 353 | bundle_data("test_support_unittests_bundle_data") { |
| 354 | testonly = true |
| 355 | sources = test_support_unittests_resources |
| 356 | outputs = [ |
| 357 | "{{bundle_resources_dir}}/{{source_file_part}}", |
| 358 | ] |
| 359 | } |
Oleh Prypin | 90ce84e | 2017-09-25 10:27:22 +0200 | [diff] [blame] | 360 | } |
| 361 | |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 362 | rtc_test("test_support_unittests") { |
| 363 | deps = [ |
Benjamin Wright | 9db8b88 | 2019-01-14 15:30:20 -0800 | [diff] [blame] | 364 | ":call_config_utils", |
Artem Titov | 66a29b9 | 2019-01-15 14:43:20 +0100 | [diff] [blame] | 365 | ":copy_to_file_audio_capturer_unittest", |
Sebastian Jansson | 0940811 | 2018-04-24 14:41:22 +0200 | [diff] [blame] | 366 | ":direct_transport", |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 367 | ":fake_video_codecs", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 368 | ":fileutils", |
Mirko Bonadei | 4639999 | 2018-08-22 15:32:38 +0200 | [diff] [blame] | 369 | ":fileutils_unittests", |
Edward Lemur | e66572b | 2018-01-05 15:34:09 +0100 | [diff] [blame] | 370 | ":perf_test", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 371 | ":rtp_test_utils", |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 372 | ":test_common", |
Mirko Bonadei | 9098b30 | 2018-04-06 10:48:10 +0200 | [diff] [blame] | 373 | ":test_main", |
| 374 | ":test_support", |
| 375 | ":test_support_test_artifacts", |
| 376 | ":video_test_common", |
| 377 | ":video_test_support", |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 378 | "../api:create_simulcast_test_fixture_api", |
Mirko Bonadei | d970807 | 2019-01-25 20:26:48 +0100 | [diff] [blame] | 379 | "../api:scoped_refptr", |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 380 | "../api:simulcast_test_fixture_api", |
Danil Chapovalov | 99b71df | 2018-10-26 15:57:48 +0200 | [diff] [blame] | 381 | "../api/test/video:function_video_factory", |
Jiawei Ou | c2ebe21 | 2018-11-08 10:02:56 -0800 | [diff] [blame] | 382 | "../api/video:builtin_video_bitrate_allocator_factory", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 383 | "../api/video:video_frame", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 384 | "../api/video:video_frame_i420", |
Chen Xing | 5d24b16 | 2019-06-10 12:59:38 +0200 | [diff] [blame] | 385 | "../api/video:video_rtp_headers", |
Benjamin Wright | 9db8b88 | 2019-01-14 15:30:20 -0800 | [diff] [blame] | 386 | "../call:video_stream_api", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 387 | "../modules/rtp_rtcp", |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 388 | "../modules/video_coding:simulcast_test_fixture_impl", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 389 | "../rtc_base:rtc_base_approved", |
Niels Möller | b7edf69 | 2019-02-08 16:40:53 +0100 | [diff] [blame] | 390 | "../rtc_base/system:file_wrapper", |
Mirko Bonadei | 9098b30 | 2018-04-06 10:48:10 +0200 | [diff] [blame] | 391 | "../test:single_threaded_task_queue", |
Artem Titov | 4895b45 | 2019-01-14 16:54:04 +0100 | [diff] [blame] | 392 | "pc/e2e:e2e_unittests", |
Sebastian Jansson | 98b07e9 | 2018-09-27 13:47:01 +0200 | [diff] [blame] | 393 | "scenario:scenario_unittests", |
Sebastian Jansson | 53571c7 | 2019-07-31 17:30:03 +0200 | [diff] [blame] | 394 | "time_controller", |
Sebastian Jansson | 0d617cc | 2019-03-22 15:22:16 +0100 | [diff] [blame] | 395 | "time_controller:time_controller_unittests", |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 396 | "//testing/gmock", |
Mirko Bonadei | 9098b30 | 2018-04-06 10:48:10 +0200 | [diff] [blame] | 397 | "//testing/gtest", |
Mirko Bonadei | 2ab97f6 | 2019-07-18 13:44:12 +0200 | [diff] [blame] | 398 | "//third_party/abseil-cpp/absl/flags:flag", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 399 | "//third_party/abseil-cpp/absl/memory", |
Artem Titov | 645df9e | 2019-01-14 14:21:59 +0100 | [diff] [blame] | 400 | "//third_party/abseil-cpp/absl/strings", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 401 | ] |
| 402 | sources = [ |
Benjamin Wright | 9db8b88 | 2019-01-14 15:30:20 -0800 | [diff] [blame] | 403 | "call_config_utils_unittest.cc", |
Sebastian Jansson | 0940811 | 2018-04-24 14:41:22 +0200 | [diff] [blame] | 404 | "direct_transport_unittest.cc", |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 405 | "fake_vp8_encoder_unittest.cc", |
Sebastian Jansson | 53571c7 | 2019-07-31 17:30:03 +0200 | [diff] [blame] | 406 | "frame_generator_capturer_unittest.cc", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 407 | "frame_generator_unittest.cc", |
| 408 | "rtp_file_reader_unittest.cc", |
| 409 | "rtp_file_writer_unittest.cc", |
| 410 | "single_threaded_task_queue_unittest.cc", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 411 | "testsupport/perf_test_unittest.cc", |
Edward Lemur | af8659a | 2017-09-27 14:46:24 +0200 | [diff] [blame] | 412 | "testsupport/test_artifacts_unittest.cc", |
Artem Titov | 08a9b61 | 2019-01-17 21:37:19 +0100 | [diff] [blame] | 413 | "testsupport/video_frame_writer_unittest.cc", |
Artem Titov | 645df9e | 2019-01-14 14:21:59 +0100 | [diff] [blame] | 414 | "testsupport/y4m_frame_reader_unittest.cc", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 415 | "testsupport/y4m_frame_writer_unittest.cc", |
| 416 | "testsupport/yuv_frame_reader_unittest.cc", |
| 417 | "testsupport/yuv_frame_writer_unittest.cc", |
| 418 | ] |
| 419 | |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 420 | data = test_support_unittests_resources |
| 421 | if (is_android) { |
| 422 | deps += [ "//testing/android/native_test:native_test_support" ] |
| 423 | shard_timeout = 900 |
| 424 | } |
| 425 | |
| 426 | if (is_ios) { |
| 427 | deps += [ ":test_support_unittests_bundle_data" ] |
| 428 | } |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 429 | |
Mirko Bonadei | 9098b30 | 2018-04-06 10:48:10 +0200 | [diff] [blame] | 430 | if (!is_android && !build_with_chromium) { |
| 431 | # This is needed in order to avoid: |
| 432 | # undefined symbol: webrtc::videocapturemodule::VideoCaptureImpl::Create |
| 433 | deps += [ "../modules/video_capture:video_capture_internal_impl" ] |
| 434 | } |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 435 | } |
Oleh Prypin | 90ce84e | 2017-09-25 10:27:22 +0200 | [diff] [blame] | 436 | } |
| 437 | |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 438 | if (is_ios) { |
Patrik Höglund | 8434aeb | 2018-10-05 14:52:11 +0200 | [diff] [blame] | 439 | rtc_source_set("fileutils_ios_objc") { |
Artem Titov | 8f726be | 2018-10-23 15:50:10 +0200 | [diff] [blame] | 440 | visibility = [ |
| 441 | ":fileutils", |
| 442 | ":fileutils_override_impl", |
| 443 | ] |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 444 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 445 | "testsupport/ios_file_utils.h", |
| 446 | "testsupport/ios_file_utils.mm", |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 447 | ] |
| 448 | deps = [ |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 449 | "../rtc_base:checks", |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 450 | "../rtc_base:rtc_base_approved", |
Anders Carlsson | 7bca8ca | 2018-08-30 09:30:29 +0200 | [diff] [blame] | 451 | "../sdk:helpers_objc", |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 452 | ] |
| 453 | } |
| 454 | } |
| 455 | |
Patrik Höglund | 8434aeb | 2018-10-05 14:52:11 +0200 | [diff] [blame] | 456 | if (is_mac) { |
| 457 | rtc_source_set("fileutils_mac_objc") { |
Artem Titov | 8f726be | 2018-10-23 15:50:10 +0200 | [diff] [blame] | 458 | visibility = [ |
| 459 | ":fileutils", |
| 460 | ":fileutils_override_impl", |
| 461 | ] |
Patrik Höglund | 8434aeb | 2018-10-05 14:52:11 +0200 | [diff] [blame] | 462 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 463 | "testsupport/mac_file_utils.h", |
| 464 | "testsupport/mac_file_utils.mm", |
Patrik Höglund | 8434aeb | 2018-10-05 14:52:11 +0200 | [diff] [blame] | 465 | ] |
| 466 | deps = [ |
| 467 | "../rtc_base:checks", |
| 468 | ] |
| 469 | } |
| 470 | } |
| 471 | |
mbonadei | 9452c62 | 2017-04-27 12:29:29 -0700 | [diff] [blame] | 472 | rtc_source_set("fileutils") { |
| 473 | testonly = true |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 474 | visibility = [ "*" ] |
mbonadei | 9452c62 | 2017-04-27 12:29:29 -0700 | [diff] [blame] | 475 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 476 | "testsupport/file_utils.cc", |
| 477 | "testsupport/file_utils.h", |
mbonadei | 9452c62 | 2017-04-27 12:29:29 -0700 | [diff] [blame] | 478 | ] |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 479 | deps = [ |
Artem Titov | 8f726be | 2018-10-23 15:50:10 +0200 | [diff] [blame] | 480 | ":fileutils_override_api", |
| 481 | ":fileutils_override_impl", |
Artem Titov | 8f726be | 2018-10-23 15:50:10 +0200 | [diff] [blame] | 482 | "../rtc_base:checks", |
| 483 | "../rtc_base:rtc_base_approved", |
| 484 | "../rtc_base/system:arch", |
| 485 | "//third_party/abseil-cpp/absl/types:optional", |
| 486 | ] |
| 487 | if (is_ios) { |
| 488 | deps += [ ":fileutils_ios_objc" ] |
| 489 | } |
| 490 | if (is_mac) { |
| 491 | deps += [ ":fileutils_mac_objc" ] |
| 492 | } |
| 493 | if (is_win) { |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 494 | deps += [ "../rtc_base" ] |
Artem Titov | 8f726be | 2018-10-23 15:50:10 +0200 | [diff] [blame] | 495 | } |
| 496 | } |
| 497 | |
| 498 | # We separate header into own target to make it possible for downstream |
| 499 | # projects to override implementation. |
| 500 | rtc_source_set("fileutils_override_api") { |
| 501 | testonly = true |
| 502 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 503 | "testsupport/file_utils_override.h", |
Artem Titov | 8f726be | 2018-10-23 15:50:10 +0200 | [diff] [blame] | 504 | ] |
| 505 | } |
| 506 | |
| 507 | rtc_source_set("fileutils_override_impl") { |
| 508 | testonly = true |
| 509 | visibility = [ ":fileutils" ] |
| 510 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 511 | "testsupport/file_utils_override.cc", |
Artem Titov | 8f726be | 2018-10-23 15:50:10 +0200 | [diff] [blame] | 512 | ] |
| 513 | deps = [ |
| 514 | ":fileutils_override_api", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 515 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 516 | "../rtc_base:rtc_base_approved", |
Niels Möller | a12c42a | 2018-07-25 16:05:48 +0200 | [diff] [blame] | 517 | "../rtc_base/system:arch", |
Danil Chapovalov | 431abd9 | 2018-06-18 12:54:17 +0200 | [diff] [blame] | 518 | "//third_party/abseil-cpp/absl/types:optional", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 519 | ] |
mbonadei | 9452c62 | 2017-04-27 12:29:29 -0700 | [diff] [blame] | 520 | if (is_ios) { |
Patrik Höglund | 8434aeb | 2018-10-05 14:52:11 +0200 | [diff] [blame] | 521 | deps += [ ":fileutils_ios_objc" ] |
| 522 | } |
| 523 | if (is_mac) { |
| 524 | deps += [ ":fileutils_mac_objc" ] |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 525 | } |
| 526 | if (is_win) { |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 527 | deps += [ "../rtc_base" ] |
mbonadei | 9452c62 | 2017-04-27 12:29:29 -0700 | [diff] [blame] | 528 | } |
mbonadei | 9452c62 | 2017-04-27 12:29:29 -0700 | [diff] [blame] | 529 | } |
| 530 | |
| 531 | rtc_source_set("run_test") { |
| 532 | testonly = true |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 533 | if (is_mac) { |
Kári Tristan Helgason | ede7cb2 | 2019-03-06 10:34:09 +0100 | [diff] [blame] | 534 | public_deps = [ # no-presubmit-check TODO(webrtc:8603) |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 535 | ":run_test_objc", |
| 536 | ] |
| 537 | } else { |
Kári Tristan Helgason | ede7cb2 | 2019-03-06 10:34:09 +0100 | [diff] [blame] | 538 | public_deps = [ # no-presubmit-check TODO(webrtc:8603) |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 539 | ":run_test_generic", |
| 540 | ] |
| 541 | } |
| 542 | } |
| 543 | |
| 544 | rtc_source_set("run_test_interface") { |
mbonadei | 9452c62 | 2017-04-27 12:29:29 -0700 | [diff] [blame] | 545 | sources = [ |
| 546 | "run_test.h", |
| 547 | ] |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 548 | } |
| 549 | |
| 550 | if (is_mac) { |
| 551 | rtc_source_set("run_test_objc") { |
| 552 | testonly = true |
mbonadei | 9c296b3 | 2017-09-05 05:11:41 -0700 | [diff] [blame] | 553 | visibility = [ ":run_test" ] |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 554 | sources = [ |
| 555 | "mac/run_test.mm", |
| 556 | ] |
mbonadei | 9c296b3 | 2017-09-05 05:11:41 -0700 | [diff] [blame] | 557 | deps = [ |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 558 | ":run_test_interface", |
| 559 | ] |
mbonadei | 9452c62 | 2017-04-27 12:29:29 -0700 | [diff] [blame] | 560 | } |
| 561 | } |
| 562 | |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 563 | rtc_source_set("run_test_generic") { |
| 564 | testonly = true |
mbonadei | 9c296b3 | 2017-09-05 05:11:41 -0700 | [diff] [blame] | 565 | visibility = [ ":run_test" ] |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 566 | sources = [ |
| 567 | "run_test.cc", |
| 568 | ] |
mbonadei | 9c296b3 | 2017-09-05 05:11:41 -0700 | [diff] [blame] | 569 | deps = [ |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 570 | ":run_test_interface", |
| 571 | ] |
| 572 | } |
| 573 | |
ehmaldonado | 37535bf | 2016-12-05 06:42:45 -0800 | [diff] [blame] | 574 | rtc_source_set("fileutils_unittests") { |
| 575 | testonly = true |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 576 | visibility = [ ":*" ] # Only targets in this file can depend on this. |
ehmaldonado | 37535bf | 2016-12-05 06:42:45 -0800 | [diff] [blame] | 577 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 578 | "testsupport/file_utils_unittest.cc", |
ehmaldonado | 37535bf | 2016-12-05 06:42:45 -0800 | [diff] [blame] | 579 | ] |
| 580 | deps = [ |
| 581 | ":fileutils", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 582 | ":test_support", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 583 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 584 | "../rtc_base:rtc_base_approved", |
ehmaldonado | 37535bf | 2016-12-05 06:42:45 -0800 | [diff] [blame] | 585 | "//testing/gtest", |
Danil Chapovalov | 431abd9 | 2018-06-18 12:54:17 +0200 | [diff] [blame] | 586 | "//third_party/abseil-cpp/absl/types:optional", |
ehmaldonado | 37535bf | 2016-12-05 06:42:45 -0800 | [diff] [blame] | 587 | ] |
| 588 | } |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 589 | |
perkj | 488c5dc | 2017-02-08 05:55:51 -0800 | [diff] [blame] | 590 | rtc_source_set("direct_transport") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 591 | visibility = [ "*" ] |
perkj | 488c5dc | 2017-02-08 05:55:51 -0800 | [diff] [blame] | 592 | testonly = true |
| 593 | sources = [ |
| 594 | "direct_transport.cc", |
| 595 | "direct_transport.h", |
perkj | 488c5dc | 2017-02-08 05:55:51 -0800 | [diff] [blame] | 596 | ] |
perkj | 488c5dc | 2017-02-08 05:55:51 -0800 | [diff] [blame] | 597 | deps = [ |
Artem Titov | 46c4e60 | 2018-08-17 14:26:54 +0200 | [diff] [blame] | 598 | "../api:simulated_network_api", |
perkj | 488c5dc | 2017-02-08 05:55:51 -0800 | [diff] [blame] | 599 | "../api:transport_api", |
Mirko Bonadei | a0e1a55 | 2017-12-04 10:50:51 +0100 | [diff] [blame] | 600 | "../call:call_interfaces", |
Artem Titov | 46c4e60 | 2018-08-17 14:26:54 +0200 | [diff] [blame] | 601 | "../call:simulated_packet_receiver", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 602 | "../modules/rtp_rtcp", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 603 | "../rtc_base:rtc_base_approved", |
Sebastian Jansson | b55015e | 2019-04-09 13:44:04 +0200 | [diff] [blame] | 604 | "../rtc_base/synchronization:sequence_checker", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 605 | "../system_wrappers", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 606 | "//third_party/abseil-cpp/absl/memory", |
perkj | 488c5dc | 2017-02-08 05:55:51 -0800 | [diff] [blame] | 607 | ] |
Kári Tristan Helgason | ede7cb2 | 2019-03-06 10:34:09 +0100 | [diff] [blame] | 608 | public_deps = [ # no-presubmit-check TODO(webrtc:8603) |
eladalon | 413ee9a | 2017-08-22 04:02:52 -0700 | [diff] [blame] | 609 | ":single_threaded_task_queue", |
Erik Språng | 0970851 | 2018-03-14 15:16:50 +0100 | [diff] [blame] | 610 | "../call:fake_network", |
eladalon | 413ee9a | 2017-08-22 04:02:52 -0700 | [diff] [blame] | 611 | ] |
| 612 | } |
| 613 | |
| 614 | rtc_source_set("single_threaded_task_queue") { |
| 615 | testonly = true |
| 616 | sources = [ |
| 617 | "single_threaded_task_queue.cc", |
| 618 | "single_threaded_task_queue.h", |
| 619 | ] |
| 620 | deps = [ |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 621 | "../rtc_base:checks", |
eladalon | 413ee9a | 2017-08-22 04:02:52 -0700 | [diff] [blame] | 622 | "../rtc_base:rtc_base_approved", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 623 | "//third_party/abseil-cpp/absl/memory", |
eladalon | 413ee9a | 2017-08-22 04:02:52 -0700 | [diff] [blame] | 624 | ] |
perkj | 488c5dc | 2017-02-08 05:55:51 -0800 | [diff] [blame] | 625 | } |
| 626 | |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 627 | rtc_source_set("fake_video_codecs") { |
Emircan Uysaler | 7c03bdc | 2019-01-16 15:07:56 -0500 | [diff] [blame] | 628 | allow_poison = [ "software_video_codecs" ] |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 629 | visibility = [ "*" ] |
| 630 | sources = [ |
| 631 | "configurable_frame_size_encoder.cc", |
| 632 | "configurable_frame_size_encoder.h", |
| 633 | "fake_decoder.cc", |
| 634 | "fake_decoder.h", |
| 635 | "fake_encoder.cc", |
| 636 | "fake_encoder.h", |
Per Kjellander | 841c912 | 2018-10-04 18:40:28 +0200 | [diff] [blame] | 637 | "fake_vp8_decoder.cc", |
| 638 | "fake_vp8_decoder.h", |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 639 | "fake_vp8_encoder.cc", |
| 640 | "fake_vp8_encoder.h", |
| 641 | ] |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 642 | deps = [ |
Elad Alon | 8f01c4e | 2019-06-28 15:19:43 +0200 | [diff] [blame] | 643 | "../api:fec_controller_api", |
Mirko Bonadei | d970807 | 2019-01-25 20:26:48 +0100 | [diff] [blame] | 644 | "../api:scoped_refptr", |
Danil Chapovalov | 471783f | 2019-03-11 14:26:02 +0100 | [diff] [blame] | 645 | "../api/task_queue", |
Niels Möller | 4dc66c5 | 2018-10-05 14:17:58 +0200 | [diff] [blame] | 646 | "../api/video:encoded_image", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 647 | "../api/video:video_bitrate_allocation", |
| 648 | "../api/video:video_frame", |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 649 | "../api/video:video_frame_i420", |
Chen Xing | 5d24b16 | 2019-06-10 12:59:38 +0200 | [diff] [blame] | 650 | "../api/video:video_rtp_headers", |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 651 | "../api/video_codecs:video_codecs_api", |
Elad Alon | cde8ab2 | 2019-03-20 11:56:20 +0100 | [diff] [blame] | 652 | "../api/video_codecs:vp8_temporal_layers_factory", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 653 | "../common_video", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 654 | "../modules:module_api", |
| 655 | "../modules/video_coding:codec_globals_headers", |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 656 | "../modules/video_coding:video_codec_interface", |
| 657 | "../modules/video_coding:video_coding_utility", |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 658 | "../modules/video_coding:webrtc_vp8", |
| 659 | "../modules/video_coding:webrtc_vp9", |
| 660 | "../rtc_base:checks", |
| 661 | "../rtc_base:rtc_base_approved", |
| 662 | "../rtc_base:rtc_task_queue", |
Sebastian Jansson | b55015e | 2019-04-09 13:44:04 +0200 | [diff] [blame] | 663 | "../rtc_base/synchronization:sequence_checker", |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 664 | "../system_wrappers", |
Niels Möller | d738071 | 2019-03-06 10:09:47 +0100 | [diff] [blame] | 665 | "//third_party/abseil-cpp/absl/memory", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 666 | "//third_party/abseil-cpp/absl/types:optional", |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 667 | ] |
| 668 | } |
| 669 | |
Danil Chapovalov | ce92817 | 2019-04-24 18:17:42 +0200 | [diff] [blame] | 670 | rtc_source_set("null_transport") { |
| 671 | testonly = true |
| 672 | sources = [ |
| 673 | "null_transport.cc", |
| 674 | "null_transport.h", |
| 675 | ] |
| 676 | deps = [ |
| 677 | "../api:transport_api", |
| 678 | ] |
| 679 | } |
| 680 | |
| 681 | rtc_source_set("encoder_settings") { |
| 682 | testonly = true |
| 683 | sources = [ |
| 684 | "encoder_settings.cc", |
| 685 | "encoder_settings.h", |
| 686 | ] |
| 687 | deps = [ |
| 688 | "../api:scoped_refptr", |
| 689 | "../api/video_codecs:video_codecs_api", |
| 690 | "../call:rtp_interfaces", |
| 691 | "../call:video_stream_api", |
| 692 | "../rtc_base:checks", |
| 693 | "../rtc_base:refcount", |
| 694 | ] |
| 695 | } |
| 696 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 697 | rtc_source_set("test_common") { |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 698 | testonly = true |
| 699 | sources = [ |
| 700 | "call_test.cc", |
| 701 | "call_test.h", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 702 | "drifting_clock.cc", |
| 703 | "drifting_clock.h", |
sakal | 55d932b | 2016-09-30 06:19:08 -0700 | [diff] [blame] | 704 | "fake_videorenderer.h", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 705 | "layer_filtering_transport.cc", |
| 706 | "layer_filtering_transport.h", |
Danil Chapovalov | dd7e284 | 2018-03-09 15:37:03 +0000 | [diff] [blame] | 707 | "mock_transport.cc", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 708 | "mock_transport.h", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 709 | "rtp_rtcp_observer.h", |
Niels Möller | cbcbc22 | 2018-09-28 09:07:24 +0200 | [diff] [blame] | 710 | "video_decoder_proxy_factory.h", |
| 711 | "video_encoder_proxy_factory.h", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 712 | ] |
Robin Raymond | ce1b140 | 2018-11-22 20:10:11 -0500 | [diff] [blame] | 713 | if (current_os != "winuwp") { |
| 714 | # The filtering of *_win.cc is not done for WinUWP (intentionally) as |
| 715 | # most _win.cc files are compatible with WinUWP. However, the |
| 716 | # peek/dispatch Win32 runloops are entirely WinUWP incompatible thus |
| 717 | # WinUWP uses the generic runloop as defined for non-Windows targets. |
| 718 | sources += [ "win/run_loop_win.cc" ] |
| 719 | } |
| 720 | if (!is_win || current_os == "winuwp") { |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 721 | sources += [ |
| 722 | "run_loop.cc", |
| 723 | "run_loop.h", |
| 724 | ] |
| 725 | } |
| 726 | |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 727 | deps = [ |
perkj | 488c5dc | 2017-02-08 05:55:51 -0800 | [diff] [blame] | 728 | ":direct_transport", |
Danil Chapovalov | ce92817 | 2019-04-24 18:17:42 +0200 | [diff] [blame] | 729 | ":encoder_settings", |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 730 | ":fake_video_codecs", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 731 | ":fileutils", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 732 | ":rtp_test_utils", |
| 733 | ":test_support", |
perkj | c5726c1 | 2017-03-01 03:37:08 -0800 | [diff] [blame] | 734 | ":video_test_common", |
Patrik Höglund | be214a2 | 2018-01-04 12:14:35 +0100 | [diff] [blame] | 735 | "../api:libjingle_peerconnection_api", |
Niels Möller | ef1052a | 2019-03-20 08:40:23 +0100 | [diff] [blame] | 736 | "../api:rtp_headers", |
Mirko Bonadei | d970807 | 2019-01-25 20:26:48 +0100 | [diff] [blame] | 737 | "../api:scoped_refptr", |
Artem Titov | 46c4e60 | 2018-08-17 14:26:54 +0200 | [diff] [blame] | 738 | "../api:simulated_network_api", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 739 | "../api:transport_api", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 740 | "../api/audio_codecs:builtin_audio_decoder_factory", |
ossu | eb1fde4 | 2017-05-02 06:46:30 -0700 | [diff] [blame] | 741 | "../api/audio_codecs:builtin_audio_encoder_factory", |
Danil Chapovalov | a92e624 | 2019-04-18 10:58:56 +0200 | [diff] [blame] | 742 | "../api/task_queue", |
| 743 | "../api/task_queue:default_task_queue_factory", |
Danil Chapovalov | ddc84e9 | 2018-10-24 17:01:58 +0200 | [diff] [blame] | 744 | "../api/test/video:function_video_factory", |
Jiawei Ou | c2ebe21 | 2018-11-08 10:02:56 -0800 | [diff] [blame] | 745 | "../api/video:builtin_video_bitrate_allocator_factory", |
| 746 | "../api/video:video_bitrate_allocator_factory", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 747 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 12:59:38 +0200 | [diff] [blame] | 748 | "../api/video:video_rtp_headers", |
ilnik | d60d06a | 2017-04-05 03:02:20 -0700 | [diff] [blame] | 749 | "../api/video_codecs:video_codecs_api", |
kjellander | 94cee31 | 2016-06-10 01:56:57 -0700 | [diff] [blame] | 750 | "../audio", |
kjellander | 94cee31 | 2016-06-10 01:56:57 -0700 | [diff] [blame] | 751 | "../call", |
Mirko Bonadei | a0e1a55 | 2017-12-04 10:50:51 +0100 | [diff] [blame] | 752 | "../call:call_interfaces", |
Artem Titov | 4e199e9 | 2018-08-20 13:30:39 +0200 | [diff] [blame] | 753 | "../call:fake_network", |
sprang | db2a9fc | 2017-08-09 06:42:32 -0700 | [diff] [blame] | 754 | "../call:rtp_sender", |
Artem Titov | 4e199e9 | 2018-08-20 13:30:39 +0200 | [diff] [blame] | 755 | "../call:simulated_network", |
Artem Titov | 46c4e60 | 2018-08-17 14:26:54 +0200 | [diff] [blame] | 756 | "../call:simulated_packet_receiver", |
aleloi | 440b6d9 | 2017-08-22 05:43:23 -0700 | [diff] [blame] | 757 | "../call:video_stream_api", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 758 | "../logging:rtc_event_log_api", |
Emircan Uysaler | 03e6ec9 | 2018-03-09 15:03:26 -0800 | [diff] [blame] | 759 | "../media:rtc_internal_video_codecs", |
Mirko Bonadei | ad62792 | 2017-11-30 17:16:21 +0100 | [diff] [blame] | 760 | "../media:rtc_media_base", |
Artem Titov | 3faa832 | 2018-03-07 14:44:00 +0100 | [diff] [blame] | 761 | "../modules/audio_device", |
Paulina Hensman | 7bd79a0 | 2018-03-15 12:44:12 +0100 | [diff] [blame] | 762 | "../modules/audio_device:audio_device_impl", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 763 | "../modules/audio_device:mock_audio_device", |
aleloi | 10111bc | 2016-11-17 06:48:48 -0800 | [diff] [blame] | 764 | "../modules/audio_mixer:audio_mixer_impl", |
aleloi | dd31071 | 2016-11-17 06:28:59 -0800 | [diff] [blame] | 765 | "../modules/audio_processing", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 766 | "../modules/rtp_rtcp", |
| 767 | "../modules/rtp_rtcp:mock_rtp_rtcp", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 768 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 769 | "../modules/rtp_rtcp:rtp_video_header", |
| 770 | "../modules/video_coding:codec_globals_headers", |
charujain | cb728ea | 2017-09-18 03:08:08 -0700 | [diff] [blame] | 771 | "../modules/video_coding:video_coding_utility", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 772 | "../modules/video_coding:webrtc_h264", |
Emircan Uysaler | 03e6ec9 | 2018-03-09 15:03:26 -0800 | [diff] [blame] | 773 | "../modules/video_coding:webrtc_multiplex", |
Sergio Garcia Murillo | 43800f9 | 2018-06-21 16:16:38 +0200 | [diff] [blame] | 774 | "../modules/video_coding:webrtc_vp8", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 775 | "../modules/video_coding:webrtc_vp9", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 776 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 777 | "../rtc_base:rtc_base_approved", |
Yves Gerey | 79e9f4b | 2019-04-13 18:59:53 +0200 | [diff] [blame] | 778 | "../rtc_base:rtc_numerics", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 779 | "../system_wrappers", |
Mirko Bonadei | 17f4878 | 2018-09-28 08:51:10 +0200 | [diff] [blame] | 780 | "../system_wrappers:field_trial", |
kjellander | 94cee31 | 2016-06-10 01:56:57 -0700 | [diff] [blame] | 781 | "../video", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 782 | "//testing/gtest", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 783 | "//third_party/abseil-cpp/absl/memory", |
Elad Alon | d8d3248 | 2019-02-18 23:45:57 +0100 | [diff] [blame] | 784 | "//third_party/abseil-cpp/absl/types:optional", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 785 | ] |
mbonadei | 148d5a2 | 2017-04-28 05:24:50 -0700 | [diff] [blame] | 786 | if (!is_android && !build_with_chromium) { |
oprypin | 92220ff | 2017-03-23 03:40:03 -0700 | [diff] [blame] | 787 | deps += [ "../modules/video_capture:video_capture_internal_impl" ] |
| 788 | } |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 789 | } |
| 790 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 791 | rtc_source_set("test_renderer") { |
Kári Tristan Helgason | ede7cb2 | 2019-03-06 10:34:09 +0100 | [diff] [blame] | 792 | public_deps = [ # no-presubmit-check TODO(webrtc:8603) |
mbonadei | 9c296b3 | 2017-09-05 05:11:41 -0700 | [diff] [blame] | 793 | ":test_renderer_generic", |
| 794 | ] |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 795 | testonly = true |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 796 | if (is_mac) { |
Kári Tristan Helgason | ede7cb2 | 2019-03-06 10:34:09 +0100 | [diff] [blame] | 797 | public_deps += [ ":test_renderer_objc" ] # no-presubmit-check TODO(webrtc:8603) |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 798 | } |
| 799 | } |
| 800 | |
| 801 | if (is_mac) { |
| 802 | rtc_source_set("test_renderer_objc") { |
| 803 | testonly = true |
mbonadei | 9c296b3 | 2017-09-05 05:11:41 -0700 | [diff] [blame] | 804 | visibility = [ ":test_renderer" ] |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 805 | sources = [ |
| 806 | "mac/video_renderer_mac.h", |
| 807 | "mac/video_renderer_mac.mm", |
| 808 | ] |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 809 | deps = [ |
mbonadei | 9c296b3 | 2017-09-05 05:11:41 -0700 | [diff] [blame] | 810 | ":test_renderer_generic", |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 811 | "../rtc_base:rtc_base_approved", |
| 812 | ] |
| 813 | libs = [ |
| 814 | "Cocoa.framework", |
| 815 | "OpenGL.framework", |
| 816 | "CoreVideo.framework", |
| 817 | ] |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 818 | } |
| 819 | } |
| 820 | |
| 821 | rtc_source_set("test_renderer_generic") { |
| 822 | testonly = true |
mbonadei | 9c296b3 | 2017-09-05 05:11:41 -0700 | [diff] [blame] | 823 | visibility = [ |
| 824 | ":test_renderer", |
| 825 | ":test_renderer_objc", |
| 826 | ] |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 827 | libs = [] |
| 828 | sources = [ |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 829 | "video_renderer.cc", |
| 830 | "video_renderer.h", |
| 831 | "win/d3d_renderer.cc", |
| 832 | "win/d3d_renderer.h", |
| 833 | ] |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 834 | deps = [ |
| 835 | ":test_support", |
Mirko Bonadei | d970807 | 2019-01-25 20:26:48 +0100 | [diff] [blame] | 836 | "../api:scoped_refptr", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 837 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 12:59:38 +0200 | [diff] [blame] | 838 | "../api/video:video_rtp_headers", |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 839 | "../common_video", |
Mirko Bonadei | ad62792 | 2017-11-30 17:16:21 +0100 | [diff] [blame] | 840 | "../media:rtc_media_base", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 841 | "../rtc_base:checks", |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 842 | "../rtc_base:rtc_base_approved", |
| 843 | "//testing/gtest", |
| 844 | ] |
Joachim Bauch | 75f18fc | 2017-12-20 21:25:47 +0100 | [diff] [blame] | 845 | if (!(is_linux && rtc_use_x11) && !is_mac && !is_win) { |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 846 | sources += [ "null_platform_renderer.cc" ] |
| 847 | } |
Joachim Bauch | 75f18fc | 2017-12-20 21:25:47 +0100 | [diff] [blame] | 848 | if ((is_linux && rtc_use_x11) || is_mac) { |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 849 | sources += [ |
| 850 | "gl/gl_renderer.cc", |
| 851 | "gl/gl_renderer.h", |
| 852 | ] |
| 853 | } |
| 854 | |
Joachim Bauch | 75f18fc | 2017-12-20 21:25:47 +0100 | [diff] [blame] | 855 | if (is_linux && rtc_use_x11) { |
Edward Lemur | 84a87c4 | 2017-11-07 19:07:31 +0100 | [diff] [blame] | 856 | sources += [ |
| 857 | "linux/glx_renderer.cc", |
| 858 | "linux/glx_renderer.h", |
| 859 | "linux/video_renderer_linux.cc", |
| 860 | ] |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 861 | libs += [ |
| 862 | "Xext", |
| 863 | "X11", |
| 864 | "GL", |
| 865 | ] |
| 866 | } |
| 867 | if (is_android) { |
| 868 | libs += [ |
| 869 | "GLESv2", |
| 870 | "log", |
| 871 | ] |
| 872 | } |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 873 | } |
kwiberg | 37e99fd | 2017-04-10 05:15:48 -0700 | [diff] [blame] | 874 | |
| 875 | rtc_source_set("audio_codec_mocks") { |
| 876 | testonly = true |
| 877 | sources = [ |
Niels Möller | 3f651d8 | 2018-12-19 15:06:17 +0100 | [diff] [blame] | 878 | # TODO(nisse): Move these factories to their own target, to avoid |
| 879 | # unnecessary dependencies on gmock and gtest. |
Niels Möller | b7180c0 | 2018-12-06 13:07:11 +0100 | [diff] [blame] | 880 | "audio_decoder_proxy_factory.h", |
Niels Möller | a0f4430 | 2018-11-30 10:45:12 +0100 | [diff] [blame] | 881 | "function_audio_decoder_factory.h", |
kwiberg | 2b3aa14 | 2017-06-14 03:31:17 -0700 | [diff] [blame] | 882 | "mock_audio_decoder.cc", |
kwiberg | 37e99fd | 2017-04-10 05:15:48 -0700 | [diff] [blame] | 883 | "mock_audio_decoder.h", |
| 884 | "mock_audio_decoder_factory.h", |
ossu | eb1fde4 | 2017-05-02 06:46:30 -0700 | [diff] [blame] | 885 | "mock_audio_encoder.cc", |
| 886 | "mock_audio_encoder.h", |
| 887 | "mock_audio_encoder_factory.h", |
| 888 | ] |
| 889 | |
| 890 | deps = [ |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 891 | ":test_support", |
kwiberg | 529662a | 2017-09-04 05:43:17 -0700 | [diff] [blame] | 892 | "../api:array_view", |
Mirko Bonadei | d970807 | 2019-01-25 20:26:48 +0100 | [diff] [blame] | 893 | "../api:scoped_refptr", |
ossu | eb1fde4 | 2017-05-02 06:46:30 -0700 | [diff] [blame] | 894 | "../api/audio_codecs:audio_codecs_api", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 895 | "../api/audio_codecs:builtin_audio_decoder_factory", |
Niels Möller | a0f4430 | 2018-11-30 10:45:12 +0100 | [diff] [blame] | 896 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 897 | "../rtc_base:rtc_base_approved", |
Niels Möller | a0f4430 | 2018-11-30 10:45:12 +0100 | [diff] [blame] | 898 | "//third_party/abseil-cpp/absl/memory", |
kwiberg | 37e99fd | 2017-04-10 05:15:48 -0700 | [diff] [blame] | 899 | ] |
| 900 | } |
sakal | d7fdb80 | 2017-05-26 01:51:53 -0700 | [diff] [blame] | 901 | |
Artem Titov | 66a29b9 | 2019-01-15 14:43:20 +0100 | [diff] [blame] | 902 | rtc_source_set("copy_to_file_audio_capturer") { |
| 903 | testonly = true |
| 904 | sources = [ |
| 905 | "testsupport/copy_to_file_audio_capturer.cc", |
| 906 | "testsupport/copy_to_file_audio_capturer.h", |
| 907 | ] |
| 908 | deps = [ |
| 909 | "../api:array_view", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 910 | "../common_audio", |
Artem Titov | 66a29b9 | 2019-01-15 14:43:20 +0100 | [diff] [blame] | 911 | "../modules/audio_device:audio_device_impl", |
| 912 | "../rtc_base:rtc_base_approved", |
| 913 | "//third_party/abseil-cpp/absl/memory", |
| 914 | "//third_party/abseil-cpp/absl/types:optional", |
| 915 | ] |
| 916 | } |
| 917 | |
| 918 | rtc_source_set("copy_to_file_audio_capturer_unittest") { |
| 919 | testonly = true |
| 920 | sources = [ |
| 921 | "testsupport/copy_to_file_audio_capturer_unittest.cc", |
| 922 | ] |
| 923 | deps = [ |
| 924 | ":copy_to_file_audio_capturer", |
| 925 | ":fileutils", |
| 926 | ":test_support", |
| 927 | "../modules/audio_device:audio_device_impl", |
| 928 | "//third_party/abseil-cpp/absl/memory", |
| 929 | ] |
| 930 | } |
| 931 | |
sakal | d7fdb80 | 2017-05-26 01:51:53 -0700 | [diff] [blame] | 932 | if (!build_with_chromium && is_android) { |
Mirko Bonadei | fbb3b7d | 2017-11-07 15:36:33 +0000 | [diff] [blame] | 933 | rtc_android_library("native_test_java") { |
sakal | d7fdb80 | 2017-05-26 01:51:53 -0700 | [diff] [blame] | 934 | testonly = true |
| 935 | java_files = [ |
| 936 | "android/org/webrtc/native_test/RTCNativeUnitTest.java", |
| 937 | "android/org/webrtc/native_test/RTCNativeUnitTestActivity.java", |
| 938 | ] |
| 939 | deps = [ |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 940 | "../rtc_base:base_java", |
sakal | d7fdb80 | 2017-05-26 01:51:53 -0700 | [diff] [blame] | 941 | "//testing/android/native_test:native_test_java", |
sakal | d7fdb80 | 2017-05-26 01:51:53 -0700 | [diff] [blame] | 942 | ] |
| 943 | } |
| 944 | } |
Benjamin Wright | 8efafdf | 2019-01-11 10:48:42 -0800 | [diff] [blame] | 945 | |
| 946 | rtc_source_set("call_config_utils") { |
Mirko Bonadei | 2c9d5e4 | 2019-07-15 13:17:48 +0200 | [diff] [blame] | 947 | # TODO(bugs.webrtc.org/10814): Remove rtc_json_suppressions as soon as it |
| 948 | # gets removed upstream. |
| 949 | public_configs = [ "../rtc_base:rtc_json_suppressions" ] |
Benjamin Wright | 8efafdf | 2019-01-11 10:48:42 -0800 | [diff] [blame] | 950 | sources = [ |
| 951 | "call_config_utils.cc", |
| 952 | "call_config_utils.h", |
| 953 | ] |
| 954 | deps = [ |
| 955 | "../call:call_interfaces", |
| 956 | "../call:video_stream_api", |
| 957 | "../rtc_base:rtc_json", |
| 958 | ] |
| 959 | } |