Index: webrtc/video/BUILD.gn |
diff --git a/webrtc/video/BUILD.gn b/webrtc/video/BUILD.gn |
index 12d4dc3301b71b677cf46f1ed128e57993c08f1c..1f6b228dbba50d50f962bba577d013c75ed24e63 100644 |
--- a/webrtc/video/BUILD.gn |
+++ b/webrtc/video/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("video") { |
sources = [ |
@@ -79,3 +80,37 @@ source_set("video") { |
"../voice_engine", |
] |
} |
+ |
+if (rtc_include_tests) { |
+ # TODO(pbos): Rename test suite. |
+ source_set("video_tests") { |
+ testonly = true |
+ sources = [ |
+ "call_stats_unittest.cc", |
+ "encoder_state_feedback_unittest.cc", |
+ "end_to_end_tests.cc", |
+ "overuse_frame_detector_unittest.cc", |
+ "payload_router_unittest.cc", |
+ "report_block_stats_unittest.cc", |
+ "send_delay_stats_unittest.cc", |
+ "send_statistics_proxy_unittest.cc", |
+ "stats_counter_unittest.cc", |
+ "stream_synchronization_unittest.cc", |
+ "video_capture_input_unittest.cc", |
+ "video_decoder_unittest.cc", |
+ "video_encoder_unittest.cc", |
+ "video_send_stream_tests.cc", |
+ "vie_remb_unittest.cc", |
+ ] |
+ deps = [ |
+ ":video", |
+ "//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" ] |
+ } |
+ } |
+} |