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

Unified Diff: webrtc/modules/BUILD.gn

Issue 2187563005: GN: Add target for modules_tests. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Forgot to add video_coding.gni to the CL. Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/BUILD.gn
diff --git a/webrtc/modules/BUILD.gn b/webrtc/modules/BUILD.gn
index 4ffb31051d35cbb26c1787f02612d538617527be..d5c3b8ad174a7ce8678a91378291f35f4596338e 100644
--- a/webrtc/modules/BUILD.gn
+++ b/webrtc/modules/BUILD.gn
@@ -8,6 +8,7 @@
import("../build/webrtc.gni")
import("audio_coding/audio_coding.gni")
+import("video_coding/video_coding.gni")
import("//testing/test.gni")
declare_args() {
@@ -33,6 +34,76 @@ group("modules") {
}
if (rtc_include_tests) {
+ test("modules_tests") {
+ testonly = true
+
+ configs += [ "..:common_config" ]
+ public_configs = [ "..:common_inherited_config" ]
+
+ defines = audio_coding_defines + videoprocessor_defines
+
+ deps = [
+ "..:webrtc_common",
+ "../common_video",
+ "../modules/audio_coding",
+ "../modules/rtp_rtcp",
+ "../modules/utility",
+ "../modules/video_coding",
+ "../modules/video_coding:video_codecs_test_framework",
+ "../system_wrappers",
+ "../test:test_support",
+ "../test:test_support_main",
+ "//testing/gtest",
+ ]
+
+ sources = [
+ "audio_coding/test/APITest.cc",
+ "audio_coding/test/Channel.cc",
+ "audio_coding/test/EncodeDecodeTest.cc",
+ "audio_coding/test/PCMFile.cc",
+ "audio_coding/test/PacketLossTest.cc",
+ "audio_coding/test/RTPFile.cc",
+ "audio_coding/test/TestAllCodecs.cc",
+ "audio_coding/test/TestRedFec.cc",
+ "audio_coding/test/TestStereo.cc",
+ "audio_coding/test/TestVADDTX.cc",
+ "audio_coding/test/Tester.cc",
+ "audio_coding/test/TwoWayCommunication.cc",
+ "audio_coding/test/iSACTest.cc",
+ "audio_coding/test/opus_test.cc",
+ "audio_coding/test/target_delay_unittest.cc",
+ "audio_coding/test/utility.cc",
+ "rtp_rtcp/test/testFec/test_fec.cc",
+ "video_coding/codecs/test/videoprocessor_integrationtest.cc",
+ "video_coding/codecs/vp8/test/vp8_impl_unittest.cc",
+ ]
+
+ if (is_android) {
+ deps += [ "//testing/android/native_test:native_test_native_code" ]
+ }
+ if (is_ios) {
kjellander_webrtc 2016/08/03 15:22:49 Make this if (is_android || is_ios) { instead. I
ehmaldonado_webrtc 2016/08/03 15:40:43 Done.
+ data = [
+ "//resources/audio_coding/testfile32kHz.pcm",
+ "//resources/audio_coding/teststereo32kHz.pcm",
+ "//resources/foreman_cif.yuv",
+ "//resources/paris_qcif.yuv",
+ ]
+ }
+
+ if (is_clang) {
+ # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
+ configs -= [ "//build/config/clang:find_bad_constructs" ]
+ }
+ if (is_win) {
+ cflags = [
+ # TODO(phoglund): get rid of 4373 supression when
+ # http://code.google.com/p/webrtc/issues/detail?id=261 is solved.
+ # legacy warning for ignoring const / volatile in signatures.
+ "/wd4373",
+ ]
+ }
+ }
+
test("modules_unittests") {
testonly = true
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/test/RTPFile.cc » ('j') | webrtc/modules/video_coding/video_coding.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698