Index: webrtc/base/BUILD.gn |
diff --git a/webrtc/base/BUILD.gn b/webrtc/base/BUILD.gn |
index 9671b41297bfe66286a41c7454c423f8f6ba1bc8..7d2035db862e81b8b3d7cb3462719f7efe99acef 100644 |
--- a/webrtc/base/BUILD.gn |
+++ b/webrtc/base/BUILD.gn |
@@ -631,3 +631,38 @@ source_set("gtest_prod") { |
"gtest_prod_util.h", |
] |
} |
+ |
+# There's no point processing WebRTC standalone tests in a Chromium build. |
+if (!build_with_chromium) { |
+ config("rtc_base_test_utils_exported_config") { |
+ defines = [ "GTEST_RELATIVE_PATH" ] |
+ } |
+ |
+ source_set("rtc_base_test_utils") { |
+ testonly = true |
+ sources = [ |
+ # Also use this as a convenient dumping ground for misc files that are |
+ # included by multiple targets below. |
+ "fakenetwork.h", |
+ "fakesslidentity.h", |
+ "faketaskrunner.h", |
+ "gunit.h", |
+ "testbase64.h", |
+ "testechoserver.h", |
+ "testutils.h", |
+ "unittest_main.cc", |
+ ] |
+ configs += [ "..:common_config" ] |
+ public_configs = [ |
+ "..:common_inherited_config", |
+ ":rtc_base_test_utils_exported_config", |
+ ] |
+ deps = [ |
+ ":rtc_base", |
+ "../test:field_trial", |
+ ] |
+ public_deps = [ |
+ "//testing/gtest", |
+ ] |
+ } |
+} |