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 if (!is_android && !is_ios) { # Generated targets makes this check break. |
| 131 visibility = [ "//webrtc:webrtc_perf_tests" ] |
| 132 } |
130 sources = [ | 133 sources = [ |
131 "remote_bitrate_estimators_test.cc", | 134 "remote_bitrate_estimators_test.cc", |
132 ] | 135 ] |
133 deps = [ | 136 deps = [ |
134 ":bwe_simulator_lib", | 137 ":bwe_simulator_lib", |
135 ":remote_bitrate_estimator", | 138 ":remote_bitrate_estimator", |
136 "../../base:rtc_base_approved", | 139 "../../base:rtc_base_approved", |
137 "../../test:test_support", | 140 "../../test:test_support", |
138 ] | 141 ] |
139 if (!build_with_chromium && is_clang) { | 142 if (!build_with_chromium && is_clang) { |
140 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 143 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
141 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 144 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
142 } | 145 } |
143 } | 146 } |
144 | 147 |
145 rtc_source_set("remote_bitrate_estimator_unittests") { | 148 rtc_source_set("remote_bitrate_estimator_unittests") { |
146 testonly = true | 149 testonly = true |
| 150 if (!is_android && !is_ios) { # Generated targets makes this check break. |
| 151 visibility = [ "//webrtc/modules:modules_unittests" ] |
| 152 } |
147 sources = [ | 153 sources = [ |
148 "aimd_rate_control_unittest.cc", | 154 "aimd_rate_control_unittest.cc", |
149 "include/mock/mock_remote_bitrate_observer.h", | |
150 "inter_arrival_unittest.cc", | 155 "inter_arrival_unittest.cc", |
151 "overuse_detector_unittest.cc", | 156 "overuse_detector_unittest.cc", |
152 "remote_bitrate_estimator_abs_send_time_unittest.cc", | 157 "remote_bitrate_estimator_abs_send_time_unittest.cc", |
153 "remote_bitrate_estimator_single_stream_unittest.cc", | 158 "remote_bitrate_estimator_single_stream_unittest.cc", |
154 "remote_bitrate_estimator_unittest_helper.cc", | 159 "remote_bitrate_estimator_unittest_helper.cc", |
155 "remote_bitrate_estimator_unittest_helper.h", | 160 "remote_bitrate_estimator_unittest_helper.h", |
156 "remote_estimator_proxy_unittest.cc", | 161 "remote_estimator_proxy_unittest.cc", |
157 "send_time_history_unittest.cc", | 162 "send_time_history_unittest.cc", |
158 "test/bwe_test_framework_unittest.cc", | 163 "test/bwe_test_framework_unittest.cc", |
159 "test/bwe_unittest.cc", | 164 "test/bwe_unittest.cc", |
160 "test/estimators/nada_unittest.cc", | 165 "test/estimators/nada_unittest.cc", |
161 "test/metric_recorder_unittest.cc", | 166 "test/metric_recorder_unittest.cc", |
162 ] | 167 ] |
163 deps = [ | 168 deps = [ |
164 ":bwe_simulator_lib", | 169 ":bwe_simulator_lib", |
| 170 ":mock_remote_bitrate_observer", |
165 ":remote_bitrate_estimator", | 171 ":remote_bitrate_estimator", |
166 "../..:webrtc_common", | 172 "../..:webrtc_common", |
167 "../../base:rtc_base", | 173 "../../base:rtc_base", |
168 "../../base:rtc_base_approved", | 174 "../../base:rtc_base_approved", |
169 "../../system_wrappers:system_wrappers", | 175 "../../system_wrappers:system_wrappers", |
170 "../../test:field_trial", | 176 "../../test:field_trial", |
171 "../../test:test_support", | 177 "../../test:test_support", |
172 "../pacing:pacing", | 178 "../pacing:pacing", |
173 "../rtp_rtcp:rtp_rtcp", | 179 "../rtp_rtcp:rtp_rtcp", |
174 "//testing/gmock", | 180 "//testing/gmock", |
175 ] | 181 ] |
176 if (is_win) { | 182 if (is_win) { |
177 cflags = [ | 183 cflags = [ |
178 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. | 184 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. |
179 "/wd4373", # virtual function override. | 185 "/wd4373", # virtual function override. |
180 ] | 186 ] |
181 } | 187 } |
182 if (!build_with_chromium && is_clang) { | 188 if (!build_with_chromium && is_clang) { |
183 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 189 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
184 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 190 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
185 } | 191 } |
186 } | 192 } |
187 | 193 |
| 194 rtc_source_set("mock_remote_bitrate_observer") { |
| 195 testonly = true |
| 196 sources = [ |
| 197 "include/mock/mock_remote_bitrate_observer.h", |
| 198 ] |
| 199 deps = [ |
| 200 ":remote_bitrate_estimator", |
| 201 "../../test:test_support", |
| 202 ] |
| 203 } |
| 204 |
188 rtc_test("bwe_simulations_tests") { | 205 rtc_test("bwe_simulations_tests") { |
189 testonly = true | 206 testonly = true |
190 | 207 |
191 sources = [ | 208 sources = [ |
192 "bwe_simulations.cc", | 209 "bwe_simulations.cc", |
193 ] | 210 ] |
194 deps = [ | 211 deps = [ |
195 ":bwe_simulator_lib", | 212 ":bwe_simulator_lib", |
196 ":remote_bitrate_estimator", | 213 ":remote_bitrate_estimator", |
197 "../..:webrtc_common", | 214 "../..:webrtc_common", |
(...skipping 10 matching lines...) Expand all Loading... |
208 } | 225 } |
209 | 226 |
210 if (is_win) { | 227 if (is_win) { |
211 cflags = [ | 228 cflags = [ |
212 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. | 229 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. |
213 "/wd4373", # virtual function override. | 230 "/wd4373", # virtual function override. |
214 ] | 231 ] |
215 } | 232 } |
216 } | 233 } |
217 } | 234 } |
OLD | NEW |