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

Unified Diff: webrtc/voice_engine/BUILD.gn

Issue 2123243003: Added voice_engine_unittests and voe_auto_test targets to GN. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added suppression of error 4373 on Windows. 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/voice_engine/BUILD.gn
diff --git a/webrtc/voice_engine/BUILD.gn b/webrtc/voice_engine/BUILD.gn
index 31b1d5b4305649dc888cfc59d5d78a1af1eab615..8ffff148ef9b650eaedeb6ab119a1bbfe5efd960 100644
--- a/webrtc/voice_engine/BUILD.gn
+++ b/webrtc/voice_engine/BUILD.gn
@@ -7,6 +7,7 @@
# be found in the AUTHORS file in the root of the source tree.
import("../build/webrtc.gni")
+import("//testing/test.gni")
source_set("voice_engine") {
sources = [
@@ -106,3 +107,149 @@ source_set("voice_engine") {
"../system_wrappers",
]
}
+
+if (rtc_include_tests) {
+ test("voice_engine_unittests") {
+ deps = [
+ ":voice_engine",
+ "//testing/gmock",
+ "//testing/gtest",
+ "//webrtc/common_audio",
+ "//webrtc/modules/audio_coding",
+ "//webrtc/modules/audio_conference_mixer",
+ "//webrtc/modules/audio_device",
+ "//webrtc/modules/audio_processing",
+ "//webrtc/modules/media_file",
+ "//webrtc/modules/rtp_rtcp",
+ "//webrtc/modules/utility",
+ "//webrtc/system_wrappers",
+ "//webrtc/test:test_support_main",
+ ]
+
+ if (is_android) {
+ deps += [ "//testing/android/native_test:native_test_native_code" ]
+ }
+
+ sources = [
+ "channel_unittest.cc",
+ "network_predictor_unittest.cc",
+ "transmit_mixer_unittest.cc",
+ "utility_unittest.cc",
+ "voe_audio_processing_unittest.cc",
+ "voe_base_unittest.cc",
+ "voe_codec_unittest.cc",
+ "voe_network_unittest.cc",
+ "voice_engine_fixture.cc",
+ "voice_engine_fixture.h",
+ ]
+
+ if (is_win) {
+ defines = [ "WEBRTC_DRIFT_COMPENSATION_SUPPORTED" ]
+
+ cflags = [
+ # TODO(kjellander): Bug 261: fix this warning.
+ "/wd4373", # virtual function override.
+ ]
+ }
+
+ if (is_clang) {
phoglund 2016/07/07 12:26:42 Where is this from? Can't find anything correspond
ossu 2016/07/07 12:42:42 I took them from the voice_engine target above.. I
+ # 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" ]
+ }
+ }
+
+ if (!is_ios) {
+ executable("voe_auto_test") {
+ testonly = true
+
+ deps = [
+ ":voice_engine",
+ "//testing/gmock",
+ "//testing/gtest",
+ "//third_party/gflags",
+ "//webrtc/:rtc_event_log",
+ "//webrtc/modules/video_capture",
+ "//webrtc/system_wrappers",
+ "//webrtc/system_wrappers/:system_wrappers_default",
+ "//webrtc/test/:channel_transport",
+ "//webrtc/test/:test_common",
+ "//webrtc/test/:test_support",
+ ]
+
+ sources = [
+ "test/auto_test/automated_mode.cc",
+ "test/auto_test/extended/agc_config_test.cc",
+ "test/auto_test/extended/ec_metrics_test.cc",
+ "test/auto_test/fakes/conference_transport.cc",
+ "test/auto_test/fakes/conference_transport.h",
+ "test/auto_test/fakes/loudest_filter.cc",
+ "test/auto_test/fakes/loudest_filter.h",
+ "test/auto_test/fixtures/after_initialization_fixture.cc",
+ "test/auto_test/fixtures/after_initialization_fixture.h",
+ "test/auto_test/fixtures/after_streaming_fixture.cc",
+ "test/auto_test/fixtures/after_streaming_fixture.h",
+ "test/auto_test/fixtures/before_initialization_fixture.cc",
+ "test/auto_test/fixtures/before_initialization_fixture.h",
+ "test/auto_test/fixtures/before_streaming_fixture.cc",
+ "test/auto_test/fixtures/before_streaming_fixture.h",
+ "test/auto_test/resource_manager.cc",
+ "test/auto_test/standard/audio_processing_test.cc",
+ "test/auto_test/standard/codec_before_streaming_test.cc",
+ "test/auto_test/standard/codec_test.cc",
+ "test/auto_test/standard/dtmf_test.cc",
+ "test/auto_test/standard/external_media_test.cc",
+ "test/auto_test/standard/file_before_streaming_test.cc",
+ "test/auto_test/standard/file_test.cc",
+ "test/auto_test/standard/hardware_before_initializing_test.cc",
+ "test/auto_test/standard/hardware_test.cc",
+ "test/auto_test/standard/mixing_test.cc",
+ "test/auto_test/standard/neteq_stats_test.cc",
+ "test/auto_test/standard/rtp_rtcp_before_streaming_test.cc",
+ "test/auto_test/standard/rtp_rtcp_extensions.cc",
+ "test/auto_test/standard/rtp_rtcp_test.cc",
+ "test/auto_test/standard/video_sync_test.cc",
+ "test/auto_test/standard/voe_base_misc_test.cc",
+ "test/auto_test/standard/volume_test.cc",
+ "test/auto_test/voe_conference_test.cc",
+ "test/auto_test/voe_cpu_test.cc",
+ "test/auto_test/voe_cpu_test.h",
+ "test/auto_test/voe_output_test.cc",
+ "test/auto_test/voe_standard_test.cc",
+ "test/auto_test/voe_standard_test.h",
+ "test/auto_test/voe_stress_test.cc",
+ "test/auto_test/voe_stress_test.h",
+ "test/auto_test/voe_test_defines.h",
+ "test/auto_test/voe_test_interface.h",
+ ]
+
+ if (!is_android) {
+ # some tests are not supported on android yet, exclude these tests.
phoglund 2016/07/07 12:26:42 Nit: uppercase S
ossu 2016/07/07 12:42:42 I stole these comments from gyp, but I'll fix 'em
+ sources +=
+ [ "test/auto_test/standard/hardware_before_streaming_test.cc" ]
+ }
+
+ defines = []
+
+ if (rtc_enable_protobuf) {
+ defines = [ "ENABLE_RTC_EVENT_LOG" ]
+ }
+
+ if (is_win) {
+ defines += [ "WEBRTC_DRIFT_COMPENSATION_SUPPORTED" ]
+
+ cflags = [
+ "/wd4267", # size_t to int truncation.
+ "/wd4373", # virtual function override.
phoglund 2016/07/07 12:26:42 Nit: uppercase v
ossu 2016/07/07 12:42:42 Acknowledged.
+ # TODO(kjellander): Bug 261: fix this warning.
+ ]
+ }
+
+ 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" ]
+ }
+ }
+ }
+}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698