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

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

Issue 2319583005: Moved webrtc/test/channel_transport/ into webrtc/voice_engine/test/ (Closed)
Patch Set: rebase Created 4 years, 3 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 | « webrtc/test/test.gyp ('k') | webrtc/voice_engine/test/auto_test/voe_cpu_test.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) 2014 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2014 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 10
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 ] 113 ]
114 114
115 deps = [ 115 deps = [
116 "..:webrtc_common", 116 "..:webrtc_common",
117 "../base:rtc_base_approved", 117 "../base:rtc_base_approved",
118 "../common_audio", 118 "../common_audio",
119 ] 119 ]
120 } 120 }
121 121
122 if (rtc_include_tests) { 122 if (rtc_include_tests) {
123 config("channel_transport_warnings_config") {
124 if (is_win) {
125 cflags = [ "/wd4302" ] # cast truncation
126
127 if (is_clang) {
128 # GN orders flags on a target before flags from configs. The default
129 # config adds -Wall, and this flag have to be after -Wall -- so they nee d
130 # to come from a config and cannot be on the target directly.
131 cflags += [
132 "-Wno-parentheses-equality",
133 "-Wno-reorder",
134 "-Wno-tautological-constant-out-of-range-compare",
135
136 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6268
137 # for -Wno-thread-safety-analysis
138 "-Wno-thread-safety-analysis",
139 "-Wno-unused-private-field",
140 ]
141 }
142 }
143 }
144
145 rtc_source_set("channel_transport") {
146 testonly = true
147 sources = [
148 "test/channel_transport/channel_transport.cc",
149 "test/channel_transport/channel_transport.h",
150 "test/channel_transport/traffic_control_win.cc",
151 "test/channel_transport/traffic_control_win.h",
152 "test/channel_transport/udp_socket2_manager_win.cc",
153 "test/channel_transport/udp_socket2_manager_win.h",
154 "test/channel_transport/udp_socket2_win.cc",
155 "test/channel_transport/udp_socket2_win.h",
156 "test/channel_transport/udp_socket_manager_posix.cc",
157 "test/channel_transport/udp_socket_manager_posix.h",
158 "test/channel_transport/udp_socket_manager_wrapper.cc",
159 "test/channel_transport/udp_socket_manager_wrapper.h",
160 "test/channel_transport/udp_socket_posix.cc",
161 "test/channel_transport/udp_socket_posix.h",
162 "test/channel_transport/udp_socket_wrapper.cc",
163 "test/channel_transport/udp_socket_wrapper.h",
164 "test/channel_transport/udp_transport.h",
165 "test/channel_transport/udp_transport_impl.cc",
166 "test/channel_transport/udp_transport_impl.h",
167 ]
168
169 configs += [ ":channel_transport_warnings_config" ]
170
171 if (is_clang && !is_nacl) {
172 # Suppress warnings from the Chromium Clang plugin.
173 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
174 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
175 }
176
177 deps = [
178 "..:webrtc_common",
179 "../system_wrappers",
180 "//testing/gtest",
181 ]
182 }
183
123 rtc_test("voice_engine_unittests") { 184 rtc_test("voice_engine_unittests") {
124 deps = [ 185 deps = [
186 ":channel_transport",
125 ":voice_engine", 187 ":voice_engine",
126 "//testing/gmock", 188 "//testing/gmock",
127 "//testing/gtest", 189 "//testing/gtest",
128 "//webrtc/common_audio", 190 "//webrtc/common_audio",
129 "//webrtc/modules/audio_coding", 191 "//webrtc/modules/audio_coding",
130 "//webrtc/modules/audio_conference_mixer", 192 "//webrtc/modules/audio_conference_mixer",
131 "//webrtc/modules/audio_device", 193 "//webrtc/modules/audio_device",
132 "//webrtc/modules/audio_processing", 194 "//webrtc/modules/audio_processing",
133 "//webrtc/modules/media_file", 195 "//webrtc/modules/media_file",
134 "//webrtc/modules/rtp_rtcp", 196 "//webrtc/modules/rtp_rtcp",
135 "//webrtc/modules/utility", 197 "//webrtc/modules/utility",
136 "//webrtc/system_wrappers", 198 "//webrtc/system_wrappers",
137 "//webrtc/test:test_support_main", 199 "//webrtc/test:test_support_main",
138 ] 200 ]
139 201
140 if (is_android) { 202 if (is_android) {
141 deps += [ "//testing/android/native_test:native_test_native_code" ] 203 deps += [ "//testing/android/native_test:native_test_native_code" ]
142 shard_timeout = 900 204 shard_timeout = 900
143 } 205 }
144 206
145 sources = [ 207 sources = [
146 "channel_unittest.cc", 208 "channel_unittest.cc",
147 "network_predictor_unittest.cc", 209 "network_predictor_unittest.cc",
210 "test/channel_transport/udp_socket_manager_unittest.cc",
211 "test/channel_transport/udp_socket_wrapper_unittest.cc",
212 "test/channel_transport/udp_transport_unittest.cc",
148 "transmit_mixer_unittest.cc", 213 "transmit_mixer_unittest.cc",
149 "utility_unittest.cc", 214 "utility_unittest.cc",
150 "voe_audio_processing_unittest.cc", 215 "voe_audio_processing_unittest.cc",
151 "voe_base_unittest.cc", 216 "voe_base_unittest.cc",
152 "voe_codec_unittest.cc", 217 "voe_codec_unittest.cc",
153 "voe_network_unittest.cc", 218 "voe_network_unittest.cc",
154 "voice_engine_fixture.cc", 219 "voice_engine_fixture.cc",
155 "voice_engine_fixture.h", 220 "voice_engine_fixture.h",
156 ] 221 ]
157 222
(...skipping 11 matching lines...) Expand all
169 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 234 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
170 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 235 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
171 } 236 }
172 } 237 }
173 238
174 if (!is_ios) { 239 if (!is_ios) {
175 rtc_executable("voe_auto_test") { 240 rtc_executable("voe_auto_test") {
176 testonly = true 241 testonly = true
177 242
178 deps = [ 243 deps = [
244 ":channel_transport",
179 ":voice_engine", 245 ":voice_engine",
180 "//testing/gmock", 246 "//testing/gmock",
181 "//testing/gtest", 247 "//testing/gtest",
182 "//third_party/gflags", 248 "//third_party/gflags",
183 "//webrtc/:rtc_event_log", 249 "//webrtc/:rtc_event_log",
184 "//webrtc/modules/video_capture", 250 "//webrtc/modules/video_capture",
185 "//webrtc/system_wrappers", 251 "//webrtc/system_wrappers",
186 "//webrtc/system_wrappers/:system_wrappers_default", 252 "//webrtc/system_wrappers/:system_wrappers_default",
187 "//webrtc/test/:channel_transport",
188 "//webrtc/test/:test_common", 253 "//webrtc/test/:test_common",
189 "//webrtc/test/:test_support", 254 "//webrtc/test/:test_support",
190 ] 255 ]
191 256
192 sources = [ 257 sources = [
193 "test/auto_test/automated_mode.cc", 258 "test/auto_test/automated_mode.cc",
194 "test/auto_test/extended/agc_config_test.cc", 259 "test/auto_test/extended/agc_config_test.cc",
195 "test/auto_test/extended/ec_metrics_test.cc", 260 "test/auto_test/extended/ec_metrics_test.cc",
196 "test/auto_test/fakes/conference_transport.cc", 261 "test/auto_test/fakes/conference_transport.cc",
197 "test/auto_test/fakes/conference_transport.h", 262 "test/auto_test/fakes/conference_transport.h",
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 } 323 }
259 324
260 if (is_clang) { 325 if (is_clang) {
261 # Suppress warnings from Chrome's Clang plugins. 326 # Suppress warnings from Chrome's Clang plugins.
262 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 327 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
263 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 328 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
264 } 329 }
265 } 330 }
266 } 331 }
267 } 332 }
OLDNEW
« no previous file with comments | « webrtc/test/test.gyp ('k') | webrtc/voice_engine/test/auto_test/voe_cpu_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698