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

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 -> bwe_simulator_test. 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
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
61 deps = [ 54 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",
72 "../test:test_main", 55 "../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",
73 "//testing/gmock", 60 "//testing/gmock",
74 "//testing/gtest", 61 "//testing/gtest",
75 ] 62 ]
76 63
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
110 data = modules_tests_resources 64 data = modules_tests_resources
111 65
112 if (is_android) { 66 if (is_android) {
113 deps += [ "//testing/android/native_test:native_test_native_code" ] 67 deps += [ "//testing/android/native_test:native_test_native_code" ]
114 shard_timeout = 900 68 shard_timeout = 900
115 } 69 }
116 70
117 if (is_ios) { 71 if (is_ios) {
118 deps += [ ":modules_tests_bundle_data" ] 72 deps += [ ":modules_tests_bundle_data" ]
119 } 73 }
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 ] 239 ]
286 shard_timeout = 900 240 shard_timeout = 900
287 } 241 }
288 if (is_ios) { 242 if (is_ios) {
289 info_plist = "//webrtc/test/ios/Info.plist" 243 info_plist = "//webrtc/test/ios/Info.plist"
290 deps += [ ":modules_unittests_bundle_data" ] 244 deps += [ ":modules_unittests_bundle_data" ]
291 configs += [ "..:common_objc" ] 245 configs += [ "..:common_objc" ]
292 ldflags = [ "-ObjC" ] 246 ldflags = [ "-ObjC" ]
293 } 247 }
294 } 248 }
295
296 rtc_test("bwe_simulator") {
297 testonly = true
298
299 deps = []
300 sources = [
301 "remote_bitrate_estimator/bwe_simulations.cc",
302 ]
303
304 if (!build_with_chromium && is_clang) {
305 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
306 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
307 }
308
309 if (is_win) {
310 cflags = [
311 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
312 "/wd4373", # virtual function override.
313 ]
314 }
315
316 deps += [
317 "..:webrtc_common",
318 "../base:rtc_base_approved",
319 "../test:test_common",
320 "../test:test_main",
321 "remote_bitrate_estimator:bwe_simulator_lib",
322 "video_capture",
323 "//testing/gmock",
324 "//testing/gtest",
325 "//third_party/gflags",
326 ]
327 }
328 } 249 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/BUILD.gn » ('j') | webrtc/modules/audio_coding/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698