| OLD | NEW |
| 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
| 4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
| 5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 import("../../webrtc.gni") | 9 import("../../webrtc.gni") |
| 10 | 10 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 "../congestion_controller", | 120 "../congestion_controller", |
| 121 "../pacing", | 121 "../pacing", |
| 122 "../rtp_rtcp", | 122 "../rtp_rtcp", |
| 123 "//testing/gmock", | 123 "//testing/gmock", |
| 124 "//testing/gtest", | 124 "//testing/gtest", |
| 125 ] | 125 ] |
| 126 } | 126 } |
| 127 | 127 |
| 128 rtc_source_set("remote_bitrate_estimator_perf_tests") { | 128 rtc_source_set("remote_bitrate_estimator_perf_tests") { |
| 129 testonly = true | 129 testonly = true |
| 130 |
| 131 # Skip restricting visibility on mobile platforms since the tests on those |
| 132 # gets additional generated targets which would require many lines here to |
| 133 # cover (which would be confusing to read and hard to maintain). |
| 134 if (!is_android && !is_ios) { |
| 135 visibility = [ "//webrtc:webrtc_perf_tests" ] |
| 136 } |
| 130 sources = [ | 137 sources = [ |
| 131 "remote_bitrate_estimators_test.cc", | 138 "remote_bitrate_estimators_test.cc", |
| 132 ] | 139 ] |
| 133 deps = [ | 140 deps = [ |
| 134 ":bwe_simulator_lib", | 141 ":bwe_simulator_lib", |
| 135 ":remote_bitrate_estimator", | 142 ":remote_bitrate_estimator", |
| 136 "../../base:rtc_base_approved", | 143 "../../base:rtc_base_approved", |
| 137 "../../test:test_support", | 144 "../../test:test_support", |
| 138 ] | 145 ] |
| 139 if (!build_with_chromium && is_clang) { | 146 if (!build_with_chromium && is_clang) { |
| 140 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 147 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 141 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 148 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 142 } | 149 } |
| 143 } | 150 } |
| 144 | 151 |
| 145 rtc_source_set("remote_bitrate_estimator_unittests") { | 152 rtc_source_set("remote_bitrate_estimator_unittests") { |
| 146 testonly = true | 153 testonly = true |
| 154 |
| 155 # Skip restricting visibility on mobile platforms since the tests on those |
| 156 # gets additional generated targets which would require many lines here to |
| 157 # cover (which would be confusing to read and hard to maintain). |
| 158 if (!is_android && !is_ios) { |
| 159 visibility = [ "//webrtc/modules:modules_unittests" ] |
| 160 } |
| 147 sources = [ | 161 sources = [ |
| 148 "aimd_rate_control_unittest.cc", | 162 "aimd_rate_control_unittest.cc", |
| 149 "include/mock/mock_remote_bitrate_observer.h", | |
| 150 "inter_arrival_unittest.cc", | 163 "inter_arrival_unittest.cc", |
| 151 "overuse_detector_unittest.cc", | 164 "overuse_detector_unittest.cc", |
| 152 "remote_bitrate_estimator_abs_send_time_unittest.cc", | 165 "remote_bitrate_estimator_abs_send_time_unittest.cc", |
| 153 "remote_bitrate_estimator_single_stream_unittest.cc", | 166 "remote_bitrate_estimator_single_stream_unittest.cc", |
| 154 "remote_bitrate_estimator_unittest_helper.cc", | 167 "remote_bitrate_estimator_unittest_helper.cc", |
| 155 "remote_bitrate_estimator_unittest_helper.h", | 168 "remote_bitrate_estimator_unittest_helper.h", |
| 156 "remote_estimator_proxy_unittest.cc", | 169 "remote_estimator_proxy_unittest.cc", |
| 157 "send_time_history_unittest.cc", | 170 "send_time_history_unittest.cc", |
| 158 "test/bwe_test_framework_unittest.cc", | 171 "test/bwe_test_framework_unittest.cc", |
| 159 "test/bwe_unittest.cc", | 172 "test/bwe_unittest.cc", |
| 160 "test/estimators/nada_unittest.cc", | 173 "test/estimators/nada_unittest.cc", |
| 161 "test/metric_recorder_unittest.cc", | 174 "test/metric_recorder_unittest.cc", |
| 162 ] | 175 ] |
| 163 deps = [ | 176 deps = [ |
| 164 ":bwe_simulator_lib", | 177 ":bwe_simulator_lib", |
| 178 ":mock_remote_bitrate_observer", |
| 165 ":remote_bitrate_estimator", | 179 ":remote_bitrate_estimator", |
| 166 "../..:webrtc_common", | 180 "../..:webrtc_common", |
| 167 "../../base:rtc_base", | 181 "../../base:rtc_base", |
| 168 "../../base:rtc_base_approved", | 182 "../../base:rtc_base_approved", |
| 169 "../../system_wrappers:system_wrappers", | 183 "../../system_wrappers:system_wrappers", |
| 170 "../../test:field_trial", | 184 "../../test:field_trial", |
| 171 "../../test:test_support", | 185 "../../test:test_support", |
| 172 "../pacing:pacing", | 186 "../pacing:pacing", |
| 173 "../rtp_rtcp:rtp_rtcp", | 187 "../rtp_rtcp:rtp_rtcp", |
| 174 "//testing/gmock", | 188 "//testing/gmock", |
| 175 ] | 189 ] |
| 176 if (is_win) { | 190 if (is_win) { |
| 177 cflags = [ | 191 cflags = [ |
| 178 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. | 192 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. |
| 179 "/wd4373", # virtual function override. | 193 "/wd4373", # virtual function override. |
| 180 ] | 194 ] |
| 181 } | 195 } |
| 182 if (!build_with_chromium && is_clang) { | 196 if (!build_with_chromium && is_clang) { |
| 183 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 197 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 184 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 198 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 185 } | 199 } |
| 186 } | 200 } |
| 187 | 201 |
| 202 rtc_source_set("mock_remote_bitrate_observer") { |
| 203 testonly = true |
| 204 sources = [ |
| 205 "include/mock/mock_remote_bitrate_observer.h", |
| 206 ] |
| 207 deps = [ |
| 208 ":remote_bitrate_estimator", |
| 209 "../../test:test_support", |
| 210 ] |
| 211 } |
| 212 |
| 188 rtc_test("bwe_simulations_tests") { | 213 rtc_test("bwe_simulations_tests") { |
| 189 testonly = true | 214 testonly = true |
| 190 | 215 |
| 191 sources = [ | 216 sources = [ |
| 192 "bwe_simulations.cc", | 217 "bwe_simulations.cc", |
| 193 ] | 218 ] |
| 194 deps = [ | 219 deps = [ |
| 195 ":bwe_simulator_lib", | 220 ":bwe_simulator_lib", |
| 196 ":remote_bitrate_estimator", | 221 ":remote_bitrate_estimator", |
| 197 "../..:webrtc_common", | 222 "../..:webrtc_common", |
| (...skipping 10 matching lines...) Expand all Loading... |
| 208 } | 233 } |
| 209 | 234 |
| 210 if (is_win) { | 235 if (is_win) { |
| 211 cflags = [ | 236 cflags = [ |
| 212 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. | 237 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. |
| 213 "/wd4373", # virtual function override. | 238 "/wd4373", # virtual function override. |
| 214 ] | 239 ] |
| 215 } | 240 } |
| 216 } | 241 } |
| 217 } | 242 } |
| OLD | NEW |