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 |
214 if (rtc_include_tests) { | 229 if (rtc_include_tests) { |
215 rtc_executable("test_packet_masks_metrics") { | 230 rtc_executable("test_packet_masks_metrics") { |
216 testonly = true | 231 testonly = true |
217 | 232 |
218 sources = [ | 233 sources = [ |
219 "test/testFec/average_residual_loss_xor_codes.h", | 234 "test/testFec/average_residual_loss_xor_codes.h", |
220 "test/testFec/test_packet_masks_metrics.cc", | 235 "test/testFec/test_packet_masks_metrics.cc", |
221 ] | 236 ] |
222 | 237 |
223 deps = [ | 238 deps = [ |
(...skipping 19 matching lines...) Expand all Loading... |
243 ":rtp_rtcp", | 258 ":rtp_rtcp", |
244 "../../base:rtc_base_approved", | 259 "../../base:rtc_base_approved", |
245 "../../test:test_support", | 260 "../../test:test_support", |
246 ] | 261 ] |
247 if (!build_with_chromium && is_clang) { | 262 if (!build_with_chromium && is_clang) { |
248 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 263 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
249 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 264 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
250 } | 265 } |
251 } | 266 } |
252 | 267 |
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 |