Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: webrtc/modules/audio_device/BUILD.gn

Issue 2920763002: Revert of Enabling `gn check` on webrtc/test (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/modules/audio_coding/BUILD.gn ('k') | webrtc/modules/rtp_rtcp/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
270 if (rtc_include_tests) { 257 if (rtc_include_tests) {
271 rtc_source_set("audio_device_unittests") { 258 rtc_source_set("audio_device_unittests") {
272 testonly = true 259 testonly = true
273 260
274 # Skip restricting visibility on mobile platforms since the tests on those 261 # Skip restricting visibility on mobile platforms since the tests on those
275 # gets additional generated targets which would require many lines here to 262 # gets additional generated targets which would require many lines here to
276 # cover (which would be confusing to read and hard to maintain). 263 # cover (which would be confusing to read and hard to maintain).
277 if (!is_android && !is_ios) { 264 if (!is_android && !is_ios) {
278 visibility = [ "//webrtc/modules:modules_unittests" ] 265 visibility = [ "//webrtc/modules:modules_unittests" ]
279 } 266 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 sources += [ "ios/audio_device_unittest_ios.mm" ] 302 sources += [ "ios/audio_device_unittest_ios.mm" ]
316 } 303 }
317 deps += [ "//third_party/ocmock" ] 304 deps += [ "//third_party/ocmock" ]
318 } 305 }
319 if (!build_with_chromium && is_clang) { 306 if (!build_with_chromium && is_clang) {
320 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 307 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
321 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 308 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
322 } 309 }
323 } 310 }
324 311
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
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 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/BUILD.gn ('k') | webrtc/modules/rtp_rtcp/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698