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

Unified Diff: webrtc/base/BUILD.gn

Issue 2034923003: GN: Add rtc_unittests (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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
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",
+ ]
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698