| 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 if (is_win) { | 247 if (is_win) { |
| 248 cflags = [ | 248 cflags = [ |
| 249 # TODO(phoglund): get rid of 4373 supression when | 249 # TODO(phoglund): get rid of 4373 supression when |
| 250 # http://code.google.com/p/webrtc/issues/detail?id=261 is solved. | 250 # http://code.google.com/p/webrtc/issues/detail?id=261 is solved. |
| 251 # legacy warning for ignoring const / volatile in signatures. | 251 # legacy warning for ignoring const / volatile in signatures. |
| 252 "/wd4373", | 252 "/wd4373", |
| 253 ] | 253 ] |
| 254 } | 254 } |
| 255 } | 255 } |
| 256 | 256 |
| 257 rtc_source_set("mock_audio_device") { |
| 258 testonly = true |
| 259 sources = [ |
| 260 "include/mock_audio_device.h", |
| 261 "include/mock_audio_transport.h", |
| 262 ] |
| 263 deps = [ |
| 264 ":audio_device", |
| 265 "../../test:test_support", |
| 266 ] |
| 267 all_dependent_configs = [ ":mock_audio_device_config" ] |
| 268 } |
| 269 |
| 257 if (rtc_include_tests) { | 270 if (rtc_include_tests) { |
| 258 rtc_source_set("audio_device_unittests") { | 271 rtc_source_set("audio_device_unittests") { |
| 259 testonly = true | 272 testonly = true |
| 260 | 273 |
| 261 # Skip restricting visibility on mobile platforms since the tests on those | 274 # Skip restricting visibility on mobile platforms since the tests on those |
| 262 # gets additional generated targets which would require many lines here to | 275 # gets additional generated targets which would require many lines here to |
| 263 # cover (which would be confusing to read and hard to maintain). | 276 # cover (which would be confusing to read and hard to maintain). |
| 264 if (!is_android && !is_ios) { | 277 if (!is_android && !is_ios) { |
| 265 visibility = [ "//webrtc/modules:modules_unittests" ] | 278 visibility = [ "//webrtc/modules:modules_unittests" ] |
| 266 } | 279 } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 sources += [ "ios/audio_device_unittest_ios.mm" ] | 315 sources += [ "ios/audio_device_unittest_ios.mm" ] |
| 303 } | 316 } |
| 304 deps += [ "//third_party/ocmock" ] | 317 deps += [ "//third_party/ocmock" ] |
| 305 } | 318 } |
| 306 if (!build_with_chromium && is_clang) { | 319 if (!build_with_chromium && is_clang) { |
| 307 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 320 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 308 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 321 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 309 } | 322 } |
| 310 } | 323 } |
| 311 | 324 |
| 312 rtc_source_set("mock_audio_device") { | |
| 313 testonly = true | |
| 314 sources = [ | |
| 315 "include/mock_audio_device.h", | |
| 316 "include/mock_audio_transport.h", | |
| 317 ] | |
| 318 deps = [ | |
| 319 ":audio_device", | |
| 320 "../../test:test_support", | |
| 321 ] | |
| 322 all_dependent_configs = [ ":mock_audio_device_config" ] | |
| 323 } | |
| 324 | |
| 325 if (!is_ios) { | 325 if (!is_ios) { |
| 326 # These tests do not work on ios, see | 326 # These tests do not work on ios, see |
| 327 # https://bugs.chromium.org/p/webrtc/issues/detail?id=4755 | 327 # https://bugs.chromium.org/p/webrtc/issues/detail?id=4755 |
| 328 rtc_executable("audio_device_tests") { | 328 rtc_executable("audio_device_tests") { |
| 329 testonly = true | 329 testonly = true |
| 330 sources = [ | 330 sources = [ |
| 331 "test/audio_device_test_api.cc", | 331 "test/audio_device_test_api.cc", |
| 332 "test/audio_device_test_defines.h", | 332 "test/audio_device_test_defines.h", |
| 333 ] | 333 ] |
| 334 deps = [ | 334 deps = [ |
| (...skipping 20 matching lines...) Expand all Loading... |
| 355 "android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java", | 355 "android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java", |
| 356 "android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java", | 356 "android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java", |
| 357 "android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java", | 357 "android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java", |
| 358 "android/java/src/org/webrtc/voiceengine/WebRtcAudioUtils.java", | 358 "android/java/src/org/webrtc/voiceengine/WebRtcAudioUtils.java", |
| 359 ] | 359 ] |
| 360 deps = [ | 360 deps = [ |
| 361 "//webrtc/base:base_java", | 361 "//webrtc/base:base_java", |
| 362 ] | 362 ] |
| 363 } | 363 } |
| 364 } | 364 } |
| OLD | NEW |