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