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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 sources = modules_tests_resources | 44 sources = modules_tests_resources |
45 outputs = [ | 45 outputs = [ |
46 "{{bundle_resources_dir}}/{{source_file_part}}", | 46 "{{bundle_resources_dir}}/{{source_file_part}}", |
47 ] | 47 ] |
48 } | 48 } |
49 } | 49 } |
50 | 50 |
51 rtc_test("modules_tests") { | 51 rtc_test("modules_tests") { |
52 testonly = true | 52 testonly = true |
53 | 53 |
| 54 videoprocessor_defines = [] |
| 55 if (rtc_use_h264) { |
| 56 videoprocessor_defines += [ "WEBRTC_VIDEOPROCESSOR_H264_TESTS" ] |
| 57 } |
| 58 |
| 59 defines = audio_coding_defines + videoprocessor_defines |
| 60 |
54 deps = [ | 61 deps = [ |
| 62 "..:webrtc_common", |
| 63 "../common_video", |
| 64 "../media:rtc_media_base", |
| 65 "../modules/audio_coding", |
| 66 "../modules/audio_coding:audio_format_conversion", |
| 67 "../modules/rtp_rtcp", |
| 68 "../modules/utility", |
| 69 "../modules/video_coding", |
| 70 "../modules/video_coding:video_codecs_test_framework", |
| 71 "../system_wrappers", |
55 "../test:test_main", | 72 "../test:test_main", |
56 "audio_coding:audio_coding_modules_tests", | |
57 "desktop_capture:desktop_capture_modules_tests", | |
58 "rtp_rtcp:rtp_rtcp_modules_tests", | |
59 "video_coding:video_coding_modules_tests", | |
60 "//testing/gmock", | 73 "//testing/gmock", |
61 "//testing/gtest", | 74 "//testing/gtest", |
62 ] | 75 ] |
63 | 76 |
| 77 sources = [ |
| 78 "audio_coding/test/APITest.cc", |
| 79 "audio_coding/test/Channel.cc", |
| 80 "audio_coding/test/EncodeDecodeTest.cc", |
| 81 "audio_coding/test/PCMFile.cc", |
| 82 "audio_coding/test/PacketLossTest.cc", |
| 83 "audio_coding/test/RTPFile.cc", |
| 84 "audio_coding/test/TestAllCodecs.cc", |
| 85 "audio_coding/test/TestRedFec.cc", |
| 86 "audio_coding/test/TestStereo.cc", |
| 87 "audio_coding/test/TestVADDTX.cc", |
| 88 "audio_coding/test/Tester.cc", |
| 89 "audio_coding/test/TwoWayCommunication.cc", |
| 90 "audio_coding/test/iSACTest.cc", |
| 91 "audio_coding/test/opus_test.cc", |
| 92 "audio_coding/test/target_delay_unittest.cc", |
| 93 "audio_coding/test/utility.cc", |
| 94 "rtp_rtcp/test/testFec/test_fec.cc", |
| 95 "video_coding/codecs/test/videoprocessor_integrationtest.cc", |
| 96 "video_coding/codecs/vp8/test/vp8_impl_unittest.cc", |
| 97 ] |
| 98 |
| 99 if (rtc_desktop_capture_supported) { |
| 100 deps += [ |
| 101 "desktop_capture:desktop_capture_mock", |
| 102 "desktop_capture:screen_drawer", |
| 103 ] |
| 104 sources += [ |
| 105 "desktop_capture/screen_capturer_integration_test.cc", |
| 106 "desktop_capture/screen_drawer_unittest.cc", |
| 107 ] |
| 108 } |
| 109 |
64 data = modules_tests_resources | 110 data = modules_tests_resources |
65 | 111 |
66 if (is_android) { | 112 if (is_android) { |
67 deps += [ "//testing/android/native_test:native_test_native_code" ] | 113 deps += [ "//testing/android/native_test:native_test_native_code" ] |
68 shard_timeout = 900 | 114 shard_timeout = 900 |
69 } | 115 } |
70 | 116 |
71 if (is_ios) { | 117 if (is_ios) { |
72 deps += [ ":modules_tests_bundle_data" ] | 118 deps += [ ":modules_tests_bundle_data" ] |
73 } | 119 } |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 ] | 284 ] |
239 shard_timeout = 900 | 285 shard_timeout = 900 |
240 } | 286 } |
241 if (is_ios) { | 287 if (is_ios) { |
242 info_plist = "//webrtc/test/ios/Info.plist" | 288 info_plist = "//webrtc/test/ios/Info.plist" |
243 deps += [ ":modules_unittests_bundle_data" ] | 289 deps += [ ":modules_unittests_bundle_data" ] |
244 configs += [ "..:common_objc" ] | 290 configs += [ "..:common_objc" ] |
245 ldflags = [ "-ObjC" ] | 291 ldflags = [ "-ObjC" ] |
246 } | 292 } |
247 } | 293 } |
| 294 |
| 295 rtc_test("bwe_simulator") { |
| 296 testonly = true |
| 297 |
| 298 deps = [] |
| 299 sources = [ |
| 300 "remote_bitrate_estimator/bwe_simulations.cc", |
| 301 ] |
| 302 |
| 303 if (!build_with_chromium && is_clang) { |
| 304 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 305 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 306 } |
| 307 |
| 308 if (is_win) { |
| 309 cflags = [ |
| 310 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. |
| 311 "/wd4373", # virtual function override. |
| 312 ] |
| 313 } |
| 314 |
| 315 deps += [ |
| 316 "..:webrtc_common", |
| 317 "../base:rtc_base_approved", |
| 318 "../test:test_common", |
| 319 "../test:test_main", |
| 320 "remote_bitrate_estimator:bwe_simulator_lib", |
| 321 "video_capture", |
| 322 "//testing/gmock", |
| 323 "//testing/gtest", |
| 324 "//third_party/gflags", |
| 325 ] |
| 326 } |
248 } | 327 } |
OLD | NEW |