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("//build/config/ui.gni") | 9 import("//build/config/ui.gni") |
10 import("//testing/test.gni") | 10 import("//testing/test.gni") |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 ] | 272 ] |
273 | 273 |
274 configs += [ "..:common_config" ] | 274 configs += [ "..:common_config" ] |
275 public_configs = [ "..:common_inherited_config" ] | 275 public_configs = [ "..:common_inherited_config" ] |
276 | 276 |
277 deps = [ | 277 deps = [ |
278 ":test_support", | 278 ":test_support", |
279 ] | 279 ] |
280 } | 280 } |
281 | 281 |
| 282 if (is_android || is_ios) { |
| 283 test_support_unittests_resources = [ |
| 284 "//resources/foreman_cif_short.yuv", |
| 285 "//resources/video_coding/frame-ethernet-ii.pcap", |
| 286 "//resources/video_coding/frame-loopback.pcap", |
| 287 "//resources/video_coding/pltype103.rtp", |
| 288 "//resources/video_coding/pltype103_header_only.rtp", |
| 289 "//resources/video_coding/ssrcs-2.pcap", |
| 290 "//resources/video_coding/ssrcs-3.pcap", |
| 291 ] |
| 292 } |
| 293 |
| 294 if (is_ios) { |
| 295 bundle_data("test_support_unittests_bundle_data") { |
| 296 testonly = true |
| 297 sources = test_support_unittests_resources |
| 298 outputs = [ |
| 299 "{{bundle_resources_dir}}/{{source_file_part}}", |
| 300 ] |
| 301 } |
| 302 } |
| 303 |
282 test("test_support_unittests") { | 304 test("test_support_unittests") { |
283 deps = [] | 305 deps = [] |
284 sources = [ | 306 sources = [ |
285 "channel_transport/udp_socket_manager_unittest.cc", | 307 "channel_transport/udp_socket_manager_unittest.cc", |
286 "channel_transport/udp_socket_wrapper_unittest.cc", | 308 "channel_transport/udp_socket_wrapper_unittest.cc", |
287 "channel_transport/udp_transport_unittest.cc", | 309 "channel_transport/udp_transport_unittest.cc", |
288 "common_unittest.cc", | 310 "common_unittest.cc", |
289 "fake_network_pipe_unittest.cc", | 311 "fake_network_pipe_unittest.cc", |
290 "frame_generator_unittest.cc", | 312 "frame_generator_unittest.cc", |
291 "rtp_file_reader_unittest.cc", | 313 "rtp_file_reader_unittest.cc", |
(...skipping 19 matching lines...) Expand all Loading... |
311 } | 333 } |
312 | 334 |
313 if (is_clang) { | 335 if (is_clang) { |
314 # Suppress warnings from the Chromium Clang plugin. | 336 # Suppress warnings from the Chromium Clang plugin. |
315 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 337 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
316 configs -= [ "//build/config/clang:find_bad_constructs" ] | 338 configs -= [ "//build/config/clang:find_bad_constructs" ] |
317 } | 339 } |
318 | 340 |
319 if (is_android) { | 341 if (is_android) { |
320 deps += [ "//testing/android/native_test:native_test_support" ] | 342 deps += [ "//testing/android/native_test:native_test_support" ] |
| 343 data = test_support_unittests_resources |
321 shard_timeout = 900 | 344 shard_timeout = 900 |
322 } | 345 } |
323 | 346 |
324 if (is_android || is_ios) { | 347 if (is_ios) { |
325 data = [ | 348 deps += [ ":test_support_unittests_bundle_data" ] |
326 "//resources/foreman_cif_short.yuv", | |
327 "//resources/video_coding/frame-ethernet-ii.pcap", | |
328 "//resources/video_coding/frame-loopback.pcap", | |
329 "//resources/video_coding/pltype103.rtp", | |
330 "//resources/video_coding/pltype103_header_only.rtp", | |
331 "//resources/video_coding/ssrcs-2.pcap", | |
332 "//resources/video_coding/ssrcs-3.pcap", | |
333 ] | |
334 } | 349 } |
335 | 350 |
336 deps += [ | 351 deps += [ |
337 ":channel_transport", | 352 ":channel_transport", |
338 ":test_common", | 353 ":test_common", |
339 ":test_support_main", | 354 ":test_support_main", |
340 "../modules/video_capture", | 355 "../modules/video_capture", |
341 "//testing/gmock", | 356 "//testing/gmock", |
342 "//testing/gtest", | 357 "//testing/gtest", |
343 ] | 358 ] |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 configs -= [ "//build/config/clang:find_bad_constructs" ] | 501 configs -= [ "//build/config/clang:find_bad_constructs" ] |
487 } | 502 } |
488 | 503 |
489 deps = [ | 504 deps = [ |
490 ":test_support", | 505 ":test_support", |
491 ":video_test_common", | 506 ":video_test_common", |
492 "../modules/media_file", | 507 "../modules/media_file", |
493 "//testing/gtest", | 508 "//testing/gtest", |
494 ] | 509 ] |
495 } | 510 } |
OLD | NEW |