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

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

Issue 2187563005: GN: Add target for modules_tests. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Adressed comments. Created 4 years, 4 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/test/RTPFile.cc » ('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("../build/webrtc.gni") 9 import("../build/webrtc.gni")
10 import("audio_coding/audio_coding.gni") 10 import("audio_coding/audio_coding.gni")
(...skipping 15 matching lines...) Expand all
26 "desktop_capture", 26 "desktop_capture",
27 "media_file", 27 "media_file",
28 "rtp_rtcp", 28 "rtp_rtcp",
29 "utility", 29 "utility",
30 "video_coding", 30 "video_coding",
31 "video_processing", 31 "video_processing",
32 ] 32 ]
33 } 33 }
34 34
35 if (rtc_include_tests) { 35 if (rtc_include_tests) {
36 test("modules_tests") {
37 testonly = true
38
39 configs += [ "..:common_config" ]
40 public_configs = [ "..:common_inherited_config" ]
41
42 videoprocessor_defines = []
ehmaldonado_webrtc 2016/08/03 15:40:44 Is this the right place to put this? I'd say so, s
kjellander_webrtc 2016/08/03 15:58:18 Yeah, close to where it's used is best IMO
43 if (rtc_use_h264) {
44 videoprocessor_defines += [ "WEBRTC_VIDEOPROCESSOR_H264_TESTS" ]
45 }
46
47 defines = audio_coding_defines + videoprocessor_defines
48
49 deps = [
50 "..:webrtc_common",
51 "../common_video",
52 "../modules/audio_coding",
53 "../modules/rtp_rtcp",
54 "../modules/utility",
55 "../modules/video_coding",
56 "../modules/video_coding:video_codecs_test_framework",
57 "../system_wrappers",
58 "../test:test_support",
59 "../test:test_support_main",
60 "//testing/gtest",
61 ]
62
63 sources = [
64 "audio_coding/test/APITest.cc",
65 "audio_coding/test/Channel.cc",
66 "audio_coding/test/EncodeDecodeTest.cc",
67 "audio_coding/test/PCMFile.cc",
68 "audio_coding/test/PacketLossTest.cc",
69 "audio_coding/test/RTPFile.cc",
70 "audio_coding/test/TestAllCodecs.cc",
71 "audio_coding/test/TestRedFec.cc",
72 "audio_coding/test/TestStereo.cc",
73 "audio_coding/test/TestVADDTX.cc",
74 "audio_coding/test/Tester.cc",
75 "audio_coding/test/TwoWayCommunication.cc",
76 "audio_coding/test/iSACTest.cc",
77 "audio_coding/test/opus_test.cc",
78 "audio_coding/test/target_delay_unittest.cc",
79 "audio_coding/test/utility.cc",
80 "rtp_rtcp/test/testFec/test_fec.cc",
81 "video_coding/codecs/test/videoprocessor_integrationtest.cc",
82 "video_coding/codecs/vp8/test/vp8_impl_unittest.cc",
83 ]
84
85 if (is_android) {
86 deps += [ "//testing/android/native_test:native_test_native_code" ]
87 }
88 if (is_android || is_ios) {
89 data = [
90 "//resources/audio_coding/testfile32kHz.pcm",
91 "//resources/audio_coding/teststereo32kHz.pcm",
92 "//resources/foreman_cif.yuv",
93 "//resources/paris_qcif.yuv",
94 ]
95 }
96
97 if (is_clang) {
98 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
99 configs -= [ "//build/config/clang:find_bad_constructs" ]
100 }
101 if (is_win) {
102 cflags = [
103 # TODO(phoglund): get rid of 4373 supression when
104 # http://code.google.com/p/webrtc/issues/detail?id=261 is solved.
105 # legacy warning for ignoring const / volatile in signatures.
106 "/wd4373",
107 ]
108 }
109 }
110
36 test("modules_unittests") { 111 test("modules_unittests") {
37 testonly = true 112 testonly = true
38 113
39 defines = audio_coding_defines 114 defines = audio_coding_defines
40 deps = [] 115 deps = []
41 sources = [ 116 sources = [
42 "audio_coding/acm2/acm_receiver_unittest_oldapi.cc", 117 "audio_coding/acm2/acm_receiver_unittest_oldapi.cc",
43 "audio_coding/acm2/audio_coding_module_unittest_oldapi.cc", 118 "audio_coding/acm2/audio_coding_module_unittest_oldapi.cc",
44 "audio_coding/acm2/call_statistics_unittest.cc", 119 "audio_coding/acm2/call_statistics_unittest.cc",
45 "audio_coding/acm2/codec_manager_unittest.cc", 120 "audio_coding/acm2/codec_manager_unittest.cc",
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 "audio_device/ios/objc/RTCAudioSessionTest.mm", 610 "audio_device/ios/objc/RTCAudioSessionTest.mm",
536 "video_coding/codecs/h264/h264_video_toolbox_nalu_unittest.cc", 611 "video_coding/codecs/h264/h264_video_toolbox_nalu_unittest.cc",
537 ] 612 ]
538 613
539 ldflags = [ "-ObjC" ] 614 ldflags = [ "-ObjC" ]
540 615
541 # TODO(kjellander): Mac bundle files. 616 # TODO(kjellander): Mac bundle files.
542 } 617 }
543 } 618 }
544 } 619 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/test/RTPFile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698