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