OLD | NEW |
---|---|
1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2016 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/webrtc.gni") | 9 import("../build/webrtc.gni") |
10 import("audio_coding/audio_coding.gni") | 10 import("audio_coding/audio_coding.gni") |
(...skipping 14 matching lines...) Expand all Loading... | |
25 "desktop_capture", | 25 "desktop_capture", |
26 "media_file", | 26 "media_file", |
27 "rtp_rtcp", | 27 "rtp_rtcp", |
28 "utility", | 28 "utility", |
29 "video_coding", | 29 "video_coding", |
30 "video_processing", | 30 "video_processing", |
31 ] | 31 ] |
32 } | 32 } |
33 | 33 |
34 if (rtc_include_tests) { | 34 if (rtc_include_tests) { |
35 test("modules_tests") { | |
36 testonly = true | |
37 | |
38 configs += [ "..:common_config" ] | |
39 public_configs = [ "..:common_inherited_config" ] | |
40 | |
41 defines = audio_coding_defines | |
phoglund
2016/07/28 12:13:36
I see you have inlined videoprocessor_defines to j
| |
42 if (rtc_use_h264) { | |
43 defines += [ "WEBRTC_VIDEOPROCESSOR_H264_TESTS" ] | |
44 } | |
45 | |
46 deps = [ | |
47 "..:webrtc_common", | |
48 "../common_video", | |
49 "../modules/audio_coding", | |
50 "../modules/rtp_rtcp", | |
51 "../modules/utility", | |
52 "../modules/video_coding", | |
53 "../modules/video_coding:video_codecs_test_framework", | |
54 "../system_wrappers", | |
55 "../test:test_support", | |
56 "../test:test_support_main", | |
57 "//testing/gtest", | |
58 ] | |
59 | |
60 sources = [ | |
61 "audio_coding/test/APITest.cc", | |
62 "audio_coding/test/Channel.cc", | |
63 "audio_coding/test/EncodeDecodeTest.cc", | |
64 "audio_coding/test/PCMFile.cc", | |
65 "audio_coding/test/PacketLossTest.cc", | |
66 "audio_coding/test/RTPFile.cc", | |
67 "audio_coding/test/TestAllCodecs.cc", | |
68 "audio_coding/test/TestRedFec.cc", | |
69 "audio_coding/test/TestStereo.cc", | |
70 "audio_coding/test/TestVADDTX.cc", | |
71 "audio_coding/test/Tester.cc", | |
72 "audio_coding/test/TwoWayCommunication.cc", | |
73 "audio_coding/test/iSACTest.cc", | |
74 "audio_coding/test/opus_test.cc", | |
75 "audio_coding/test/target_delay_unittest.cc", | |
76 "audio_coding/test/utility.cc", | |
77 "rtp_rtcp/test/testFec/test_fec.cc", | |
78 "video_coding/codecs/test/videoprocessor_integrationtest.cc", | |
79 "video_coding/codecs/vp8/test/vp8_impl_unittest.cc", | |
80 ] | |
81 | |
82 if (is_android) { | |
83 deps += [ "//testing/android/native_test:native_test_native_code" ] | |
84 } | |
85 if (is_ios) { | |
86 data = [ | |
87 "//resources/audio_coding/testfile32kHz.pcm", | |
88 "//resources/audio_coding/teststereo32kHz.pcm", | |
89 "//resources/foreman_cif.yuv", | |
90 "//resources/paris_qcif.yuv", | |
91 ] | |
92 } | |
93 | |
94 if (is_clang) { | |
95 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | |
96 configs -= [ "//build/config/clang:find_bad_constructs" ] | |
97 } | |
98 if (is_win) { | |
99 cflags = [ | |
100 # TODO(phoglund): get rid of 4373 supression when | |
101 # http://code.google.com/p/webrtc/issues/detail?id=261 is solved. | |
102 # legacy warning for ignoring const / volatile in signatures. | |
103 "/wd4373", | |
104 ] | |
105 } | |
106 } | |
107 | |
35 test("modules_unittests") { | 108 test("modules_unittests") { |
36 testonly = true | 109 testonly = true |
37 | 110 |
38 defines = audio_coding_defines | 111 defines = audio_coding_defines |
39 deps = [] | 112 deps = [] |
40 sources = [ | 113 sources = [ |
41 "audio_coding/acm2/acm_receiver_unittest_oldapi.cc", | 114 "audio_coding/acm2/acm_receiver_unittest_oldapi.cc", |
42 "audio_coding/acm2/audio_coding_module_unittest_oldapi.cc", | 115 "audio_coding/acm2/audio_coding_module_unittest_oldapi.cc", |
43 "audio_coding/acm2/call_statistics_unittest.cc", | 116 "audio_coding/acm2/call_statistics_unittest.cc", |
44 "audio_coding/acm2/codec_manager_unittest.cc", | 117 "audio_coding/acm2/codec_manager_unittest.cc", |
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
534 "audio_device/ios/objc/RTCAudioSessionTest.mm", | 607 "audio_device/ios/objc/RTCAudioSessionTest.mm", |
535 "video_coding/codecs/h264/h264_video_toolbox_nalu_unittest.cc", | 608 "video_coding/codecs/h264/h264_video_toolbox_nalu_unittest.cc", |
536 ] | 609 ] |
537 | 610 |
538 ldflags = [ "-ObjC" ] | 611 ldflags = [ "-ObjC" ] |
539 | 612 |
540 # TODO(kjellander): Mac bundle files. | 613 # TODO(kjellander): Mac bundle files. |
541 } | 614 } |
542 } | 615 } |
543 } | 616 } |
OLD | NEW |