OLD | NEW |
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 Loading... |
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 | |
184 rtc_test("voice_engine_unittests") { | 123 rtc_test("voice_engine_unittests") { |
185 deps = [ | 124 deps = [ |
186 ":channel_transport", | |
187 ":voice_engine", | 125 ":voice_engine", |
188 "//testing/gmock", | 126 "//testing/gmock", |
189 "//testing/gtest", | 127 "//testing/gtest", |
190 "//webrtc/common_audio", | 128 "//webrtc/common_audio", |
191 "//webrtc/modules/audio_coding", | 129 "//webrtc/modules/audio_coding", |
192 "//webrtc/modules/audio_conference_mixer", | 130 "//webrtc/modules/audio_conference_mixer", |
193 "//webrtc/modules/audio_device", | 131 "//webrtc/modules/audio_device", |
194 "//webrtc/modules/audio_processing", | 132 "//webrtc/modules/audio_processing", |
195 "//webrtc/modules/media_file", | 133 "//webrtc/modules/media_file", |
196 "//webrtc/modules/rtp_rtcp", | 134 "//webrtc/modules/rtp_rtcp", |
197 "//webrtc/modules/utility", | 135 "//webrtc/modules/utility", |
198 "//webrtc/system_wrappers", | 136 "//webrtc/system_wrappers", |
199 "//webrtc/test:test_support_main", | 137 "//webrtc/test:test_support_main", |
200 ] | 138 ] |
201 | 139 |
202 if (is_android) { | 140 if (is_android) { |
203 deps += [ "//testing/android/native_test:native_test_native_code" ] | 141 deps += [ "//testing/android/native_test:native_test_native_code" ] |
204 shard_timeout = 900 | 142 shard_timeout = 900 |
205 } | 143 } |
206 | 144 |
207 sources = [ | 145 sources = [ |
208 "channel_unittest.cc", | 146 "channel_unittest.cc", |
209 "network_predictor_unittest.cc", | 147 "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", | |
213 "transmit_mixer_unittest.cc", | 148 "transmit_mixer_unittest.cc", |
214 "utility_unittest.cc", | 149 "utility_unittest.cc", |
215 "voe_audio_processing_unittest.cc", | 150 "voe_audio_processing_unittest.cc", |
216 "voe_base_unittest.cc", | 151 "voe_base_unittest.cc", |
217 "voe_codec_unittest.cc", | 152 "voe_codec_unittest.cc", |
218 "voe_network_unittest.cc", | 153 "voe_network_unittest.cc", |
219 "voice_engine_fixture.cc", | 154 "voice_engine_fixture.cc", |
220 "voice_engine_fixture.h", | 155 "voice_engine_fixture.h", |
221 ] | 156 ] |
222 | 157 |
(...skipping 11 matching lines...) Expand all Loading... |
234 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 169 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
235 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 170 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
236 } | 171 } |
237 } | 172 } |
238 | 173 |
239 if (!is_ios) { | 174 if (!is_ios) { |
240 rtc_executable("voe_auto_test") { | 175 rtc_executable("voe_auto_test") { |
241 testonly = true | 176 testonly = true |
242 | 177 |
243 deps = [ | 178 deps = [ |
244 ":channel_transport", | |
245 ":voice_engine", | 179 ":voice_engine", |
246 "//testing/gmock", | 180 "//testing/gmock", |
247 "//testing/gtest", | 181 "//testing/gtest", |
248 "//third_party/gflags", | 182 "//third_party/gflags", |
249 "//webrtc/:rtc_event_log", | 183 "//webrtc/:rtc_event_log", |
250 "//webrtc/modules/video_capture", | 184 "//webrtc/modules/video_capture", |
251 "//webrtc/system_wrappers", | 185 "//webrtc/system_wrappers", |
252 "//webrtc/system_wrappers/:system_wrappers_default", | 186 "//webrtc/system_wrappers/:system_wrappers_default", |
| 187 "//webrtc/test/:channel_transport", |
253 "//webrtc/test/:test_common", | 188 "//webrtc/test/:test_common", |
254 "//webrtc/test/:test_support", | 189 "//webrtc/test/:test_support", |
255 ] | 190 ] |
256 | 191 |
257 sources = [ | 192 sources = [ |
258 "test/auto_test/automated_mode.cc", | 193 "test/auto_test/automated_mode.cc", |
259 "test/auto_test/extended/agc_config_test.cc", | 194 "test/auto_test/extended/agc_config_test.cc", |
260 "test/auto_test/extended/ec_metrics_test.cc", | 195 "test/auto_test/extended/ec_metrics_test.cc", |
261 "test/auto_test/fakes/conference_transport.cc", | 196 "test/auto_test/fakes/conference_transport.cc", |
262 "test/auto_test/fakes/conference_transport.h", | 197 "test/auto_test/fakes/conference_transport.h", |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 } | 258 } |
324 | 259 |
325 if (is_clang) { | 260 if (is_clang) { |
326 # Suppress warnings from Chrome's Clang plugins. | 261 # Suppress warnings from Chrome's Clang plugins. |
327 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 262 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
328 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 263 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
329 } | 264 } |
330 } | 265 } |
331 } | 266 } |
332 } | 267 } |
OLD | NEW |