Added test dependency factory.

Bug: b/113654555
Change-Id: I6879d0e7dcbfbb04ad7a5179c4f4fbe8d31cf3d4
Reviewed-on: https://webrtc-review.googlesource.com/101601
Commit-Queue: Patrik Höglund <phoglund@webrtc.org>
Reviewed-by: Stefan Holmer <stefan@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24855}
diff --git a/api/BUILD.gn b/api/BUILD.gn
index a267894..007879b 100644
--- a/api/BUILD.gn
+++ b/api/BUILD.gn
@@ -139,6 +139,7 @@
     "test/video_quality_test_fixture.h",
   ]
   deps = [
+    ":fec_controller_api",
     ":libjingle_peerconnection_api",
     ":simulated_network_api",
     "../call:fake_network",
@@ -153,6 +154,23 @@
   }
 }
 
+rtc_source_set("test_dependency_factory") {
+  visibility = [ "*" ]
+  testonly = true
+  sources = [
+    "test/test_dependency_factory.cc",
+    "test/test_dependency_factory.h",
+  ]
+  deps = [
+    ":video_quality_test_fixture_api",
+    "../rtc_base:thread_checker",
+  ]
+  if (!build_with_chromium && is_clang) {
+    # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
+    suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
+  }
+}
+
 if (rtc_include_tests) {
   rtc_source_set("create_video_quality_test_fixture_api") {
     visibility = [ "*" ]