Chromium Code Reviews| 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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
| 6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
| 7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
| 8 import("//build/config/features.gni") | 8 import("//build/config/features.gni") |
| 9 import("//build/config/linux/pkg_config.gni") | 9 import("//build/config/linux/pkg_config.gni") |
| 10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
| (...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 641 deps += [ "//media/base/mac:unit_tests" ] | 641 deps += [ "//media/base/mac:unit_tests" ] |
| 642 } | 642 } |
| 643 | 643 |
| 644 # If ExternalClearKey is built, we can test CdmAdapter. | 644 # If ExternalClearKey is built, we can test CdmAdapter. |
| 645 if (enable_pepper_cdms) { | 645 if (enable_pepper_cdms) { |
| 646 sources += [ "cdm/cdm_adapter_unittest.cc" ] | 646 sources += [ "cdm/cdm_adapter_unittest.cc" ] |
| 647 data_deps += [ "//media/cdm/ppapi:clearkeycdm" ] | 647 data_deps += [ "//media/cdm/ppapi:clearkeycdm" ] |
| 648 } | 648 } |
| 649 | 649 |
| 650 if (media_use_ffmpeg) { | 650 if (media_use_ffmpeg) { |
| 651 deps += [ "//media/ffmpeg:ffmpeg_unittests" ] | |
| 652 sources += [ | 651 sources += [ |
| 653 "filters/audio_decoder_unittest.cc", | 652 "filters/audio_decoder_unittest.cc", |
| 654 "filters/audio_file_reader_unittest.cc", | 653 "filters/audio_file_reader_unittest.cc", |
| 655 "filters/blocking_url_protocol_unittest.cc", | 654 "filters/blocking_url_protocol_unittest.cc", |
| 656 "filters/ffmpeg_demuxer_unittest.cc", | 655 "filters/ffmpeg_demuxer_unittest.cc", |
| 657 "filters/ffmpeg_glue_unittest.cc", | 656 "filters/ffmpeg_glue_unittest.cc", |
| 658 "filters/in_memory_url_protocol_unittest.cc", | 657 "filters/in_memory_url_protocol_unittest.cc", |
| 659 ] | 658 ] |
| 660 | 659 |
| 660 deps += [ | |
| 661 "//media/ffmpeg:ffmpeg_unittests", | |
| 662 | |
| 663 # Direct dependency needed for the config | |
| 664 "//third_party/opus", | |
| 665 ] | |
| 666 | |
| 661 if (!is_android) { | 667 if (!is_android) { |
| 662 sources += [ | 668 sources += [ |
| 663 # FFmpeg on Android does not include video decoders. | 669 # FFmpeg on Android does not include video decoders. |
| 664 "filters/ffmpeg_video_decoder_unittest.cc", | 670 "filters/ffmpeg_video_decoder_unittest.cc", |
| 665 ] | 671 ] |
| 666 } | 672 } |
| 667 } | 673 } |
| 668 | 674 |
| 669 if (current_cpu != "arm" && is_chromeos) { | 675 if (current_cpu != "arm" && is_chromeos) { |
| 670 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] | 676 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 730 # Contains tests for all targets in the "media" folder. | 736 # Contains tests for all targets in the "media" folder. |
| 731 # TODO(xhwang): Move mojo/capture/remoting tests here where applicable. | 737 # TODO(xhwang): Move mojo/capture/remoting tests here where applicable. |
| 732 test("media_unittests") { | 738 test("media_unittests") { |
| 733 deps = [ | 739 deps = [ |
| 734 ":unit_tests", | 740 ":unit_tests", |
| 735 "//media/audio:unit_tests", | 741 "//media/audio:unit_tests", |
| 736 "//media/base:unit_tests", | 742 "//media/base:unit_tests", |
| 737 "//media/mojo:unit_tests", | 743 "//media/mojo:unit_tests", |
| 738 "//media/test:pipeline_integration_tests", | 744 "//media/test:pipeline_integration_tests", |
| 739 "//media/test:run_all_unittests", | 745 "//media/test:run_all_unittests", |
| 746 | |
| 747 # Direct dependency needed for the config | |
| 748 "//third_party/opus", | |
|
xhwang
2016/12/08 21:35:33
Why do we need this (from which test)?
mbjorge
2016/12/08 21:46:25
Oh, d'oh. I was confused on how the configs were w
| |
| 740 ] | 749 ] |
| 741 | 750 |
| 742 if (is_android) { | 751 if (is_android) { |
| 743 deps += [ | 752 deps += [ |
| 744 # The test needs the java dependencies to add the java classes for their | 753 # The test needs the java dependencies to add the java classes for their |
| 745 # native counterparts to the test apk. | 754 # native counterparts to the test apk. |
| 746 "//media/base/android:media_java", | 755 "//media/base/android:media_java", |
| 747 "//media/gpu:android_video_decode_accelerator_unittests", | 756 "//media/gpu:android_video_decode_accelerator_unittests", |
| 748 "//ui/android:ui_java", | 757 "//ui/android:ui_java", |
| 749 ] | 758 ] |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 948 fuzzer_test("media_mp4_avcc_parser_fuzzer") { | 957 fuzzer_test("media_mp4_avcc_parser_fuzzer") { |
| 949 sources = [ | 958 sources = [ |
| 950 "formats/mp4/mp4_avcc_parser_fuzzer.cc", | 959 "formats/mp4/mp4_avcc_parser_fuzzer.cc", |
| 951 ] | 960 ] |
| 952 deps = [ | 961 deps = [ |
| 953 ":media", | 962 ":media", |
| 954 "//base", | 963 "//base", |
| 955 ] | 964 ] |
| 956 } | 965 } |
| 957 } | 966 } |
| OLD | NEW |