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