Chromium Code Reviews| 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 "../../media:rtc_media", | |
| 359 "../../test:test_support", | |
| 360 "../../test:video_test_support", | |
| 361 ] | |
| 362 | |
| 363 if (is_android) { | |
| 364 sources += [ | |
| 365 "codecs/test/android_test_initializer.cc", | |
| 366 "codecs/test/android_test_initializer.h", | |
| 367 ] | |
| 368 | |
| 369 deps += [ | |
| 370 "../../base:rtc_base_approved", | |
| 371 "../../sdk/android:libjingle_peerconnection_jni", | |
| 372 "//base", | |
| 373 ] | |
| 374 } | |
| 375 | |
| 376 if (is_ios) { | |
| 377 deps += [ | |
| 378 "../../media:rtc_media_base", | |
| 379 "../../sdk:webrtc_h264_video_toolbox", | |
| 380 ] | |
| 381 } | |
| 382 } | |
| 383 | |
| 384 rtc_source_set("video_coding_modules_tests") { | |
| 385 testonly = true | |
| 386 | |
| 387 sources = [ | |
| 388 "codecs/test/videoprocessor_integrationtest.cc", | |
| 389 "codecs/vp8/test/vp8_impl_unittest.cc", | |
| 390 ] | |
| 391 | |
| 392 deps = [ | |
| 393 ":video_coding_videoprocessor_integration_test", | |
| 394 ":webrtc_vp8", | |
| 358 "../../api:video_frame_api", | 395 "../../api:video_frame_api", |
| 359 "../../base:rtc_base_approved", | 396 "../../base:rtc_base_approved", |
| 360 "../../common_video:common_video", | 397 "../../common_video:common_video", |
| 361 "../../media:rtc_media_base", | |
| 362 "../../test:test_support", | 398 "../../test:test_support", |
| 363 "../../test:video_test_common", | 399 "../../test:video_test_common", |
| 364 "../../test:video_test_support", | |
| 365 "../video_capture", | 400 "../video_capture", |
| 366 ] | 401 ] |
| 402 | |
| 367 if (rtc_use_h264) { | 403 if (rtc_use_h264) { |
| 368 defines = [ "WEBRTC_VIDEOPROCESSOR_H264_TESTS" ] | 404 defines = [ "WEBRTC_VIDEOPROCESSOR_H264_TESTS" ] |
| 369 } | 405 } |
| 406 | |
| 370 if (!build_with_chromium && is_clang) { | 407 if (!build_with_chromium && is_clang) { |
| 371 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 408 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 372 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 409 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 410 } | |
| 411 } | |
| 412 | |
| 413 plot_videoprocessor_integrationtest_resources = [ | |
| 414 "//resources/foreman_128x96.yuv", | |
|
brandtr
2017/02/13 12:40:26
These need to be uploaded to Gstorage.
| |
| 415 "//resources/foreman_160x120.yuv", | |
| 416 "//resources/foreman_176x144.yuv", | |
|
kjellander_webrtc
2017/02/13 14:31:07
We already have //resources/paris_qcif.yuv or do w
brandtr
2017/02/13 16:23:02
Will reuse existing one.
kjellander_webrtc
2017/02/14 11:00:14
Were you going to reuse paris_qcif.yuv? It seems y
brandtr
2017/02/14 14:22:37
Oops, I must have confused this comment with the n
| |
| 417 "//resources/foreman_320x240.yuv", | |
| 418 "//resources/foreman_352x288.yuv", | |
|
kjellander_webrtc
2017/02/13 14:31:08
352×288 is the size of cif, so this file should be
brandtr
2017/02/13 16:23:02
Thanks for catching this. The same file should be
| |
| 419 "//resources/foreman_cif.yuv", | |
| 420 ] | |
| 421 | |
| 422 if (is_ios) { | |
| 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 | |
|
kjellander_webrtc
2017/02/13 14:31:07
Interesting. Is the perf testing that is performed
brandtr
2017/02/13 16:23:02
Yes. The idea is that the existing perf tests in v
kjellander_webrtc
2017/02/14 11:00:14
Acknowledged. Thanks for explaining.
| |
| 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 "../../sdk/android:libjingle_peerconnection_java", | |
|
brandtr
2017/02/13 12:40:26
When I put this dependency in :video_coding_videop
kjellander_webrtc
2017/02/13 14:31:08
Mirko: You can probably explain this better than m
mbonadei
2017/02/13 21:19:10
Unfortunately I came across a similar problem some
brandtr
2017/02/14 08:35:26
Your theory is compatible with my experience: addi
| |
| 457 "../../sdk/android:libjingle_peerconnection_jni", | |
| 458 "//base", | |
| 459 "//testing/android/native_test:native_test_support", | |
| 460 ] | |
| 461 | |
| 462 shard_timeout = 900 | |
| 463 } | |
| 464 | |
| 465 if (is_ios) { | |
| 466 deps += [ ":plot_videoprocessor_integrationtest_bundle_data" ] | |
| 467 } | |
| 468 | |
| 469 if (!build_with_chromium && is_clang) { | |
| 470 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | |
| 471 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | |
| 373 } | 472 } |
| 374 } | 473 } |
| 375 | 474 |
| 376 rtc_source_set("video_coding_unittests") { | 475 rtc_source_set("video_coding_unittests") { |
| 377 testonly = true | 476 testonly = true |
| 378 sources = [ | 477 sources = [ |
| 379 "codecs/test/packet_manipulator_unittest.cc", | 478 "codecs/test/packet_manipulator_unittest.cc", |
| 380 "codecs/test/stats_unittest.cc", | 479 "codecs/test/stats_unittest.cc", |
| 381 "codecs/test/videoprocessor_unittest.cc", | 480 "codecs/test/videoprocessor_unittest.cc", |
| 382 "codecs/vp8/default_temporal_layers_unittest.cc", | 481 "codecs/vp8/default_temporal_layers_unittest.cc", |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 453 } | 552 } |
| 454 | 553 |
| 455 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning. | 554 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning. |
| 456 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 555 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 457 if (!build_with_chromium && is_clang) { | 556 if (!build_with_chromium && is_clang) { |
| 458 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 557 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 459 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 558 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 460 } | 559 } |
| 461 } | 560 } |
| 462 } | 561 } |
| OLD | NEW |