Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: webrtc/modules/rtp_rtcp/BUILD.gn

Issue 2828793003: GN: Tighten up test target visibility + refactorings (Closed)
Patch Set: Disable Win compile warning Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 203
204 deps = [ 204 deps = [
205 ":rtp_rtcp", 205 ":rtp_rtcp",
206 "//testing/gtest", 206 "//testing/gtest",
207 "//webrtc/test:test_main", 207 "//webrtc/test:test_main",
208 ] 208 ]
209 } # test_packet_masks_metrics 209 } # test_packet_masks_metrics
210 210
211 rtc_source_set("rtp_rtcp_modules_tests") { 211 rtc_source_set("rtp_rtcp_modules_tests") {
212 testonly = true 212 testonly = true
213 if (!is_android && !is_ios) { # Generated targets makes this check break.
214 visibility = [ "//webrtc/modules:modules_tests" ]
215 }
213 sources = [ 216 sources = [
214 "test/testFec/test_fec.cc", 217 "test/testFec/test_fec.cc",
215 ] 218 ]
216 deps = [ 219 deps = [
217 ":rtp_rtcp", 220 ":rtp_rtcp",
218 "../../base:rtc_base_approved", 221 "../../base:rtc_base_approved",
219 "../../test:test_support", 222 "../../test:test_support",
220 ] 223 ]
221 if (!build_with_chromium && is_clang) { 224 if (!build_with_chromium && is_clang) {
222 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 225 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
223 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 226 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
224 } 227 }
225 } 228 }
226 229
230 rtc_source_set("mock_rtp_rtcp") {
231 testonly = true
232 sources = [
233 "mocks/mock_rtp_rtcp.h",
234 ]
235 deps = [
236 ":rtp_rtcp",
237 "../../base:rtc_base_approved",
238 "../../test:test_support",
239 ]
240 }
241
242 rtc_source_set("fec_test_helper") {
243 testonly = true
244 sources = [
245 "source/fec_test_helper.cc",
246 "source/fec_test_helper.h",
247 ]
248 deps = [
249 ":rtp_rtcp",
250 "../../base:rtc_base_approved",
251 ]
252
253 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning.
254 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
255 if (!build_with_chromium && is_clang) {
256 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
257 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
258 }
259 }
260
227 rtc_source_set("rtp_rtcp_unittests") { 261 rtc_source_set("rtp_rtcp_unittests") {
228 testonly = true 262 testonly = true
263 if (!is_android && !is_ios) { # Generated targets makes this check break.
264 visibility = [ "//webrtc/modules:modules_unittests" ]
265 }
229 sources = [ 266 sources = [
230 "mocks/mock_rtp_rtcp.h",
231 "source/byte_io_unittest.cc", 267 "source/byte_io_unittest.cc",
232 "source/fec_test_helper.cc",
233 "source/fec_test_helper.h",
234 "source/flexfec_header_reader_writer_unittest.cc", 268 "source/flexfec_header_reader_writer_unittest.cc",
235 "source/flexfec_receiver_unittest.cc", 269 "source/flexfec_receiver_unittest.cc",
236 "source/flexfec_sender_unittest.cc", 270 "source/flexfec_sender_unittest.cc",
237 "source/nack_rtx_unittest.cc", 271 "source/nack_rtx_unittest.cc",
238 "source/packet_loss_stats_unittest.cc", 272 "source/packet_loss_stats_unittest.cc",
239 "source/playout_delay_oracle_unittest.cc", 273 "source/playout_delay_oracle_unittest.cc",
240 "source/receive_statistics_unittest.cc", 274 "source/receive_statistics_unittest.cc",
241 "source/remote_ntp_time_estimator_unittest.cc", 275 "source/remote_ntp_time_estimator_unittest.cc",
242 "source/rtcp_nack_stats_unittest.cc", 276 "source/rtcp_nack_stats_unittest.cc",
243 "source/rtcp_packet/app_unittest.cc", 277 "source/rtcp_packet/app_unittest.cc",
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 "source/ulpfec_header_reader_writer_unittest.cc", 318 "source/ulpfec_header_reader_writer_unittest.cc",
285 "source/ulpfec_receiver_unittest.cc", 319 "source/ulpfec_receiver_unittest.cc",
286 "source/vp8_partition_aggregator_unittest.cc", 320 "source/vp8_partition_aggregator_unittest.cc",
287 "test/testAPI/test_api.cc", 321 "test/testAPI/test_api.cc",
288 "test/testAPI/test_api.h", 322 "test/testAPI/test_api.h",
289 "test/testAPI/test_api_audio.cc", 323 "test/testAPI/test_api_audio.cc",
290 "test/testAPI/test_api_rtcp.cc", 324 "test/testAPI/test_api_rtcp.cc",
291 "test/testAPI/test_api_video.cc", 325 "test/testAPI/test_api_video.cc",
292 ] 326 ]
293 deps = [ 327 deps = [
328 ":fec_test_helper",
329 ":mock_rtp_rtcp",
294 ":rtp_rtcp", 330 ":rtp_rtcp",
295 "../..:webrtc_common", 331 "../..:webrtc_common",
296 "../../api:transport_api", 332 "../../api:transport_api",
297 "../../base:rtc_base_approved", 333 "../../base:rtc_base_approved",
298 "../../common_video:common_video", 334 "../../common_video:common_video",
299 "../../system_wrappers:system_wrappers", 335 "../../system_wrappers:system_wrappers",
300 "../../test:field_trial", 336 "../../test:field_trial",
301 "../../test:rtp_test_utils", 337 "../../test:rtp_test_utils",
302 "../../test:test_common", 338 "../../test:test_common",
303 "../../test:test_support", 339 "../../test:test_support",
304 "//testing/gmock", 340 "//testing/gmock",
305 ] 341 ]
306 342
307 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning. 343 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning.
308 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 344 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
309 if (!build_with_chromium && is_clang) { 345 if (!build_with_chromium && is_clang) {
310 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 346 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
311 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 347 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
312 } 348 }
313 } 349 }
314 } 350 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698