Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: webrtc/modules/BUILD.gn

Issue 2653173003: Reland of GN: Refactor modules_unittests to eliminate package boundary violations. (Closed)
Patch Set: Rename bwe_simulator_test -> bwe_simulations_tests. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("../webrtc.gni") 9 import("../webrtc.gni")
10 import("audio_coding/audio_coding.gni") 10 import("audio_coding/audio_coding.gni")
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 sources = modules_tests_resources 43 sources = modules_tests_resources
44 outputs = [ 44 outputs = [
45 "{{bundle_resources_dir}}/{{source_file_part}}", 45 "{{bundle_resources_dir}}/{{source_file_part}}",
46 ] 46 ]
47 } 47 }
48 } 48 }
49 49
50 rtc_test("modules_tests") { 50 rtc_test("modules_tests") {
51 testonly = true 51 testonly = true
52 52
53 videoprocessor_defines = []
54 if (rtc_use_h264) {
55 videoprocessor_defines += [ "WEBRTC_VIDEOPROCESSOR_H264_TESTS" ]
56 }
57
58 defines = audio_coding_defines + videoprocessor_defines
59
60 deps = [ 53 deps = [
61 "..:webrtc_common",
62 "../common_video",
63 "../media:rtc_media_base",
64 "../modules/audio_coding",
65 "../modules/audio_coding:audio_format_conversion",
66 "../modules/rtp_rtcp",
67 "../modules/utility",
68 "../modules/video_coding",
69 "../modules/video_coding:video_codecs_test_framework",
70 "../system_wrappers",
71 "../test:test_main", 54 "../test:test_main",
55 "audio_coding:audio_coding_modules_tests",
56 "desktop_capture:desktop_capture_modules_tests",
57 "rtp_rtcp:rtp_rtcp_modules_tests",
58 "video_coding:video_coding_modules_tests",
72 "//testing/gmock", 59 "//testing/gmock",
73 "//testing/gtest", 60 "//testing/gtest",
74 ] 61 ]
75 62
76 sources = [
77 "audio_coding/test/APITest.cc",
78 "audio_coding/test/Channel.cc",
79 "audio_coding/test/EncodeDecodeTest.cc",
80 "audio_coding/test/PCMFile.cc",
81 "audio_coding/test/PacketLossTest.cc",
82 "audio_coding/test/RTPFile.cc",
83 "audio_coding/test/TestAllCodecs.cc",
84 "audio_coding/test/TestRedFec.cc",
85 "audio_coding/test/TestStereo.cc",
86 "audio_coding/test/TestVADDTX.cc",
87 "audio_coding/test/Tester.cc",
88 "audio_coding/test/TwoWayCommunication.cc",
89 "audio_coding/test/iSACTest.cc",
90 "audio_coding/test/opus_test.cc",
91 "audio_coding/test/target_delay_unittest.cc",
92 "audio_coding/test/utility.cc",
93 "rtp_rtcp/test/testFec/test_fec.cc",
94 "video_coding/codecs/test/videoprocessor_integrationtest.cc",
95 "video_coding/codecs/vp8/test/vp8_impl_unittest.cc",
96 ]
97
98 if (rtc_desktop_capture_supported) {
99 deps += [
100 "desktop_capture:desktop_capture_mock",
101 "desktop_capture:screen_drawer",
102 ]
103 sources += [
104 "desktop_capture/screen_capturer_integration_test.cc",
105 "desktop_capture/screen_drawer_unittest.cc",
106 ]
107 }
108
109 data = modules_tests_resources 63 data = modules_tests_resources
110 64
111 if (is_android) { 65 if (is_android) {
112 deps += [ "//testing/android/native_test:native_test_native_code" ] 66 deps += [ "//testing/android/native_test:native_test_native_code" ]
113 shard_timeout = 900 67 shard_timeout = 900
114 } 68 }
115 69
116 if (is_ios) { 70 if (is_ios) {
117 deps += [ ":modules_tests_bundle_data" ] 71 deps += [ ":modules_tests_bundle_data" ]
118 } 72 }
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 ] 238 ]
285 shard_timeout = 900 239 shard_timeout = 900
286 } 240 }
287 if (is_ios) { 241 if (is_ios) {
288 info_plist = "//webrtc/test/ios/Info.plist" 242 info_plist = "//webrtc/test/ios/Info.plist"
289 deps += [ ":modules_unittests_bundle_data" ] 243 deps += [ ":modules_unittests_bundle_data" ]
290 configs += [ "..:common_objc" ] 244 configs += [ "..:common_objc" ]
291 ldflags = [ "-ObjC" ] 245 ldflags = [ "-ObjC" ]
292 } 246 }
293 } 247 }
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 }
327 } 248 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698