From 2c670dbf13cd631534770d43ec5a9259aeaba6a9 Mon Sep 17 00:00:00 2001 From: ivoc Date: Wed, 24 Aug 2016 06:11:18 -0700 Subject: [PATCH] Added GN target for webrtc_opus_fec_test. BUG=webrtc:6191 NOTRY=True NOPRESUBMIT=True Review-Url: https://codereview.webrtc.org/2268213002 Cr-Commit-Position: refs/heads/master@{#13893} --- .gn | 1 + webrtc/modules/audio_coding/BUILD.gn | 24 +++++++++++++++++++ .../audio_coding/codecs/opus/opus.gypi | 1 + 3 files changed, 26 insertions(+) diff --git a/.gn b/.gn index a5f070a97c..54eb15beab 100644 --- a/.gn +++ b/.gn @@ -24,6 +24,7 @@ check_targets = [ "//webrtc/modules/audio_coding:g722_test", "//webrtc/modules/audio_coding:isac_fix_test", "//webrtc/modules/audio_coding:isac_test", + "//webrtc/modules/audio_coding:webrtc_opus_fec_test", "//webrtc/modules/audio_device/*", "//webrtc/modules/audio_mixer:audio_conference_mixer", "//webrtc/voice_engine:level_indicator", diff --git a/webrtc/modules/audio_coding/BUILD.gn b/webrtc/modules/audio_coding/BUILD.gn index 9d426e9ab1..1b14f02785 100644 --- a/webrtc/modules/audio_coding/BUILD.gn +++ b/webrtc/modules/audio_coding/BUILD.gn @@ -1600,4 +1600,28 @@ if (rtc_include_tests) { "../..:webrtc_common", ] } + + executable("webrtc_opus_fec_test") { + testonly = true + + sources = [ + "codecs/opus/opus_fec_test.cc", + ] + + deps = [ + ":webrtc_opus", + "../../base:rtc_base", + "../../common_audio", + "../../test:test_support", + "../../test:test_support_main", + "//build/config/sanitizers:deps", + "//testing/gtest", + ] + + if (is_clang) { + # Suppress warnings from Chrome's Clang plugins. + # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. + configs -= [ "//build/config/clang:find_bad_constructs" ] + } + } } diff --git a/webrtc/modules/audio_coding/codecs/opus/opus.gypi b/webrtc/modules/audio_coding/codecs/opus/opus.gypi index d7454d632d..145c7d4391 100644 --- a/webrtc/modules/audio_coding/codecs/opus/opus.gypi +++ b/webrtc/modules/audio_coding/codecs/opus/opus.gypi @@ -58,6 +58,7 @@ 'type': 'executable', 'dependencies': [ 'webrtc_opus', + '<(webrtc_root)/base/base.gyp:rtc_base', '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', '<(webrtc_root)/test/test.gyp:test_support_main', '<(DEPTH)/testing/gtest.gyp:gtest',