Index: webrtc/audio/BUILD.gn |
diff --git a/webrtc/audio/BUILD.gn b/webrtc/audio/BUILD.gn |
index d33a91654b399c3288e22822cbe4c7b3faab6ffe..d031f69e100556faaad0d579935ecc4215f43a64 100644 |
--- a/webrtc/audio/BUILD.gn |
+++ b/webrtc/audio/BUILD.gn |
@@ -35,3 +35,23 @@ source_set("audio") { |
"../voice_engine", |
] |
} |
+if (rtc_include_tests) { |
+ source_set("audio_tests") { |
+ testonly = true |
+ sources = [ |
+ "audio_receive_stream_unittest.cc", |
+ "audio_send_stream_unittest.cc", |
+ "audio_state_unittest.cc", |
+ ] |
+ deps = [ |
+ ":audio", |
+ "//testing/gmock", |
+ "//testing/gtest", |
+ ] |
+ if (is_clang) { |
+ # Suppress warnings from the Chromium Clang plugin. |
+ # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
+ configs -= [ "//build/config/clang:find_bad_constructs" ] |
+ } |
+ } |
+} |