| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
| 6 import("//build/config/arm.gni") | 6 import("//build/config/arm.gni") |
| 7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
| 8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
| 9 import("//build/config/linux/pkg_config.gni") | 9 import("//build/config/linux/pkg_config.gni") |
| 10 import("//media/media_options.gni") | 10 import("//media/media_options.gni") |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 "//base", | 381 "//base", |
| 382 "//base/test:test_support", | 382 "//base/test:test_support", |
| 383 "//media", | 383 "//media", |
| 384 "//media:media_features", | 384 "//media:media_features", |
| 385 "//media:shared_memory_support", | 385 "//media:shared_memory_support", |
| 386 "//testing/gmock", | 386 "//testing/gmock", |
| 387 "//ui/gfx:test_support", | 387 "//ui/gfx:test_support", |
| 388 ] | 388 ] |
| 389 } | 389 } |
| 390 | 390 |
| 391 source_set("unittests") { | 391 source_set("unit_tests") { |
| 392 testonly = true | 392 testonly = true |
| 393 sources = [ | 393 sources = [ |
| 394 "audio_block_fifo_unittest.cc", | 394 "audio_block_fifo_unittest.cc", |
| 395 "audio_buffer_converter_unittest.cc", | 395 "audio_buffer_converter_unittest.cc", |
| 396 "audio_buffer_queue_unittest.cc", | 396 "audio_buffer_queue_unittest.cc", |
| 397 "audio_buffer_unittest.cc", | 397 "audio_buffer_unittest.cc", |
| 398 "audio_bus_unittest.cc", | 398 "audio_bus_unittest.cc", |
| 399 "audio_converter_unittest.cc", | 399 "audio_converter_unittest.cc", |
| 400 "audio_discard_helper_unittest.cc", | 400 "audio_discard_helper_unittest.cc", |
| 401 "audio_fifo_unittest.cc", | 401 "audio_fifo_unittest.cc", |
| (...skipping 24 matching lines...) Expand all Loading... |
| 426 "feedback_signal_accumulator_unittest.cc", | 426 "feedback_signal_accumulator_unittest.cc", |
| 427 "gmock_callback_support_unittest.cc", | 427 "gmock_callback_support_unittest.cc", |
| 428 "key_systems_unittest.cc", | 428 "key_systems_unittest.cc", |
| 429 "media_url_demuxer_unittest.cc", | 429 "media_url_demuxer_unittest.cc", |
| 430 "mime_util_unittest.cc", | 430 "mime_util_unittest.cc", |
| 431 "moving_average_unittest.cc", | 431 "moving_average_unittest.cc", |
| 432 "multi_channel_resampler_unittest.cc", | 432 "multi_channel_resampler_unittest.cc", |
| 433 "null_video_sink_unittest.cc", | 433 "null_video_sink_unittest.cc", |
| 434 "pipeline_impl_unittest.cc", | 434 "pipeline_impl_unittest.cc", |
| 435 "ranges_unittest.cc", | 435 "ranges_unittest.cc", |
| 436 "run_all_unittests.cc", | |
| 437 "seekable_buffer_unittest.cc", | 436 "seekable_buffer_unittest.cc", |
| 438 "serial_runner_unittest.cc", | 437 "serial_runner_unittest.cc", |
| 439 "silent_sink_suspender_unittest.cc", | 438 "silent_sink_suspender_unittest.cc", |
| 440 "sinc_resampler_unittest.cc", | 439 "sinc_resampler_unittest.cc", |
| 441 "stream_parser_unittest.cc", | 440 "stream_parser_unittest.cc", |
| 442 "text_ranges_unittest.cc", | 441 "text_ranges_unittest.cc", |
| 443 "text_renderer_unittest.cc", | 442 "text_renderer_unittest.cc", |
| 444 "time_delta_interpolator_unittest.cc", | 443 "time_delta_interpolator_unittest.cc", |
| 445 "user_input_monitor_unittest.cc", | 444 "user_input_monitor_unittest.cc", |
| 446 "vector_math_unittest.cc", | 445 "vector_math_unittest.cc", |
| 447 "video_codecs_unittest.cc", | 446 "video_codecs_unittest.cc", |
| 448 "video_decoder_config_unittest.cc", | 447 "video_decoder_config_unittest.cc", |
| 449 "video_frame_pool_unittest.cc", | 448 "video_frame_pool_unittest.cc", |
| 450 "video_frame_unittest.cc", | 449 "video_frame_unittest.cc", |
| 451 "video_util_unittest.cc", | 450 "video_util_unittest.cc", |
| 452 "wall_clock_time_source_unittest.cc", | 451 "wall_clock_time_source_unittest.cc", |
| 453 "yuv_convert_unittest.cc", | 452 "yuv_convert_unittest.cc", |
| 454 ] | 453 ] |
| 455 configs += [ | 454 configs += [ |
| 456 "//build/config/compiler:no_size_t_to_int_warning", | 455 "//build/config/compiler:no_size_t_to_int_warning", |
| 457 "//media:media_config", | 456 "//media:media_config", |
| 458 ] | 457 ] |
| 459 deps = [ | 458 deps = [ |
| 460 ":test_support", | 459 ":test_support", |
| 461 "//base/test:test_support", | 460 "//base/test:test_support", |
| 462 "//gpu/command_buffer/common", | 461 "//gpu/command_buffer/common", |
| 463 "//media", | 462 "//media", |
| 464 "//media/base/android:anywhere_unittests", | 463 "//media/base/android:anywhere_unit_tests", |
| 465 "//ppapi/features", | 464 "//ppapi/features", |
| 466 "//skia", | 465 "//skia", |
| 467 "//testing/gmock", | 466 "//testing/gmock", |
| 468 "//testing/gtest", | 467 "//testing/gtest", |
| 469 ] | 468 ] |
| 470 | 469 |
| 471 # Even if FFmpeg is enabled on Android we don't want these. | 470 # Even if FFmpeg is enabled on Android we don't want these. |
| 472 # TODO(watk): Refactor tests that could be made to run on Android. | 471 # TODO(watk): Refactor tests that could be made to run on Android. |
| 473 if (media_use_ffmpeg && !is_android) { | 472 if (media_use_ffmpeg && !is_android) { |
| 474 sources += [ | 473 sources += [ |
| 475 "audio_video_metadata_extractor_unittest.cc", | 474 "audio_video_metadata_extractor_unittest.cc", |
| 476 "media_file_checker_unittest.cc", | 475 "media_file_checker_unittest.cc", |
| 477 ] | 476 ] |
| 478 } | 477 } |
| 479 | 478 |
| 480 if (is_android) { | 479 if (is_android) { |
| 481 deps += [ "//ui/gl" ] | 480 deps += [ |
| 481 "//media/base/android:unit_tests", |
| 482 "//ui/gl", |
| 483 ] |
| 482 } | 484 } |
| 483 | 485 |
| 484 if (current_cpu == "x86" || current_cpu == "x64") { | 486 if (current_cpu == "x86" || current_cpu == "x64") { |
| 485 sources += [ "simd/convert_rgb_to_yuv_unittest.cc" ] | 487 sources += [ "simd/convert_rgb_to_yuv_unittest.cc" ] |
| 486 } | 488 } |
| 487 } | 489 } |
| 488 | 490 |
| 491 test("media_base_unittests") { |
| 492 deps = [ |
| 493 ":unit_tests", |
| 494 "//media/test:run_all_unittests", |
| 495 ] |
| 496 |
| 497 if (is_android) { |
| 498 deps += [ |
| 499 # The test needs the java dependencies to add the java classes for their |
| 500 # native counterparts to the test apk. |
| 501 "//media/base/android:media_java", |
| 502 "//ui/android:ui_java", |
| 503 ] |
| 504 } |
| 505 } |
| 506 |
| 489 source_set("perftests") { | 507 source_set("perftests") { |
| 490 testonly = true | 508 testonly = true |
| 491 sources = [ | 509 sources = [ |
| 492 "audio_bus_perftest.cc", | 510 "audio_bus_perftest.cc", |
| 493 "audio_converter_perftest.cc", | 511 "audio_converter_perftest.cc", |
| 494 "run_all_perftests.cc", | 512 "run_all_perftests.cc", |
| 495 "sinc_resampler_perftest.cc", | 513 "sinc_resampler_perftest.cc", |
| 496 "vector_math_perftest.cc", | 514 "vector_math_perftest.cc", |
| 497 "yuv_convert_perftest.cc", | 515 "yuv_convert_perftest.cc", |
| 498 ] | 516 ] |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 | 608 |
| 591 fuzzer_test("media_container_names_fuzzer") { | 609 fuzzer_test("media_container_names_fuzzer") { |
| 592 sources = [ | 610 sources = [ |
| 593 "container_names_fuzzertest.cc", | 611 "container_names_fuzzertest.cc", |
| 594 ] | 612 ] |
| 595 deps = [ | 613 deps = [ |
| 596 "//base", | 614 "//base", |
| 597 "//media", | 615 "//media", |
| 598 ] | 616 ] |
| 599 } | 617 } |
| OLD | NEW |