Index: webrtc/sdk/BUILD.gn |
diff --git a/webrtc/sdk/BUILD.gn b/webrtc/sdk/BUILD.gn |
index 721580d872875326f58ddfc2a29a58177a7f72f7..a352f9c65a5d078db6a7c4ae0b6b0e95334a631a 100644 |
--- a/webrtc/sdk/BUILD.gn |
+++ b/webrtc/sdk/BUILD.gn |
@@ -263,6 +263,13 @@ if (is_ios || is_mac) { |
if (rtc_include_tests) { |
rtc_source_set("rtc_sdk_peerconnection_objc_unittests") { |
testonly = true |
+ |
+ # Skip restricting visibility on mobile platforms since the tests on those |
+ # gets additional generated targets which would require many lines here to |
+ # cover (which would be confusing to read and hard to maintain). |
+ if (!is_android && !is_ios) { |
+ visibility = [ "//webrtc:rtc_unittests" ] |
+ } |
sources = [ |
"objc/Framework/UnitTests/RTCConfigurationTest.mm", |
"objc/Framework/UnitTests/RTCDataChannelConfigurationTest.mm", |