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("../../webrtc.gni") | 9 import("../../webrtc.gni") |
10 | 10 |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 ] | 204 ] |
205 | 205 |
206 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning. | 206 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning. |
207 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 207 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
208 if (!build_with_chromium && is_clang) { | 208 if (!build_with_chromium && is_clang) { |
209 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 209 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
210 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 210 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
211 } | 211 } |
212 } | 212 } |
213 | 213 |
214 rtc_source_set("mock_rtp_rtcp") { | |
215 testonly = true | |
216 sources = [ | |
217 "mocks/mock_recovered_packet_receiver.h", | |
218 "mocks/mock_rtcp_rtt_stats.h", | |
219 "mocks/mock_rtp_rtcp.h", | |
220 ] | |
221 deps = [ | |
222 ":rtp_rtcp", | |
223 "..:module_api", | |
224 "../../base:rtc_base_approved", | |
225 "../../test:test_support", | |
226 ] | |
227 } | |
228 | |
229 if (rtc_include_tests) { | 214 if (rtc_include_tests) { |
230 rtc_executable("test_packet_masks_metrics") { | 215 rtc_executable("test_packet_masks_metrics") { |
231 testonly = true | 216 testonly = true |
232 | 217 |
233 sources = [ | 218 sources = [ |
234 "test/testFec/average_residual_loss_xor_codes.h", | 219 "test/testFec/average_residual_loss_xor_codes.h", |
235 "test/testFec/test_packet_masks_metrics.cc", | 220 "test/testFec/test_packet_masks_metrics.cc", |
236 ] | 221 ] |
237 | 222 |
238 deps = [ | 223 deps = [ |
(...skipping 19 matching lines...) Expand all Loading... |
258 ":rtp_rtcp", | 243 ":rtp_rtcp", |
259 "../../base:rtc_base_approved", | 244 "../../base:rtc_base_approved", |
260 "../../test:test_support", | 245 "../../test:test_support", |
261 ] | 246 ] |
262 if (!build_with_chromium && is_clang) { | 247 if (!build_with_chromium && is_clang) { |
263 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 248 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
264 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 249 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
265 } | 250 } |
266 } | 251 } |
267 | 252 |
| 253 rtc_source_set("mock_rtp_rtcp") { |
| 254 testonly = true |
| 255 sources = [ |
| 256 "mocks/mock_recovered_packet_receiver.h", |
| 257 "mocks/mock_rtcp_rtt_stats.h", |
| 258 "mocks/mock_rtp_rtcp.h", |
| 259 ] |
| 260 deps = [ |
| 261 ":rtp_rtcp", |
| 262 "..:module_api", |
| 263 "../../base:rtc_base_approved", |
| 264 "../../test:test_support", |
| 265 ] |
| 266 } |
| 267 |
268 rtc_source_set("rtp_rtcp_unittests") { | 268 rtc_source_set("rtp_rtcp_unittests") { |
269 testonly = true | 269 testonly = true |
270 | 270 |
271 # Skip restricting visibility on mobile platforms since the tests on those | 271 # Skip restricting visibility on mobile platforms since the tests on those |
272 # gets additional generated targets which would require many lines here to | 272 # gets additional generated targets which would require many lines here to |
273 # cover (which would be confusing to read and hard to maintain). | 273 # cover (which would be confusing to read and hard to maintain). |
274 if (!is_android && !is_ios) { | 274 if (!is_android && !is_ios) { |
275 visibility = [ "//webrtc/modules:modules_unittests" ] | 275 visibility = [ "//webrtc/modules:modules_unittests" ] |
276 } | 276 } |
277 sources = [ | 277 sources = [ |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 ] | 353 ] |
354 | 354 |
355 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning. | 355 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning. |
356 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 356 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
357 if (!build_with_chromium && is_clang) { | 357 if (!build_with_chromium && is_clang) { |
358 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 358 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
359 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 359 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
360 } | 360 } |
361 } | 361 } |
362 } | 362 } |
OLD | NEW |