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

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

Issue 2493483002: Created a mock AudioTransport. (Closed)
Patch Set: put cflags where it belongs Created 4 years, 1 month 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/media/BUILD.gn ('k') | webrtc/modules/audio_device/android/audio_device_unittest.cc » ('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("../../build/webrtc.gni") 9 import("../../build/webrtc.gni")
10 10
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 "dummy/file_audio_device_factory.h", 234 "dummy/file_audio_device_factory.h",
235 ] 235 ]
236 } 236 }
237 237
238 if (!build_with_chromium && is_clang) { 238 if (!build_with_chromium && is_clang) {
239 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 239 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
240 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 240 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
241 } 241 }
242 } 242 }
243 243
244 if (rtc_include_tests) {
245 rtc_source_set("mock_audio_device") {
246 testonly = true
247 sources = [
248 "include/mock_audio_device.h",
249 "include/mock_audio_transport.h",
250 ]
251 deps = [
252 ":audio_device",
253 "../../test:test_support",
254 ]
255 if (is_win) {
256 cflags = [
257 # TODO(phoglund): get rid of 4373 supression when
258 # http://code.google.com/p/webrtc/issues/detail?id=261 is solved.
259 # legacy warning for ignoring const / volatile in signatures.
260 "/wd4373",
261 ]
262 }
263 }
264 }
265
244 # These tests do not work on ios, see 266 # These tests do not work on ios, see
245 # https://bugs.chromium.org/p/webrtc/issues/detail?id=4755 267 # https://bugs.chromium.org/p/webrtc/issues/detail?id=4755
246 if (rtc_include_tests && !is_ios) { 268 if (rtc_include_tests && !is_ios) {
247 rtc_executable("audio_device_tests") { 269 rtc_executable("audio_device_tests") {
248 testonly = true 270 testonly = true
249 sources = [ 271 sources = [
250 "test/audio_device_test_api.cc", 272 "test/audio_device_test_api.cc",
251 "test/audio_device_test_defines.h", 273 "test/audio_device_test_defines.h",
252 ] 274 ]
253 deps = [ 275 deps = [
254 ":audio_device", 276 ":audio_device",
255 "../..:webrtc_common", 277 "../..:webrtc_common",
256 "../../system_wrappers", 278 "../../system_wrappers",
257 "../../test:test_support", 279 "../../test:test_support",
258 "../../test:test_support_main", 280 "../../test:test_support_main",
259 "../rtp_rtcp", 281 "../rtp_rtcp",
260 "../utility", 282 "../utility",
261 "//testing/gtest", 283 "//testing/gtest",
262 ] 284 ]
263 public_configs = [ ":audio_device_config" ] 285 public_configs = [ ":audio_device_config" ]
264 } 286 }
265 } 287 }
OLDNEW
« no previous file with comments | « webrtc/media/BUILD.gn ('k') | webrtc/modules/audio_device/android/audio_device_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698