Index: webrtc/base/BUILD.gn |
diff --git a/webrtc/base/BUILD.gn b/webrtc/base/BUILD.gn |
index 26c0c2cfd143465f7b7eebd105de781031c080eb..59b4f957d021be6d1ee60a7eae3a94e4fd5f881a 100644 |
--- a/webrtc/base/BUILD.gn |
+++ b/webrtc/base/BUILD.gn |
@@ -708,13 +708,33 @@ if (rtc_include_tests) { |
} |
} |
+ # Test utilities only depending on base_approved. |
+ rtc_source_set("rtc_base_approved_tests_utils") { |
+ testonly = true |
+ sources = [ |
+ "fakeclock.cc", |
+ "fakeclock.h", |
+ "testbase64.h", |
+ "timedelta.h", |
+ ] |
+ configs += [ ":rtc_base_tests_utils_warnings_config" ] |
+ public_configs = [ ":rtc_base_tests_utils_exported_config" ] |
+ deps = [ |
+ ":rtc_base_approved", |
+ "../test:test_support", |
+ ] |
+ |
+ 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" ] |
+ } |
+ } |
+ |
rtc_source_set("rtc_base_tests_utils") { |
testonly = true |
sources = [ |
# Also use this as a convenient dumping ground for misc files that are |
# included by multiple targets below. |
- "fakeclock.cc", |
- "fakeclock.h", |
"fakenetwork.h", |
"fakesslidentity.h", |
"faketaskrunner.h", |
@@ -729,16 +749,15 @@ if (rtc_include_tests) { |
"nattypes.h", |
"sigslottester.h", |
"sigslottester.h.pump", |
- "testbase64.h", |
"testechoserver.h", |
"testutils.h", |
- "timedelta.h", |
"unittest_main.cc", |
] |
configs += [ ":rtc_base_tests_utils_warnings_config" ] |
public_configs = [ ":rtc_base_tests_utils_exported_config" ] |
deps = [ |
":rtc_base", |
+ ":rtc_base_approved_tests_utils", |
"../test:field_trial", |
"../test:test_support", |
] |