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

Unified Diff: webrtc/modules/remote_bitrate_estimator/BUILD.gn

Issue 2828793003: GN: Tighten up test target visibility + refactorings (Closed)
Patch Set: Move out fec_test_helper from rtc_include_tests Created 3 years, 8 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
« no previous file with comments | « webrtc/modules/pacing/BUILD.gn ('k') | webrtc/modules/rtp_rtcp/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/remote_bitrate_estimator/BUILD.gn
diff --git a/webrtc/modules/remote_bitrate_estimator/BUILD.gn b/webrtc/modules/remote_bitrate_estimator/BUILD.gn
index 702d3e7b9c17619d0657fd49ba2788891883d7bc..c2e5d3149229dcdaeb502b67de8d6ed1a0dba07a 100644
--- a/webrtc/modules/remote_bitrate_estimator/BUILD.gn
+++ b/webrtc/modules/remote_bitrate_estimator/BUILD.gn
@@ -127,6 +127,13 @@ if (rtc_include_tests) {
rtc_source_set("remote_bitrate_estimator_perf_tests") {
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:webrtc_perf_tests" ]
+ }
sources = [
"remote_bitrate_estimators_test.cc",
]
@@ -144,9 +151,15 @@ if (rtc_include_tests) {
rtc_source_set("remote_bitrate_estimator_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/modules:modules_unittests" ]
+ }
sources = [
"aimd_rate_control_unittest.cc",
- "include/mock/mock_remote_bitrate_observer.h",
"inter_arrival_unittest.cc",
"overuse_detector_unittest.cc",
"remote_bitrate_estimator_abs_send_time_unittest.cc",
@@ -162,6 +175,7 @@ if (rtc_include_tests) {
]
deps = [
":bwe_simulator_lib",
+ ":mock_remote_bitrate_observer",
":remote_bitrate_estimator",
"../..:webrtc_common",
"../../base:rtc_base",
@@ -185,6 +199,17 @@ if (rtc_include_tests) {
}
}
+ rtc_source_set("mock_remote_bitrate_observer") {
+ testonly = true
+ sources = [
+ "include/mock/mock_remote_bitrate_observer.h",
+ ]
+ deps = [
+ ":remote_bitrate_estimator",
+ "../../test:test_support",
+ ]
+ }
+
rtc_test("bwe_simulations_tests") {
testonly = true
« no previous file with comments | « webrtc/modules/pacing/BUILD.gn ('k') | webrtc/modules/rtp_rtcp/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698