OLD | NEW |
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 import("../webrtc.gni") | 9 import("../webrtc.gni") |
10 | 10 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 "../modules/video_coding:webrtc_vp8", | 75 "../modules/video_coding:webrtc_vp8", |
76 "../modules/video_processing", | 76 "../modules/video_processing", |
77 "../system_wrappers", | 77 "../system_wrappers", |
78 "../voice_engine", | 78 "../voice_engine", |
79 ] | 79 ] |
80 } | 80 } |
81 | 81 |
82 if (rtc_include_tests) { | 82 if (rtc_include_tests) { |
83 rtc_source_set("video_quality_test") { | 83 rtc_source_set("video_quality_test") { |
84 testonly = true | 84 testonly = true |
| 85 visibility = [ ":*" ] # Only targets in this file can depend on this. |
85 sources = [ | 86 sources = [ |
86 "video_quality_test.cc", | 87 "video_quality_test.cc", |
87 "video_quality_test.h", | 88 "video_quality_test.h", |
88 ] | 89 ] |
89 deps = [ | 90 deps = [ |
90 "../base:rtc_base_tests_utils", | 91 "../base:rtc_base_tests_utils", |
91 "../base:rtc_task_queue", | 92 "../base:rtc_task_queue", |
92 "../call:call_interfaces", | 93 "../call:call_interfaces", |
93 "../common_video", | 94 "../common_video", |
94 "../logging:rtc_event_log_api", | 95 "../logging:rtc_event_log_api", |
(...skipping 12 matching lines...) Expand all Loading... |
107 "//webrtc/test:video_test_common", | 108 "//webrtc/test:video_test_common", |
108 ] | 109 ] |
109 if (!build_with_chromium && is_clang) { | 110 if (!build_with_chromium && is_clang) { |
110 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 111 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
111 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 112 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
112 } | 113 } |
113 } | 114 } |
114 | 115 |
115 rtc_source_set("video_full_stack_tests") { | 116 rtc_source_set("video_full_stack_tests") { |
116 testonly = true | 117 testonly = true |
| 118 |
| 119 # Skip restricting visibility on mobile platforms since the tests on those |
| 120 # gets additional generated targets which would require many lines here to |
| 121 # cover (which would be confusing to read and hard to maintain). |
| 122 if (!is_android && !is_ios) { |
| 123 visibility = [ "//webrtc:webrtc_perf_tests" ] |
| 124 } |
117 sources = [ | 125 sources = [ |
118 "full_stack_tests.cc", | 126 "full_stack_tests.cc", |
119 ] | 127 ] |
120 deps = [ | 128 deps = [ |
121 ":video_quality_test", | 129 ":video_quality_test", |
122 "../test:field_trial", | 130 "../test:field_trial", |
123 "../test:test_support", | 131 "../test:test_support", |
124 "//testing/gtest", | 132 "//testing/gtest", |
125 "//webrtc/test:test_common", | 133 "//webrtc/test:test_common", |
126 ] | 134 ] |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 ] | 214 ] |
207 if (!build_with_chromium && is_clang) { | 215 if (!build_with_chromium && is_clang) { |
208 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 216 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
209 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 217 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
210 } | 218 } |
211 } | 219 } |
212 | 220 |
213 # TODO(pbos): Rename test suite. | 221 # TODO(pbos): Rename test suite. |
214 rtc_source_set("video_tests") { | 222 rtc_source_set("video_tests") { |
215 testonly = true | 223 testonly = true |
| 224 |
| 225 # Skip restricting visibility on mobile platforms since the tests on those |
| 226 # gets additional generated targets which would require many lines here to |
| 227 # cover (which would be confusing to read and hard to maintain). |
| 228 if (!is_android && !is_ios) { |
| 229 visibility = [ "//webrtc:video_engine_tests" ] |
| 230 } |
216 defines = [] | 231 defines = [] |
217 sources = [ | 232 sources = [ |
218 "call_stats_unittest.cc", | 233 "call_stats_unittest.cc", |
219 "encoder_rtcp_feedback_unittest.cc", | 234 "encoder_rtcp_feedback_unittest.cc", |
220 "end_to_end_tests.cc", | 235 "end_to_end_tests.cc", |
221 "overuse_frame_detector_unittest.cc", | 236 "overuse_frame_detector_unittest.cc", |
222 "payload_router_unittest.cc", | 237 "payload_router_unittest.cc", |
223 "quality_threshold_unittest.cc", | 238 "quality_threshold_unittest.cc", |
224 "receive_statistics_proxy_unittest.cc", | 239 "receive_statistics_proxy_unittest.cc", |
225 "report_block_stats_unittest.cc", | 240 "report_block_stats_unittest.cc", |
(...skipping 12 matching lines...) Expand all Loading... |
238 "../api/video_codecs:video_codecs_api", | 253 "../api/video_codecs:video_codecs_api", |
239 "../base:rtc_base_approved", | 254 "../base:rtc_base_approved", |
240 "../base:rtc_base_tests_utils", | 255 "../base:rtc_base_tests_utils", |
241 "../call:call_interfaces", | 256 "../call:call_interfaces", |
242 "../common_video", | 257 "../common_video", |
243 "../logging:rtc_event_log_api", | 258 "../logging:rtc_event_log_api", |
244 "../media:rtc_media_base", | 259 "../media:rtc_media_base", |
245 "../media:rtc_media_tests_utils", | 260 "../media:rtc_media_tests_utils", |
246 "../modules/pacing", | 261 "../modules/pacing", |
247 "../modules/rtp_rtcp", | 262 "../modules/rtp_rtcp", |
248 "../modules/rtp_rtcp:rtp_rtcp_unittests", | 263 "../modules/rtp_rtcp:mock_rtp_rtcp", |
249 "../modules/utility", | 264 "../modules/utility", |
250 "../modules/video_coding", | 265 "../modules/video_coding", |
251 "../modules/video_coding:video_coding_utility", | 266 "../modules/video_coding:video_coding_utility", |
252 "../modules/video_coding:webrtc_h264", | 267 "../modules/video_coding:webrtc_h264", |
253 "../modules/video_coding:webrtc_vp8", | 268 "../modules/video_coding:webrtc_vp8", |
254 "../modules/video_coding:webrtc_vp9", | 269 "../modules/video_coding:webrtc_vp9", |
255 "../system_wrappers", | 270 "../system_wrappers", |
256 "../system_wrappers:field_trial_default", | 271 "../system_wrappers:field_trial_default", |
257 "../system_wrappers:metrics_api", | 272 "../system_wrappers:metrics_api", |
258 "../system_wrappers:metrics_default", | 273 "../system_wrappers:metrics_default", |
259 "../test:direct_transport", | 274 "../test:direct_transport", |
260 "../test:field_trial", | 275 "../test:field_trial", |
261 "../test:rtp_test_utils", | 276 "../test:rtp_test_utils", |
262 "../test:test_common", | 277 "../test:test_common", |
263 "../test:test_support", | 278 "../test:test_support", |
264 "../test:video_test_common", | 279 "../test:video_test_common", |
265 "//testing/gmock", | 280 "//testing/gmock", |
266 "//testing/gtest", | 281 "//testing/gtest", |
267 ] | 282 ] |
268 if (!build_with_chromium && is_clang) { | 283 if (!build_with_chromium && is_clang) { |
269 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 284 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
270 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 285 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
271 } | 286 } |
272 if (rtc_use_h264) { | 287 if (rtc_use_h264) { |
273 defines += [ "WEBRTC_USE_H264" ] | 288 defines += [ "WEBRTC_USE_H264" ] |
274 } | 289 } |
275 } | 290 } |
276 } | 291 } |
OLD | NEW |