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 | |
mbonadei | 9aa3f0a | 2017-01-24 06:58:22 -0800 | [diff] [blame] | 9 | import("../webrtc.gni") |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 10 | import("//build/config/ui.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 = [ |
| 19 | ":field_trial", |
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", |
| 25 | ] |
mbonadei | 148d5a2 | 2017-04-28 05:24:50 -0700 | [diff] [blame] | 26 | |
oprypin | fbbba3f | 2017-09-25 08:34:41 -0700 | [diff] [blame] | 27 | if (rtc_include_tests) { |
mbonadei | 148d5a2 | 2017-04-28 05:24:50 -0700 | [diff] [blame] | 28 | deps += [ |
| 29 | ":test_main", |
| 30 | ":test_support_unittests", |
| 31 | ] |
| 32 | } |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 33 | } |
| 34 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 35 | rtc_source_set("video_test_common") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 36 | visibility = [ "*" ] |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 37 | testonly = true |
| 38 | sources = [ |
| 39 | "fake_texture_frame.cc", |
| 40 | "fake_texture_frame.h", |
| 41 | "frame_generator.cc", |
| 42 | "frame_generator.h", |
ehmaldonado | 656610f | 2017-02-06 02:21:11 -0800 | [diff] [blame] | 43 | "frame_generator_capturer.cc", |
| 44 | "frame_generator_capturer.h", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 45 | "frame_utils.cc", |
| 46 | "frame_utils.h", |
Sebastian Jansson | f1f363f | 2018-08-13 14:24:58 +0200 | [diff] [blame] | 47 | "test_video_capturer.cc", |
| 48 | "test_video_capturer.h", |
ehmaldonado | 656610f | 2017-02-06 02:21:11 -0800 | [diff] [blame] | 49 | "vcm_capturer.cc", |
| 50 | "vcm_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 | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 54 | if (!build_with_chromium && is_clang) { |
| 55 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 56 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 57 | } |
| 58 | |
| 59 | deps = [ |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 60 | "..:webrtc_common", |
Patrik Höglund | 9e19403 | 2018-01-04 15:58:20 +0100 | [diff] [blame] | 61 | "../api:libjingle_peerconnection_api", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 62 | "../api/video:video_frame", |
Emircan Uysaler | 0823eec | 2018-07-13 17:10:00 -0700 | [diff] [blame] | 63 | "../api/video:video_frame_i010", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 64 | "../api/video:video_frame_i420", |
mflodman | 351424e | 2017-08-10 02:43:14 -0700 | [diff] [blame] | 65 | "../api/video_codecs:video_codecs_api", |
aleloi | 440b6d9 | 2017-08-22 05:43:23 -0700 | [diff] [blame] | 66 | "../call:video_stream_api", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 67 | "../common_video", |
sprang | c5d62e2 | 2017-04-02 23:53:04 -0700 | [diff] [blame] | 68 | "../media:rtc_media_base", |
ehmaldonado | 656610f | 2017-02-06 02:21:11 -0800 | [diff] [blame] | 69 | "../modules/video_capture:video_capture_module", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 70 | "../rtc_base:checks", |
Patrik Höglund | 76df0df | 2017-12-19 11:50:21 +0100 | [diff] [blame] | 71 | "../rtc_base:rtc_base", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 72 | "../rtc_base:rtc_task_queue", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 73 | "../system_wrappers", |
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 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 78 | rtc_source_set("rtp_test_utils") { |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 79 | testonly = true |
| 80 | sources = [ |
| 81 | "rtcp_packet_parser.cc", |
| 82 | "rtcp_packet_parser.h", |
| 83 | "rtp_file_reader.cc", |
| 84 | "rtp_file_reader.h", |
| 85 | "rtp_file_writer.cc", |
| 86 | "rtp_file_writer.h", |
| 87 | ] |
| 88 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 89 | if (!build_with_chromium && is_clang) { |
| 90 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 91 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 92 | } |
| 93 | |
| 94 | deps = [ |
| 95 | "..:webrtc_common", |
kwiberg | 529662a | 2017-09-04 05:43:17 -0700 | [diff] [blame] | 96 | "../api:array_view", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 97 | "../modules/rtp_rtcp", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 98 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 99 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 100 | "../rtc_base:rtc_base_approved", |
Niels Möller | a12c42a | 2018-07-25 16:05:48 +0200 | [diff] [blame] | 101 | "../rtc_base/system:arch", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 102 | "//testing/gtest", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 103 | ] |
| 104 | } |
| 105 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 106 | rtc_source_set("field_trial") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 107 | visibility = [ "*" ] |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 108 | testonly = true |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 109 | sources = [ |
| 110 | "field_trial.cc", |
| 111 | "field_trial.h", |
| 112 | ] |
| 113 | |
| 114 | deps = [ |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 +0000 | [diff] [blame] | 115 | "..:webrtc_common", |
Mirko Bonadei | a498ae8 | 2017-12-06 09:17:14 +0100 | [diff] [blame] | 116 | "../system_wrappers:field_trial_api", |
phoglund | 37ebcf0 | 2016-01-08 05:04:57 -0800 | [diff] [blame] | 117 | "../system_wrappers:field_trial_default", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 118 | ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 119 | } |
| 120 | |
Edward Lemur | e66572b | 2018-01-05 15:34:09 +0100 | [diff] [blame] | 121 | rtc_source_set("perf_test") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 122 | visibility = [ "*" ] |
Edward Lemur | e66572b | 2018-01-05 15:34:09 +0100 | [diff] [blame] | 123 | sources = [ |
| 124 | "testsupport/perf_test.cc", |
| 125 | "testsupport/perf_test.h", |
| 126 | ] |
| 127 | deps = [ |
| 128 | "..:webrtc_common", |
| 129 | "../api:array_view", |
| 130 | "../rtc_base:rtc_base_approved", |
| 131 | ] |
| 132 | } |
| 133 | |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 134 | if (is_ios) { |
| 135 | rtc_source_set("test_support_objc") { |
| 136 | testonly = true |
mbonadei | 9c296b3 | 2017-09-05 05:11:41 -0700 | [diff] [blame] | 137 | visibility = [ ":test_support" ] |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 138 | sources = [ |
| 139 | "ios/test_support.h", |
| 140 | "ios/test_support.mm", |
| 141 | ] |
denicija | d207a39 | 2017-09-11 06:43:28 -0700 | [diff] [blame] | 142 | deps = [ |
Edward Lemur | e66572b | 2018-01-05 15:34:09 +0100 | [diff] [blame] | 143 | ":perf_test", |
Anders Carlsson | 7bca8ca | 2018-08-30 09:30:29 +0200 | [diff] [blame] | 144 | "../sdk:helpers_objc", |
denicija | d207a39 | 2017-09-11 06:43:28 -0700 | [diff] [blame] | 145 | ] |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 146 | } |
| 147 | } |
| 148 | |
Patrik Höglund | 34924c2 | 2018-01-19 09:11:07 +0100 | [diff] [blame] | 149 | config("suppress_warning_4373") { |
| 150 | if (is_win) { |
| 151 | cflags = [ |
| 152 | # MSVC has a bug which generates this warning when using mocks; see the |
| 153 | # section on warning 4373 in he googlemock FAQ. This warning isn't the |
| 154 | # least relevant for us, anyway. |
| 155 | "/wd4373", |
| 156 | ] |
| 157 | } |
| 158 | } |
| 159 | |
Sebastian Jansson | 2afd281 | 2018-08-23 14:44:05 +0200 | [diff] [blame] | 160 | config("test_main_direct_config") { |
| 161 | visibility = [ ":*" ] |
| 162 | defines = [ "UNIT_TEST" ] |
| 163 | } |
mbonadei | 148d5a2 | 2017-04-28 05:24:50 -0700 | [diff] [blame] | 164 | rtc_source_set("test_support") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 165 | visibility = [ "*" ] |
mbonadei | 148d5a2 | 2017-04-28 05:24:50 -0700 | [diff] [blame] | 166 | testonly = true |
kjellander | 32c4a20 | 2016-08-30 02:53:49 -0700 | [diff] [blame] | 167 | |
Mirko Bonadei | 65ce311 | 2018-01-26 11:57:47 +0100 | [diff] [blame] | 168 | all_dependent_configs = [ |
| 169 | ":suppress_warning_4373", |
| 170 | "//third_party/googletest:gmock_config", |
| 171 | "//third_party/googletest:gtest_config", |
| 172 | ] |
Patrik Höglund | 34924c2 | 2018-01-19 09:11:07 +0100 | [diff] [blame] | 173 | |
mbonadei | 148d5a2 | 2017-04-28 05:24:50 -0700 | [diff] [blame] | 174 | sources = [ |
| 175 | "gmock.h", |
| 176 | "gtest.h", |
mbonadei | 148d5a2 | 2017-04-28 05:24:50 -0700 | [diff] [blame] | 177 | ] |
| 178 | |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 179 | public_deps = [] |
Kári Tristan Helgason | e2baffb | 2017-06-09 10:31:58 +0200 | [diff] [blame] | 180 | if (is_ios) { |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 181 | public_deps += [ ":test_support_objc" ] |
Kári Tristan Helgason | e2baffb | 2017-06-09 10:31:58 +0200 | [diff] [blame] | 182 | } |
| 183 | |
Sebastian Jansson | 2afd281 | 2018-08-23 14:44:05 +0200 | [diff] [blame] | 184 | public_configs = [ ":test_main_direct_config" ] |
mbonadei | 148d5a2 | 2017-04-28 05:24:50 -0700 | [diff] [blame] | 185 | deps = [ |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 186 | "../rtc_base:rtc_base_approved", |
mbonadei | 148d5a2 | 2017-04-28 05:24:50 -0700 | [diff] [blame] | 187 | "//testing/gmock", |
| 188 | "//testing/gtest", |
| 189 | ] |
| 190 | |
mbonadei | 148d5a2 | 2017-04-28 05:24:50 -0700 | [diff] [blame] | 191 | if (!build_with_chromium && is_clang) { |
| 192 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 193 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 194 | } |
kjellander | 32c4a20 | 2016-08-30 02:53:49 -0700 | [diff] [blame] | 195 | } |
| 196 | |
oprypin | fbbba3f | 2017-09-25 08:34:41 -0700 | [diff] [blame] | 197 | if (rtc_include_tests) { |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 198 | rtc_source_set("test_main") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 199 | visibility = [ "*" ] |
Oleh Prypin | 90ce84e | 2017-09-25 10:27:22 +0200 | [diff] [blame] | 200 | testonly = true |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 201 | sources = [ |
| 202 | "test_main.cc", |
| 203 | ] |
| 204 | |
| 205 | public_deps = [ |
| 206 | ":test_support", |
| 207 | ] |
| 208 | deps = [ |
| 209 | ":field_trial", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 210 | ":fileutils", |
Edward Lemur | e66572b | 2018-01-05 15:34:09 +0100 | [diff] [blame] | 211 | ":perf_test", |
Niels Möller | 8909a63 | 2018-09-06 08:42:44 +0200 | [diff] [blame^] | 212 | "../rtc_base:rtc_base", |
Bjorn Terelius | edab301 | 2018-01-31 17:23:40 +0100 | [diff] [blame] | 213 | "../system_wrappers:field_trial_default", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 214 | "../system_wrappers:metrics_default", |
Ilya Nikolaevskiy | 2ffe3e8 | 2018-01-17 19:57:24 +0000 | [diff] [blame] | 215 | "../system_wrappers:runtime_enabled_features_default", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 216 | "//testing/gtest", |
mbonadei | 9452c62 | 2017-04-27 12:29:29 -0700 | [diff] [blame] | 217 | ] |
| 218 | } |
mbonadei | 9452c62 | 2017-04-27 12:29:29 -0700 | [diff] [blame] | 219 | |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 220 | rtc_source_set("video_test_support") { |
| 221 | testonly = true |
| 222 | |
| 223 | sources = [ |
| 224 | "testsupport/frame_reader.h", |
| 225 | "testsupport/frame_writer.h", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 226 | "testsupport/mock/mock_frame_reader.h", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 227 | "testsupport/y4m_frame_writer.cc", |
| 228 | "testsupport/yuv_frame_reader.cc", |
| 229 | "testsupport/yuv_frame_writer.cc", |
| 230 | ] |
| 231 | |
| 232 | deps = [ |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 233 | ":fileutils", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 234 | ":test_support", |
| 235 | ":video_test_common", |
| 236 | "..:webrtc_common", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 237 | "../api/video:video_frame", |
| 238 | "../api/video:video_frame_i420", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 239 | "../common_video", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 240 | "../rtc_base:checks", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 241 | "../rtc_base:rtc_base_approved", |
| 242 | "../system_wrappers", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 243 | "//testing/gtest", |
Mirko Bonadei | 401d056 | 2017-12-14 11:24:00 +0100 | [diff] [blame] | 244 | "//third_party/libyuv", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 245 | ] |
| 246 | |
| 247 | if (!is_ios) { |
| 248 | deps += [ "//third_party:jpeg" ] |
| 249 | sources += [ "testsupport/jpeg_frame_writer.cc" ] |
| 250 | } else { |
| 251 | sources += [ "testsupport/jpeg_frame_writer_ios.cc" ] |
| 252 | } |
| 253 | |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 254 | if (!build_with_chromium && is_clang) { |
| 255 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 256 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 257 | } |
| 258 | |
| 259 | if (is_android) { |
| 260 | deps += [ "//base:base" ] |
| 261 | } |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 262 | } |
| 263 | |
Edward Lemur | af8659a | 2017-09-27 14:46:24 +0200 | [diff] [blame] | 264 | rtc_source_set("test_support_test_artifacts") { |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 265 | testonly = true |
| 266 | sources = [ |
Edward Lemur | af8659a | 2017-09-27 14:46:24 +0200 | [diff] [blame] | 267 | "testsupport/test_artifacts.cc", |
| 268 | "testsupport/test_artifacts.h", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 269 | ] |
| 270 | deps = [ |
| 271 | ":fileutils", |
| 272 | "../rtc_base:rtc_base_approved", |
| 273 | ] |
| 274 | } |
| 275 | |
| 276 | test_support_unittests_resources = [ |
| 277 | "../resources/foreman_cif_short.yuv", |
| 278 | "../resources/video_coding/frame-ethernet-ii.pcap", |
| 279 | "../resources/video_coding/frame-loopback.pcap", |
| 280 | "../resources/video_coding/pltype103.rtp", |
| 281 | "../resources/video_coding/pltype103_header_only.rtp", |
| 282 | "../resources/video_coding/ssrcs-2.pcap", |
| 283 | "../resources/video_coding/ssrcs-3.pcap", |
Oleh Prypin | 90ce84e | 2017-09-25 10:27:22 +0200 | [diff] [blame] | 284 | ] |
Oleh Prypin | 90ce84e | 2017-09-25 10:27:22 +0200 | [diff] [blame] | 285 | |
| 286 | if (is_ios) { |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 287 | bundle_data("test_support_unittests_bundle_data") { |
| 288 | testonly = true |
| 289 | sources = test_support_unittests_resources |
| 290 | outputs = [ |
| 291 | "{{bundle_resources_dir}}/{{source_file_part}}", |
| 292 | ] |
| 293 | } |
Oleh Prypin | 90ce84e | 2017-09-25 10:27:22 +0200 | [diff] [blame] | 294 | } |
| 295 | |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 296 | rtc_test("test_support_unittests") { |
| 297 | deps = [ |
Sebastian Jansson | 0940811 | 2018-04-24 14:41:22 +0200 | [diff] [blame] | 298 | ":direct_transport", |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 299 | ":fake_video_codecs", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 300 | ":fileutils", |
Mirko Bonadei | 4639999 | 2018-08-22 15:32:38 +0200 | [diff] [blame] | 301 | ":fileutils_unittests", |
Edward Lemur | e66572b | 2018-01-05 15:34:09 +0100 | [diff] [blame] | 302 | ":perf_test", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 303 | ":rtp_test_utils", |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 304 | ":test_common", |
Mirko Bonadei | 9098b30 | 2018-04-06 10:48:10 +0200 | [diff] [blame] | 305 | ":test_main", |
| 306 | ":test_support", |
| 307 | ":test_support_test_artifacts", |
| 308 | ":video_test_common", |
| 309 | ":video_test_support", |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 310 | "../api:create_simulcast_test_fixture_api", |
| 311 | "../api:simulcast_test_fixture_api", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 312 | "../api/video:video_frame_i420", |
Mirko Bonadei | 9098b30 | 2018-04-06 10:48:10 +0200 | [diff] [blame] | 313 | "../modules/rtp_rtcp:rtp_rtcp", |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 314 | "../modules/video_capture", |
| 315 | "../modules/video_coding:simulcast_test_fixture_impl", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 316 | "../rtc_base:rtc_base_approved", |
Mirko Bonadei | 9098b30 | 2018-04-06 10:48:10 +0200 | [diff] [blame] | 317 | "../test:single_threaded_task_queue", |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 318 | "//testing/gmock", |
Mirko Bonadei | 9098b30 | 2018-04-06 10:48:10 +0200 | [diff] [blame] | 319 | "//testing/gtest", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 320 | "//third_party/abseil-cpp/absl/memory", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 321 | ] |
| 322 | sources = [ |
Sebastian Jansson | 0940811 | 2018-04-24 14:41:22 +0200 | [diff] [blame] | 323 | "direct_transport_unittest.cc", |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 324 | "fake_vp8_encoder_unittest.cc", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 325 | "frame_generator_unittest.cc", |
| 326 | "rtp_file_reader_unittest.cc", |
| 327 | "rtp_file_writer_unittest.cc", |
| 328 | "single_threaded_task_queue_unittest.cc", |
| 329 | "testsupport/always_passing_unittest.cc", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 330 | "testsupport/perf_test_unittest.cc", |
Edward Lemur | af8659a | 2017-09-27 14:46:24 +0200 | [diff] [blame] | 331 | "testsupport/test_artifacts_unittest.cc", |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 332 | "testsupport/y4m_frame_writer_unittest.cc", |
| 333 | "testsupport/yuv_frame_reader_unittest.cc", |
| 334 | "testsupport/yuv_frame_writer_unittest.cc", |
| 335 | ] |
| 336 | |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 337 | if (!build_with_chromium && is_clang) { |
| 338 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 339 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 340 | } |
| 341 | |
| 342 | data = test_support_unittests_resources |
| 343 | if (is_android) { |
| 344 | deps += [ "//testing/android/native_test:native_test_support" ] |
| 345 | shard_timeout = 900 |
| 346 | } |
| 347 | |
| 348 | if (is_ios) { |
| 349 | deps += [ ":test_support_unittests_bundle_data" ] |
| 350 | } |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 351 | |
Mirko Bonadei | 9098b30 | 2018-04-06 10:48:10 +0200 | [diff] [blame] | 352 | if (!is_android && !build_with_chromium) { |
| 353 | # This is needed in order to avoid: |
| 354 | # undefined symbol: webrtc::videocapturemodule::VideoCaptureImpl::Create |
| 355 | deps += [ "../modules/video_capture:video_capture_internal_impl" ] |
| 356 | } |
Oleh Prypin | 5ab6854 | 2017-09-25 09:18:00 +0000 | [diff] [blame] | 357 | } |
Oleh Prypin | 90ce84e | 2017-09-25 10:27:22 +0200 | [diff] [blame] | 358 | } |
| 359 | |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 360 | if (is_ios) { |
| 361 | rtc_source_set("fileutils_objc") { |
mbonadei | 9c296b3 | 2017-09-05 05:11:41 -0700 | [diff] [blame] | 362 | visibility = [ ":fileutils" ] |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 363 | sources = [ |
| 364 | "testsupport/iosfileutils.mm", |
| 365 | ] |
| 366 | deps = [ |
| 367 | "..:webrtc_common", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 368 | "../rtc_base:checks", |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 369 | "../rtc_base:rtc_base_approved", |
Anders Carlsson | 7bca8ca | 2018-08-30 09:30:29 +0200 | [diff] [blame] | 370 | "../sdk:helpers_objc", |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 371 | ] |
| 372 | } |
| 373 | } |
| 374 | |
mbonadei | 9452c62 | 2017-04-27 12:29:29 -0700 | [diff] [blame] | 375 | rtc_source_set("fileutils") { |
| 376 | testonly = true |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 377 | visibility = [ "*" ] |
mbonadei | 9452c62 | 2017-04-27 12:29:29 -0700 | [diff] [blame] | 378 | sources = [ |
| 379 | "testsupport/fileutils.cc", |
| 380 | "testsupport/fileutils.h", |
| 381 | ] |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 382 | deps = [ |
| 383 | "..:webrtc_common", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 384 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 385 | "../rtc_base:rtc_base_approved", |
Niels Möller | a12c42a | 2018-07-25 16:05:48 +0200 | [diff] [blame] | 386 | "../rtc_base/system:arch", |
Danil Chapovalov | 431abd9 | 2018-06-18 12:54:17 +0200 | [diff] [blame] | 387 | "//third_party/abseil-cpp/absl/types:optional", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 388 | ] |
mbonadei | 9452c62 | 2017-04-27 12:29:29 -0700 | [diff] [blame] | 389 | if (is_ios) { |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 390 | deps += [ ":fileutils_objc" ] |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 391 | } |
| 392 | if (is_win) { |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 393 | deps += [ "../rtc_base:rtc_base" ] |
mbonadei | 9452c62 | 2017-04-27 12:29:29 -0700 | [diff] [blame] | 394 | } |
mbonadei | 9452c62 | 2017-04-27 12:29:29 -0700 | [diff] [blame] | 395 | } |
| 396 | |
| 397 | rtc_source_set("run_test") { |
| 398 | testonly = true |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 399 | if (is_mac) { |
| 400 | public_deps = [ |
| 401 | ":run_test_objc", |
| 402 | ] |
| 403 | } else { |
| 404 | public_deps = [ |
| 405 | ":run_test_generic", |
| 406 | ] |
| 407 | } |
| 408 | } |
| 409 | |
| 410 | rtc_source_set("run_test_interface") { |
mbonadei | 9452c62 | 2017-04-27 12:29:29 -0700 | [diff] [blame] | 411 | sources = [ |
| 412 | "run_test.h", |
| 413 | ] |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 414 | } |
| 415 | |
| 416 | if (is_mac) { |
| 417 | rtc_source_set("run_test_objc") { |
| 418 | testonly = true |
mbonadei | 9c296b3 | 2017-09-05 05:11:41 -0700 | [diff] [blame] | 419 | visibility = [ ":run_test" ] |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 420 | sources = [ |
| 421 | "mac/run_test.mm", |
| 422 | ] |
mbonadei | 9c296b3 | 2017-09-05 05:11:41 -0700 | [diff] [blame] | 423 | deps = [ |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 424 | ":run_test_interface", |
| 425 | ] |
mbonadei | 9452c62 | 2017-04-27 12:29:29 -0700 | [diff] [blame] | 426 | } |
| 427 | } |
| 428 | |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 429 | rtc_source_set("run_test_generic") { |
| 430 | testonly = true |
mbonadei | 9c296b3 | 2017-09-05 05:11:41 -0700 | [diff] [blame] | 431 | visibility = [ ":run_test" ] |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 432 | sources = [ |
| 433 | "run_test.cc", |
| 434 | ] |
mbonadei | 9c296b3 | 2017-09-05 05:11:41 -0700 | [diff] [blame] | 435 | deps = [ |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 436 | ":run_test_interface", |
| 437 | ] |
| 438 | } |
| 439 | |
ehmaldonado | 37535bf | 2016-12-05 06:42:45 -0800 | [diff] [blame] | 440 | rtc_source_set("fileutils_unittests") { |
| 441 | testonly = true |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 442 | visibility = [ ":*" ] # Only targets in this file can depend on this. |
ehmaldonado | 37535bf | 2016-12-05 06:42:45 -0800 | [diff] [blame] | 443 | sources = [ |
| 444 | "testsupport/fileutils_unittest.cc", |
| 445 | ] |
| 446 | deps = [ |
| 447 | ":fileutils", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 448 | ":test_support", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 449 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 450 | "../rtc_base:rtc_base_approved", |
ehmaldonado | 37535bf | 2016-12-05 06:42:45 -0800 | [diff] [blame] | 451 | "//testing/gtest", |
Danil Chapovalov | 431abd9 | 2018-06-18 12:54:17 +0200 | [diff] [blame] | 452 | "//third_party/abseil-cpp/absl/types:optional", |
ehmaldonado | 37535bf | 2016-12-05 06:42:45 -0800 | [diff] [blame] | 453 | ] |
| 454 | } |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 455 | |
perkj | 488c5dc | 2017-02-08 05:55:51 -0800 | [diff] [blame] | 456 | rtc_source_set("direct_transport") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 457 | visibility = [ "*" ] |
perkj | 488c5dc | 2017-02-08 05:55:51 -0800 | [diff] [blame] | 458 | testonly = true |
| 459 | sources = [ |
| 460 | "direct_transport.cc", |
| 461 | "direct_transport.h", |
perkj | 488c5dc | 2017-02-08 05:55:51 -0800 | [diff] [blame] | 462 | ] |
| 463 | if (!build_with_chromium && is_clang) { |
| 464 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 465 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 466 | } |
| 467 | deps = [ |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 468 | "..:webrtc_common", |
Artem Titov | 46c4e60 | 2018-08-17 14:26:54 +0200 | [diff] [blame] | 469 | "../api:simulated_network_api", |
perkj | 488c5dc | 2017-02-08 05:55:51 -0800 | [diff] [blame] | 470 | "../api:transport_api", |
Mirko Bonadei | a0e1a55 | 2017-12-04 10:50:51 +0100 | [diff] [blame] | 471 | "../call:call_interfaces", |
Artem Titov | 46c4e60 | 2018-08-17 14:26:54 +0200 | [diff] [blame] | 472 | "../call:simulated_packet_receiver", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 473 | "../modules/rtp_rtcp", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 474 | "../rtc_base:rtc_base_approved", |
eladalon | 413ee9a | 2017-08-22 04:02:52 -0700 | [diff] [blame] | 475 | "../rtc_base:sequenced_task_checker", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 476 | "../system_wrappers", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 477 | "//third_party/abseil-cpp/absl/memory", |
perkj | 488c5dc | 2017-02-08 05:55:51 -0800 | [diff] [blame] | 478 | ] |
eladalon | 413ee9a | 2017-08-22 04:02:52 -0700 | [diff] [blame] | 479 | public_deps = [ |
| 480 | ":single_threaded_task_queue", |
Erik Språng | 0970851 | 2018-03-14 15:16:50 +0100 | [diff] [blame] | 481 | "../call:fake_network", |
eladalon | 413ee9a | 2017-08-22 04:02:52 -0700 | [diff] [blame] | 482 | ] |
| 483 | } |
| 484 | |
| 485 | rtc_source_set("single_threaded_task_queue") { |
| 486 | testonly = true |
| 487 | sources = [ |
| 488 | "single_threaded_task_queue.cc", |
| 489 | "single_threaded_task_queue.h", |
| 490 | ] |
| 491 | deps = [ |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 492 | "../rtc_base:checks", |
eladalon | 413ee9a | 2017-08-22 04:02:52 -0700 | [diff] [blame] | 493 | "../rtc_base:rtc_base_approved", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 494 | "//third_party/abseil-cpp/absl/memory", |
eladalon | 413ee9a | 2017-08-22 04:02:52 -0700 | [diff] [blame] | 495 | ] |
perkj | 488c5dc | 2017-02-08 05:55:51 -0800 | [diff] [blame] | 496 | } |
| 497 | |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 498 | rtc_source_set("fake_video_codecs") { |
| 499 | testonly = true |
| 500 | visibility = [ "*" ] |
| 501 | sources = [ |
| 502 | "configurable_frame_size_encoder.cc", |
| 503 | "configurable_frame_size_encoder.h", |
| 504 | "fake_decoder.cc", |
| 505 | "fake_decoder.h", |
| 506 | "fake_encoder.cc", |
| 507 | "fake_encoder.h", |
| 508 | "fake_vp8_encoder.cc", |
| 509 | "fake_vp8_encoder.h", |
| 510 | ] |
| 511 | if (!build_with_chromium && is_clang) { |
| 512 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 513 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 514 | } |
| 515 | deps = [ |
| 516 | "..:webrtc_common", |
| 517 | "../api/video:video_frame_i420", |
| 518 | "../api/video_codecs:video_codecs_api", |
| 519 | "../common_video:common_video", |
| 520 | "../modules/video_coding:video_codec_interface", |
| 521 | "../modules/video_coding:video_coding_utility", |
| 522 | "../modules/video_coding:webrtc_h264", |
| 523 | "../modules/video_coding:webrtc_vp8", |
| 524 | "../modules/video_coding:webrtc_vp9", |
| 525 | "../rtc_base:checks", |
| 526 | "../rtc_base:rtc_base_approved", |
| 527 | "../rtc_base:rtc_task_queue", |
| 528 | "../rtc_base:sequenced_task_checker", |
| 529 | "../system_wrappers", |
| 530 | ] |
| 531 | } |
| 532 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 533 | rtc_source_set("test_common") { |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 534 | testonly = true |
| 535 | sources = [ |
| 536 | "call_test.cc", |
| 537 | "call_test.h", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 538 | "constants.cc", |
| 539 | "constants.h", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 540 | "drifting_clock.cc", |
| 541 | "drifting_clock.h", |
Niels Möller | 4db138e | 2018-04-19 09:04:13 +0200 | [diff] [blame] | 542 | "encoder_proxy_factory.h", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 543 | "encoder_settings.cc", |
| 544 | "encoder_settings.h", |
sakal | 55d932b | 2016-09-30 06:19:08 -0700 | [diff] [blame] | 545 | "fake_videorenderer.h", |
Rasmus Brandt | 0cedc05 | 2018-05-31 12:53:00 +0200 | [diff] [blame] | 546 | "function_video_decoder_factory.h", |
Niels Möller | 4db138e | 2018-04-19 09:04:13 +0200 | [diff] [blame] | 547 | "function_video_encoder_factory.h", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 548 | "layer_filtering_transport.cc", |
| 549 | "layer_filtering_transport.h", |
Danil Chapovalov | dd7e284 | 2018-03-09 15:37:03 +0000 | [diff] [blame] | 550 | "mock_transport.cc", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 551 | "mock_transport.h", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 552 | "null_transport.cc", |
| 553 | "null_transport.h", |
| 554 | "rtp_rtcp_observer.h", |
| 555 | "statistics.cc", |
| 556 | "statistics.h", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 557 | "win/run_loop_win.cc", |
| 558 | ] |
| 559 | if (!is_win) { |
| 560 | sources += [ |
| 561 | "run_loop.cc", |
| 562 | "run_loop.h", |
| 563 | ] |
| 564 | } |
| 565 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 566 | if (!build_with_chromium && is_clang) { |
| 567 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 568 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 569 | } |
| 570 | |
| 571 | deps = [ |
perkj | 488c5dc | 2017-02-08 05:55:51 -0800 | [diff] [blame] | 572 | ":direct_transport", |
Ilya Nikolaevskiy | b0588e6 | 2018-08-27 14:12:27 +0200 | [diff] [blame] | 573 | ":fake_video_codecs", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 574 | ":fileutils", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 575 | ":rtp_test_utils", |
| 576 | ":test_support", |
perkj | c5726c1 | 2017-03-01 03:37:08 -0800 | [diff] [blame] | 577 | ":video_test_common", |
Patrik Höglund | be214a2 | 2018-01-04 12:14:35 +0100 | [diff] [blame] | 578 | "../api:libjingle_peerconnection_api", |
Artem Titov | 46c4e60 | 2018-08-17 14:26:54 +0200 | [diff] [blame] | 579 | "../api:simulated_network_api", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 580 | "../api:transport_api", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 581 | "../api/audio_codecs:builtin_audio_decoder_factory", |
ossu | eb1fde4 | 2017-05-02 06:46:30 -0700 | [diff] [blame] | 582 | "../api/audio_codecs:builtin_audio_encoder_factory", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 583 | "../api/video:video_frame", |
ilnik | d60d06a | 2017-04-05 03:02:20 -0700 | [diff] [blame] | 584 | "../api/video_codecs:video_codecs_api", |
kjellander | 94cee31 | 2016-06-10 01:56:57 -0700 | [diff] [blame] | 585 | "../audio", |
kjellander | 94cee31 | 2016-06-10 01:56:57 -0700 | [diff] [blame] | 586 | "../call", |
Mirko Bonadei | a0e1a55 | 2017-12-04 10:50:51 +0100 | [diff] [blame] | 587 | "../call:call_interfaces", |
Artem Titov | 4e199e9 | 2018-08-20 13:30:39 +0200 | [diff] [blame] | 588 | "../call:fake_network", |
sprang | db2a9fc | 2017-08-09 06:42:32 -0700 | [diff] [blame] | 589 | "../call:rtp_sender", |
Artem Titov | 4e199e9 | 2018-08-20 13:30:39 +0200 | [diff] [blame] | 590 | "../call:simulated_network", |
Artem Titov | 46c4e60 | 2018-08-17 14:26:54 +0200 | [diff] [blame] | 591 | "../call:simulated_packet_receiver", |
aleloi | 440b6d9 | 2017-08-22 05:43:23 -0700 | [diff] [blame] | 592 | "../call:video_stream_api", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 593 | "../logging:rtc_event_log_api", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 594 | "../logging:rtc_event_log_impl_base", |
Emircan Uysaler | 03e6ec9 | 2018-03-09 15:03:26 -0800 | [diff] [blame] | 595 | "../media:rtc_internal_video_codecs", |
Mirko Bonadei | ad62792 | 2017-11-30 17:16:21 +0100 | [diff] [blame] | 596 | "../media:rtc_media_base", |
Artem Titov | 3faa832 | 2018-03-07 14:44:00 +0100 | [diff] [blame] | 597 | "../modules/audio_device", |
Paulina Hensman | 7bd79a0 | 2018-03-15 12:44:12 +0100 | [diff] [blame] | 598 | "../modules/audio_device:audio_device_impl", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 599 | "../modules/audio_device:mock_audio_device", |
aleloi | 10111bc | 2016-11-17 06:48:48 -0800 | [diff] [blame] | 600 | "../modules/audio_mixer:audio_mixer_impl", |
aleloi | dd31071 | 2016-11-17 06:28:59 -0800 | [diff] [blame] | 601 | "../modules/audio_processing", |
Sebastian Jansson | 50eb4c4 | 2018-08-03 13:25:17 +0200 | [diff] [blame] | 602 | "../modules/congestion_controller/bbr", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 603 | "../modules/rtp_rtcp", |
| 604 | "../modules/rtp_rtcp:mock_rtp_rtcp", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 605 | "../modules/rtp_rtcp:rtp_rtcp_format", |
charujain | cb728ea | 2017-09-18 03:08:08 -0700 | [diff] [blame] | 606 | "../modules/video_coding:video_coding_utility", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 607 | "../modules/video_coding:webrtc_h264", |
Emircan Uysaler | 03e6ec9 | 2018-03-09 15:03:26 -0800 | [diff] [blame] | 608 | "../modules/video_coding:webrtc_multiplex", |
Sergio Garcia Murillo | 43800f9 | 2018-06-21 16:16:38 +0200 | [diff] [blame] | 609 | "../modules/video_coding:webrtc_vp8", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 610 | "../modules/video_coding:webrtc_vp9", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 611 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 612 | "../rtc_base:rtc_base_approved", |
Sebastian Jansson | 50eb4c4 | 2018-08-03 13:25:17 +0200 | [diff] [blame] | 613 | "../rtc_base/experiments:congestion_controller_experiment", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 614 | "../system_wrappers", |
Mirko Bonadei | a498ae8 | 2017-12-06 09:17:14 +0100 | [diff] [blame] | 615 | "../system_wrappers:field_trial_api", |
Ilya Nikolaevskiy | 2ffe3e8 | 2018-01-17 19:57:24 +0000 | [diff] [blame] | 616 | "../system_wrappers:runtime_enabled_features_api", |
kjellander | 94cee31 | 2016-06-10 01:56:57 -0700 | [diff] [blame] | 617 | "../video", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 618 | "//testing/gtest", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 619 | "//third_party/abseil-cpp/absl/memory", |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 620 | ] |
mbonadei | 148d5a2 | 2017-04-28 05:24:50 -0700 | [diff] [blame] | 621 | if (!is_android && !build_with_chromium) { |
oprypin | 92220ff | 2017-03-23 03:40:03 -0700 | [diff] [blame] | 622 | deps += [ "../modules/video_capture:video_capture_internal_impl" ] |
| 623 | } |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 624 | } |
| 625 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 626 | rtc_source_set("test_renderer") { |
mbonadei | 9c296b3 | 2017-09-05 05:11:41 -0700 | [diff] [blame] | 627 | public_deps = [ |
| 628 | ":test_renderer_generic", |
| 629 | ] |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 630 | testonly = true |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 631 | if (is_mac) { |
mbonadei | 9c296b3 | 2017-09-05 05:11:41 -0700 | [diff] [blame] | 632 | public_deps += [ ":test_renderer_objc" ] |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 633 | } |
| 634 | } |
| 635 | |
| 636 | if (is_mac) { |
| 637 | rtc_source_set("test_renderer_objc") { |
| 638 | testonly = true |
mbonadei | 9c296b3 | 2017-09-05 05:11:41 -0700 | [diff] [blame] | 639 | visibility = [ ":test_renderer" ] |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 640 | sources = [ |
| 641 | "mac/video_renderer_mac.h", |
| 642 | "mac/video_renderer_mac.mm", |
| 643 | ] |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 644 | deps = [ |
mbonadei | 9c296b3 | 2017-09-05 05:11:41 -0700 | [diff] [blame] | 645 | ":test_renderer_generic", |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 646 | "../rtc_base:rtc_base_approved", |
| 647 | ] |
| 648 | libs = [ |
| 649 | "Cocoa.framework", |
| 650 | "OpenGL.framework", |
| 651 | "CoreVideo.framework", |
| 652 | ] |
| 653 | if (!build_with_chromium && is_clang) { |
| 654 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 655 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 656 | } |
| 657 | } |
| 658 | } |
| 659 | |
| 660 | rtc_source_set("test_renderer_generic") { |
| 661 | testonly = true |
mbonadei | 9c296b3 | 2017-09-05 05:11:41 -0700 | [diff] [blame] | 662 | visibility = [ |
| 663 | ":test_renderer", |
| 664 | ":test_renderer_objc", |
| 665 | ] |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 666 | libs = [] |
| 667 | sources = [ |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 668 | "video_renderer.cc", |
| 669 | "video_renderer.h", |
| 670 | "win/d3d_renderer.cc", |
| 671 | "win/d3d_renderer.h", |
| 672 | ] |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 673 | deps = [ |
| 674 | ":test_support", |
| 675 | "..:webrtc_common", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 676 | "../api/video:video_frame", |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 677 | "../common_video", |
Mirko Bonadei | ad62792 | 2017-11-30 17:16:21 +0100 | [diff] [blame] | 678 | "../media:rtc_media_base", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 679 | "../rtc_base:checks", |
mbonadei | cd95a4e | 2017-08-23 23:55:54 -0700 | [diff] [blame] | 680 | "../rtc_base:rtc_base_approved", |
| 681 | "//testing/gtest", |
| 682 | ] |
Joachim Bauch | 75f18fc | 2017-12-20 21:25:47 +0100 | [diff] [blame] | 683 | if (!(is_linux && rtc_use_x11) && !is_mac && !is_win) { |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 684 | sources += [ "null_platform_renderer.cc" ] |
| 685 | } |
Joachim Bauch | 75f18fc | 2017-12-20 21:25:47 +0100 | [diff] [blame] | 686 | if ((is_linux && rtc_use_x11) || is_mac) { |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 687 | sources += [ |
| 688 | "gl/gl_renderer.cc", |
| 689 | "gl/gl_renderer.h", |
| 690 | ] |
| 691 | } |
| 692 | |
Joachim Bauch | 75f18fc | 2017-12-20 21:25:47 +0100 | [diff] [blame] | 693 | if (is_linux && rtc_use_x11) { |
Edward Lemur | 84a87c4 | 2017-11-07 19:07:31 +0100 | [diff] [blame] | 694 | sources += [ |
| 695 | "linux/glx_renderer.cc", |
| 696 | "linux/glx_renderer.h", |
| 697 | "linux/video_renderer_linux.cc", |
| 698 | ] |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 699 | libs += [ |
| 700 | "Xext", |
| 701 | "X11", |
| 702 | "GL", |
| 703 | ] |
| 704 | } |
| 705 | if (is_android) { |
| 706 | libs += [ |
| 707 | "GLESv2", |
| 708 | "log", |
| 709 | ] |
| 710 | } |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 711 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 712 | if (!build_with_chromium && is_clang) { |
| 713 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 714 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 715 | } |
kjellander | 0f380d8 | 2016-06-01 04:48:26 -0700 | [diff] [blame] | 716 | } |
kwiberg | 37e99fd | 2017-04-10 05:15:48 -0700 | [diff] [blame] | 717 | |
| 718 | rtc_source_set("audio_codec_mocks") { |
| 719 | testonly = true |
| 720 | sources = [ |
kwiberg | 2b3aa14 | 2017-06-14 03:31:17 -0700 | [diff] [blame] | 721 | "mock_audio_decoder.cc", |
kwiberg | 37e99fd | 2017-04-10 05:15:48 -0700 | [diff] [blame] | 722 | "mock_audio_decoder.h", |
| 723 | "mock_audio_decoder_factory.h", |
ossu | eb1fde4 | 2017-05-02 06:46:30 -0700 | [diff] [blame] | 724 | "mock_audio_encoder.cc", |
| 725 | "mock_audio_encoder.h", |
| 726 | "mock_audio_encoder_factory.h", |
| 727 | ] |
| 728 | |
| 729 | deps = [ |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 730 | ":test_support", |
kwiberg | 529662a | 2017-09-04 05:43:17 -0700 | [diff] [blame] | 731 | "../api:array_view", |
ossu | eb1fde4 | 2017-05-02 06:46:30 -0700 | [diff] [blame] | 732 | "../api/audio_codecs:audio_codecs_api", |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 733 | "../api/audio_codecs:builtin_audio_decoder_factory", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 734 | "../rtc_base:rtc_base_approved", |
kwiberg | 37e99fd | 2017-04-10 05:15:48 -0700 | [diff] [blame] | 735 | ] |
| 736 | } |
sakal | d7fdb80 | 2017-05-26 01:51:53 -0700 | [diff] [blame] | 737 | |
| 738 | if (!build_with_chromium && is_android) { |
Mirko Bonadei | fbb3b7d | 2017-11-07 15:36:33 +0000 | [diff] [blame] | 739 | rtc_android_library("native_test_java") { |
sakal | d7fdb80 | 2017-05-26 01:51:53 -0700 | [diff] [blame] | 740 | testonly = true |
| 741 | java_files = [ |
| 742 | "android/org/webrtc/native_test/RTCNativeUnitTest.java", |
| 743 | "android/org/webrtc/native_test/RTCNativeUnitTestActivity.java", |
| 744 | ] |
| 745 | deps = [ |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 746 | "../rtc_base:base_java", |
sakal | d7fdb80 | 2017-05-26 01:51:53 -0700 | [diff] [blame] | 747 | "//testing/android/native_test:native_test_java", |
sakal | d7fdb80 | 2017-05-26 01:51:53 -0700 | [diff] [blame] | 748 | ] |
| 749 | } |
| 750 | } |