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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 ":video_coding_utility", | 334 ":video_coding_utility", |
335 "../..:webrtc_common", | 335 "../..:webrtc_common", |
336 "../../base:rtc_base_approved", | 336 "../../base:rtc_base_approved", |
337 "../../common_video:common_video", | 337 "../../common_video:common_video", |
338 "../../system_wrappers:system_wrappers", | 338 "../../system_wrappers:system_wrappers", |
339 "../../test:test_support", | 339 "../../test:test_support", |
340 "../../test:video_test_support", | 340 "../../test:video_test_support", |
341 ] | 341 ] |
342 } | 342 } |
343 | 343 |
344 rtc_source_set("video_coding_modules_tests") { | 344 rtc_source_set("video_coding_videoprocessor_integration_test") { |
345 testonly = true | 345 testonly = true |
| 346 |
346 sources = [ | 347 sources = [ |
347 "codecs/test/videoprocessor_integrationtest.cc", | |
348 "codecs/test/videoprocessor_integrationtest.h", | 348 "codecs/test/videoprocessor_integrationtest.h", |
349 "codecs/vp8/test/vp8_impl_unittest.cc", | |
350 ] | 349 ] |
| 350 |
351 deps = [ | 351 deps = [ |
352 ":video_codecs_test_framework", | 352 ":video_codecs_test_framework", |
353 ":video_coding", | 353 ":video_coding", |
354 ":webrtc_h264", | 354 ":webrtc_h264", |
355 ":webrtc_vp8", | 355 ":webrtc_vp8", |
356 ":webrtc_vp9", | 356 ":webrtc_vp9", |
357 "../..:webrtc_common", | 357 "../..:webrtc_common", |
| 358 "../../base:rtc_base_approved", |
| 359 "../../media:rtc_media", |
| 360 "../../test:test_support", |
| 361 "../../test:video_test_support", |
| 362 ] |
| 363 |
| 364 if (is_android) { |
| 365 sources += [ |
| 366 "codecs/test/android_test_initializer.cc", |
| 367 "codecs/test/android_test_initializer.h", |
| 368 ] |
| 369 |
| 370 deps += [ |
| 371 "../../base:rtc_base_approved", |
| 372 "../../sdk/android:libjingle_peerconnection_jni", |
| 373 "//base", |
| 374 ] |
| 375 } |
| 376 |
| 377 if (is_ios || is_mac) { |
| 378 deps += [ |
| 379 "../../media:rtc_media_base", |
| 380 "../../sdk:webrtc_h264_video_toolbox", |
| 381 ] |
| 382 } |
| 383 } |
| 384 |
| 385 rtc_source_set("video_coding_modules_tests") { |
| 386 testonly = true |
| 387 |
| 388 sources = [ |
| 389 "codecs/test/videoprocessor_integrationtest.cc", |
| 390 "codecs/vp8/test/vp8_impl_unittest.cc", |
| 391 ] |
| 392 |
| 393 deps = [ |
| 394 ":video_coding_videoprocessor_integration_test", |
| 395 ":webrtc_vp8", |
358 "../../api:video_frame_api", | 396 "../../api:video_frame_api", |
359 "../../base:rtc_base_approved", | 397 "../../base:rtc_base_approved", |
360 "../../common_video:common_video", | 398 "../../common_video:common_video", |
361 "../../media:rtc_media_base", | |
362 "../../test:test_support", | 399 "../../test:test_support", |
363 "../../test:video_test_common", | 400 "../../test:video_test_common", |
364 "../../test:video_test_support", | |
365 "../video_capture", | 401 "../video_capture", |
366 ] | 402 ] |
| 403 |
367 if (rtc_use_h264) { | 404 if (rtc_use_h264) { |
368 defines = [ "WEBRTC_VIDEOPROCESSOR_H264_TESTS" ] | 405 defines = [ "WEBRTC_VIDEOPROCESSOR_H264_TESTS" ] |
369 } | 406 } |
| 407 |
370 if (!build_with_chromium && is_clang) { | 408 if (!build_with_chromium && is_clang) { |
371 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 409 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
372 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 410 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 411 } |
| 412 } |
| 413 |
| 414 plot_videoprocessor_integrationtest_resources = [ |
| 415 "//resources/foreman_128x96.yuv", |
| 416 "//resources/foreman_160x120.yuv", |
| 417 "//resources/foreman_176x144.yuv", |
| 418 "//resources/foreman_320x240.yuv", |
| 419 "//resources/foreman_cif.yuv", |
| 420 ] |
| 421 |
| 422 if (is_ios || is_mac) { |
| 423 bundle_data("plot_videoprocessor_integrationtest_bundle_data") { |
| 424 testonly = true |
| 425 sources = plot_videoprocessor_integrationtest_resources |
| 426 outputs = [ |
| 427 "{{bundle_resources_dir}}/{{source_file_part}}", |
| 428 ] |
| 429 } |
| 430 } |
| 431 |
| 432 # This executable is meant for local codec perf testing and should not be run |
| 433 # on the trybots/buildbots, hence the existence of this special build target. |
| 434 rtc_test("plot_videoprocessor_integrationtest") { |
| 435 testonly = true |
| 436 |
| 437 sources = [ |
| 438 "codecs/test/plot_videoprocessor_integrationtest.cc", |
| 439 ] |
| 440 |
| 441 deps = [ |
| 442 ":video_coding_videoprocessor_integration_test", |
| 443 "../../test:test_main", |
| 444 "../../test:video_test_common", |
| 445 "../video_capture", |
| 446 ] |
| 447 |
| 448 data = plot_videoprocessor_integrationtest_resources |
| 449 |
| 450 if (is_android) { |
| 451 deps += [ |
| 452 "../../base:rtc_base_approved", |
| 453 |
| 454 # TODO(brandtr): Figure out if the java dep below could be moved into |
| 455 # :video_coding_videoprocessor_integration_test, where it belongs. |
| 456 # When that is done, support for Android HW codecs can be added to the |
| 457 # modules_tests target as well. |
| 458 "../../sdk/android:libjingle_peerconnection_java", |
| 459 "../../sdk/android:libjingle_peerconnection_jni", |
| 460 "//base", |
| 461 "//testing/android/native_test:native_test_support", |
| 462 ] |
| 463 |
| 464 shard_timeout = 900 |
| 465 } |
| 466 |
| 467 if (is_ios || is_mac) { |
| 468 deps += [ ":plot_videoprocessor_integrationtest_bundle_data" ] |
| 469 } |
| 470 |
| 471 # TODO(brandtr): Remove this define when the modules_tests target properly |
| 472 # loads the Java classes mentioned above. |
| 473 defines = [ "WEBRTC_VIDEOPROCESSOR_INTEGRATIONTEST_HW_CODECS_ENABLED" ] |
| 474 |
| 475 if (!build_with_chromium && is_clang) { |
| 476 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 477 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
373 } | 478 } |
374 } | 479 } |
375 | 480 |
376 rtc_source_set("video_coding_unittests") { | 481 rtc_source_set("video_coding_unittests") { |
377 testonly = true | 482 testonly = true |
378 sources = [ | 483 sources = [ |
379 "codecs/test/packet_manipulator_unittest.cc", | 484 "codecs/test/packet_manipulator_unittest.cc", |
380 "codecs/test/stats_unittest.cc", | 485 "codecs/test/stats_unittest.cc", |
381 "codecs/test/videoprocessor_unittest.cc", | 486 "codecs/test/videoprocessor_unittest.cc", |
382 "codecs/vp8/default_temporal_layers_unittest.cc", | 487 "codecs/vp8/default_temporal_layers_unittest.cc", |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 } | 558 } |
454 | 559 |
455 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning. | 560 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning. |
456 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 561 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
457 if (!build_with_chromium && is_clang) { | 562 if (!build_with_chromium && is_clang) { |
458 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 563 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
459 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 564 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
460 } | 565 } |
461 } | 566 } |
462 } | 567 } |
OLD | NEW |