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

Unified Diff: webrtc/voice_engine/BUILD.gn

Issue 2319583005: Moved webrtc/test/channel_transport/ into webrtc/voice_engine/test/ (Closed)
Patch Set: rebase Created 4 years, 3 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 | « webrtc/test/test.gyp ('k') | webrtc/voice_engine/test/auto_test/voe_cpu_test.cc » ('j') | 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 e773ebd0497a64d98a79f017accc5824c3970fd0..8e7e29ae2f9869b7f3b9271776fe1a28e9f0ca2e 100644
--- a/webrtc/voice_engine/BUILD.gn
+++ b/webrtc/voice_engine/BUILD.gn
@@ -120,8 +120,70 @@ rtc_source_set("level_indicator") {
}
if (rtc_include_tests) {
+ config("channel_transport_warnings_config") {
+ if (is_win) {
+ cflags = [ "/wd4302" ] # cast truncation
+
+ if (is_clang) {
+ # GN orders flags on a target before flags from configs. The default
+ # config adds -Wall, and this flag have to be after -Wall -- so they need
+ # to come from a config and cannot be on the target directly.
+ cflags += [
+ "-Wno-parentheses-equality",
+ "-Wno-reorder",
+ "-Wno-tautological-constant-out-of-range-compare",
+
+ # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6268
+ # for -Wno-thread-safety-analysis
+ "-Wno-thread-safety-analysis",
+ "-Wno-unused-private-field",
+ ]
+ }
+ }
+ }
+
+ rtc_source_set("channel_transport") {
+ testonly = true
+ sources = [
+ "test/channel_transport/channel_transport.cc",
+ "test/channel_transport/channel_transport.h",
+ "test/channel_transport/traffic_control_win.cc",
+ "test/channel_transport/traffic_control_win.h",
+ "test/channel_transport/udp_socket2_manager_win.cc",
+ "test/channel_transport/udp_socket2_manager_win.h",
+ "test/channel_transport/udp_socket2_win.cc",
+ "test/channel_transport/udp_socket2_win.h",
+ "test/channel_transport/udp_socket_manager_posix.cc",
+ "test/channel_transport/udp_socket_manager_posix.h",
+ "test/channel_transport/udp_socket_manager_wrapper.cc",
+ "test/channel_transport/udp_socket_manager_wrapper.h",
+ "test/channel_transport/udp_socket_posix.cc",
+ "test/channel_transport/udp_socket_posix.h",
+ "test/channel_transport/udp_socket_wrapper.cc",
+ "test/channel_transport/udp_socket_wrapper.h",
+ "test/channel_transport/udp_transport.h",
+ "test/channel_transport/udp_transport_impl.cc",
+ "test/channel_transport/udp_transport_impl.h",
+ ]
+
+ configs += [ ":channel_transport_warnings_config" ]
+
+ if (is_clang && !is_nacl) {
+ # Suppress warnings from the Chromium Clang plugin.
+ # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
+ suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
+ }
+
+ deps = [
+ "..:webrtc_common",
+ "../system_wrappers",
+ "//testing/gtest",
+ ]
+ }
+
rtc_test("voice_engine_unittests") {
deps = [
+ ":channel_transport",
":voice_engine",
"//testing/gmock",
"//testing/gtest",
@@ -145,6 +207,9 @@ if (rtc_include_tests) {
sources = [
"channel_unittest.cc",
"network_predictor_unittest.cc",
+ "test/channel_transport/udp_socket_manager_unittest.cc",
+ "test/channel_transport/udp_socket_wrapper_unittest.cc",
+ "test/channel_transport/udp_transport_unittest.cc",
"transmit_mixer_unittest.cc",
"utility_unittest.cc",
"voe_audio_processing_unittest.cc",
@@ -176,6 +241,7 @@ if (rtc_include_tests) {
testonly = true
deps = [
+ ":channel_transport",
":voice_engine",
"//testing/gmock",
"//testing/gtest",
@@ -184,7 +250,6 @@ if (rtc_include_tests) {
"//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",
]
« no previous file with comments | « webrtc/test/test.gyp ('k') | webrtc/voice_engine/test/auto_test/voe_cpu_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698