kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 1 | # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 2 | # |
| 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 |
| 5 | # tree. An additional intellectual property rights grant can be found |
| 6 | # in the file PATENTS. All contributing project authors may |
| 7 | # be found in the AUTHORS file in the root of the source tree. |
| 8 | |
mbonadei | 9aa3f0a | 2017-01-24 06:58:22 -0800 | [diff] [blame] | 9 | import("../../webrtc.gni") |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 10 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 11 | rtc_static_library("remote_bitrate_estimator") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame^] | 12 | visibility = [ "*" ] |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 13 | sources = [ |
pbos@webrtc.org | 9f79fe6 | 2014-12-04 15:34:06 +0000 | [diff] [blame] | 14 | "aimd_rate_control.cc", |
| 15 | "aimd_rate_control.h", |
stefan | 64636dd | 2016-08-03 00:29:03 -0700 | [diff] [blame] | 16 | "bwe_defines.cc", |
kjellander | 5c1d043 | 2016-06-09 02:40:58 -0700 | [diff] [blame] | 17 | "include/bwe_defines.h", |
| 18 | "include/remote_bitrate_estimator.h", |
sprang | 318673c | 2015-09-04 04:43:21 -0700 | [diff] [blame] | 19 | "include/send_time_history.h", |
pbos@webrtc.org | 9f79fe6 | 2014-12-04 15:34:06 +0000 | [diff] [blame] | 20 | "inter_arrival.cc", |
| 21 | "inter_arrival.h", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 22 | "overuse_detector.cc", |
| 23 | "overuse_detector.h", |
pbos@webrtc.org | 9f79fe6 | 2014-12-04 15:34:06 +0000 | [diff] [blame] | 24 | "overuse_estimator.cc", |
| 25 | "overuse_estimator.h", |
| 26 | "remote_bitrate_estimator_abs_send_time.cc", |
kjellander | 5c1d043 | 2016-06-09 02:40:58 -0700 | [diff] [blame] | 27 | "remote_bitrate_estimator_abs_send_time.h", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 28 | "remote_bitrate_estimator_single_stream.cc", |
kjellander | 5c1d043 | 2016-06-09 02:40:58 -0700 | [diff] [blame] | 29 | "remote_bitrate_estimator_single_stream.h", |
Erik Språng | 6b8d355 | 2015-09-24 15:06:57 +0200 | [diff] [blame] | 30 | "remote_estimator_proxy.cc", |
| 31 | "remote_estimator_proxy.h", |
sprang | 318673c | 2015-09-04 04:43:21 -0700 | [diff] [blame] | 32 | "send_time_history.cc", |
kjellander | 5c1d043 | 2016-06-09 02:40:58 -0700 | [diff] [blame] | 33 | "test/bwe_test_logging.h", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 34 | ] |
kjellander@webrtc.org | 9bef551 | 2014-07-13 09:02:54 +0000 | [diff] [blame] | 35 | |
gaetano.carlucci | 61050f6 | 2016-09-30 06:29:54 -0700 | [diff] [blame] | 36 | if (rtc_enable_bwe_test_logging) { |
| 37 | defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ] |
| 38 | sources += [ "test/bwe_test_logging.cc" ] |
| 39 | } else { |
| 40 | defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ] |
brucedawson | 07df20b | 2016-05-22 17:15:02 -0700 | [diff] [blame] | 41 | } |
| 42 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 43 | if (!build_with_chromium && is_clang) { |
| 44 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 45 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 46 | } |
kjellander | 5c1d043 | 2016-06-09 02:40:58 -0700 | [diff] [blame] | 47 | |
| 48 | deps = [ |
| 49 | "../..:webrtc_common", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 50 | "../../:typedefs", |
Danil Chapovalov | 599df85 | 2017-09-25 15:19:35 +0200 | [diff] [blame] | 51 | "../../api:optional", |
| 52 | "../../modules:module_api", |
| 53 | "../../modules/rtp_rtcp:rtp_rtcp_format", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 54 | "../../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 55 | "../../rtc_base:rtc_base_approved", |
kjellander | 5c1d043 | 2016-06-09 02:40:58 -0700 | [diff] [blame] | 56 | "../../system_wrappers", |
Mirko Bonadei | a498ae8 | 2017-12-06 09:17:14 +0100 | [diff] [blame] | 57 | "../../system_wrappers:field_trial_api", |
| 58 | "../../system_wrappers:metrics_api", |
kjellander | 5c1d043 | 2016-06-09 02:40:58 -0700 | [diff] [blame] | 59 | ] |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 60 | } |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 61 | |
mbonadei | 2877eaf | 2017-09-05 03:01:45 -0700 | [diff] [blame] | 62 | if (!build_with_chromium) { |
| 63 | rtc_source_set("bwe_rtp") { |
| 64 | testonly = true |
| 65 | sources = [ |
| 66 | "tools/bwe_rtp.cc", |
| 67 | "tools/bwe_rtp.h", |
| 68 | ] |
| 69 | deps = [ |
| 70 | ":remote_bitrate_estimator", |
| 71 | "../../rtc_base:rtc_base_approved", |
| 72 | "../../test:rtp_test_utils", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 73 | "../rtp_rtcp", |
mbonadei | 2877eaf | 2017-09-05 03:01:45 -0700 | [diff] [blame] | 74 | ] |
| 75 | if (is_clang) { |
| 76 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 77 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 78 | } |
| 79 | } |
| 80 | } |
| 81 | |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 82 | if (rtc_include_tests) { |
terelius | 3dcfd64 | 2016-10-07 00:39:56 -0700 | [diff] [blame] | 83 | rtc_static_library("bwe_simulator_lib") { |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 84 | testonly = true |
| 85 | sources = [ |
gnish | a36165c | 2017-08-20 09:19:58 -0700 | [diff] [blame] | 86 | "test/bbr_paced_sender.cc", |
| 87 | "test/bbr_paced_sender.h", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 88 | "test/bwe.cc", |
| 89 | "test/bwe.h", |
| 90 | "test/bwe_test.cc", |
| 91 | "test/bwe_test.h", |
| 92 | "test/bwe_test_baselinefile.cc", |
| 93 | "test/bwe_test_baselinefile.h", |
| 94 | "test/bwe_test_fileutils.cc", |
| 95 | "test/bwe_test_fileutils.h", |
| 96 | "test/bwe_test_framework.cc", |
| 97 | "test/bwe_test_framework.h", |
| 98 | "test/bwe_test_logging.h", |
gnish | 6dcdf10 | 2017-06-05 06:01:26 -0700 | [diff] [blame] | 99 | "test/estimators/bbr.cc", |
| 100 | "test/estimators/bbr.h", |
gnish | 157cbbd | 2017-07-18 02:50:22 -0700 | [diff] [blame] | 101 | "test/estimators/congestion_window.cc", |
gnish | 6dcdf10 | 2017-06-05 06:01:26 -0700 | [diff] [blame] | 102 | "test/estimators/congestion_window.h", |
gnish | 191113a | 2017-07-05 05:00:46 -0700 | [diff] [blame] | 103 | "test/estimators/max_bandwidth_filter.cc", |
gnish | 6dcdf10 | 2017-06-05 06:01:26 -0700 | [diff] [blame] | 104 | "test/estimators/max_bandwidth_filter.h", |
| 105 | "test/estimators/min_rtt_filter.h", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 106 | "test/estimators/nada.cc", |
| 107 | "test/estimators/nada.h", |
| 108 | "test/estimators/remb.cc", |
| 109 | "test/estimators/remb.h", |
| 110 | "test/estimators/send_side.cc", |
| 111 | "test/estimators/send_side.h", |
| 112 | "test/estimators/tcp.cc", |
| 113 | "test/estimators/tcp.h", |
| 114 | "test/metric_recorder.cc", |
| 115 | "test/metric_recorder.h", |
| 116 | "test/packet.h", |
| 117 | "test/packet_receiver.cc", |
| 118 | "test/packet_receiver.h", |
| 119 | "test/packet_sender.cc", |
| 120 | "test/packet_sender.h", |
| 121 | ] |
| 122 | |
| 123 | if (rtc_enable_bwe_test_logging) { |
| 124 | defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ] |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 125 | } else { |
| 126 | defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ] |
| 127 | } |
| 128 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 129 | if (!build_with_chromium && is_clang) { |
| 130 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 131 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 132 | } |
| 133 | |
| 134 | if (is_win) { |
| 135 | cflags = [ |
| 136 | # TODO(kjellander): Bug 261: fix this warning. |
| 137 | "/wd4373", # virtual function override. |
| 138 | ] |
| 139 | } |
| 140 | |
| 141 | deps = [ |
mbonadei | 49f465f | 2016-12-28 04:43:46 -0800 | [diff] [blame] | 142 | ":remote_bitrate_estimator", |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 143 | "..:module_api", |
mbonadei | 49f465f | 2016-12-28 04:43:46 -0800 | [diff] [blame] | 144 | "../..:webrtc_common", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 145 | "../../:typedefs", |
kwiberg | 84f6a3f | 2017-09-05 08:43:13 -0700 | [diff] [blame] | 146 | "../../api:optional", |
Patrik Höglund | 731082c | 2018-01-03 09:08:20 +0100 | [diff] [blame] | 147 | "../../logging:mocks", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 148 | "../../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 149 | "../../rtc_base:gtest_prod", |
| 150 | "../../rtc_base:rtc_base", |
| 151 | "../../rtc_base:rtc_base_approved", |
Bjorn Terelius | a194e58 | 2017-10-25 13:07:09 +0200 | [diff] [blame] | 152 | "../../rtc_base:rtc_numerics", |
mbonadei | 49f465f | 2016-12-28 04:43:46 -0800 | [diff] [blame] | 153 | "../../system_wrappers", |
Mirko Bonadei | a498ae8 | 2017-12-06 09:17:14 +0100 | [diff] [blame] | 154 | "../../system_wrappers:field_trial_api", |
Edward Lemur | e66572b | 2018-01-05 15:34:09 +0100 | [diff] [blame] | 155 | "../../test:perf_test", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 156 | "../../test:test_support", |
mbonadei | 49f465f | 2016-12-28 04:43:46 -0800 | [diff] [blame] | 157 | "../../voice_engine", |
| 158 | "../bitrate_controller", |
terelius | 9531092 | 2016-11-03 08:14:07 -0700 | [diff] [blame] | 159 | "../congestion_controller", |
Patrik Höglund | 7613454 | 2018-01-02 09:15:05 +0100 | [diff] [blame] | 160 | "../congestion_controller:delay_based_bwe", |
| 161 | "../congestion_controller:estimators", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 162 | "../pacing", |
mbonadei | 49f465f | 2016-12-28 04:43:46 -0800 | [diff] [blame] | 163 | "../rtp_rtcp", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 164 | "../rtp_rtcp:rtp_rtcp_format", |
charujain | cb728ea | 2017-09-18 03:08:08 -0700 | [diff] [blame] | 165 | "../video_coding:video_coding_utility", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 166 | "//testing/gmock", |
| 167 | "//testing/gtest", |
| 168 | ] |
| 169 | } |
ehmaldonado | 021eef3 | 2017-01-05 07:09:50 -0800 | [diff] [blame] | 170 | |
| 171 | rtc_source_set("remote_bitrate_estimator_perf_tests") { |
| 172 | testonly = true |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 173 | |
ehmaldonado | 021eef3 | 2017-01-05 07:09:50 -0800 | [diff] [blame] | 174 | sources = [ |
| 175 | "remote_bitrate_estimators_test.cc", |
| 176 | ] |
| 177 | deps = [ |
| 178 | ":bwe_simulator_lib", |
| 179 | ":remote_bitrate_estimator", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 180 | "../../rtc_base:rtc_base_approved", |
Stefan Holmer | ea00e48 | 2017-10-06 08:43:34 +0200 | [diff] [blame] | 181 | "../../test:field_trial", |
ehmaldonado | 90474cc | 2017-03-17 03:47:24 -0700 | [diff] [blame] | 182 | "../../test:test_support", |
ehmaldonado | 021eef3 | 2017-01-05 07:09:50 -0800 | [diff] [blame] | 183 | ] |
| 184 | if (!build_with_chromium && is_clang) { |
| 185 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 186 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 187 | } |
| 188 | } |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 189 | |
| 190 | rtc_source_set("remote_bitrate_estimator_unittests") { |
| 191 | testonly = true |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 192 | |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 193 | sources = [ |
| 194 | "aimd_rate_control_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 195 | "inter_arrival_unittest.cc", |
| 196 | "overuse_detector_unittest.cc", |
| 197 | "remote_bitrate_estimator_abs_send_time_unittest.cc", |
| 198 | "remote_bitrate_estimator_single_stream_unittest.cc", |
| 199 | "remote_bitrate_estimator_unittest_helper.cc", |
| 200 | "remote_bitrate_estimator_unittest_helper.h", |
| 201 | "remote_estimator_proxy_unittest.cc", |
| 202 | "send_time_history_unittest.cc", |
| 203 | "test/bwe_test_framework_unittest.cc", |
| 204 | "test/bwe_unittest.cc", |
gnish | 157cbbd | 2017-07-18 02:50:22 -0700 | [diff] [blame] | 205 | "test/estimators/congestion_window_unittest.cc", |
| 206 | "test/estimators/max_bandwidth_filter_unittest.cc", |
| 207 | "test/estimators/min_rtt_filter_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 208 | "test/estimators/nada_unittest.cc", |
| 209 | "test/metric_recorder_unittest.cc", |
| 210 | ] |
| 211 | deps = [ |
| 212 | ":bwe_simulator_lib", |
| 213 | ":remote_bitrate_estimator", |
| 214 | "../..:webrtc_common", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 215 | "../../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 216 | "../../rtc_base:rtc_base", |
| 217 | "../../rtc_base:rtc_base_approved", |
Mirko Bonadei | a498ae8 | 2017-12-06 09:17:14 +0100 | [diff] [blame] | 218 | "../../system_wrappers", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 219 | "../../test:field_trial", |
| 220 | "../../test:test_support", |
| 221 | "../pacing:pacing", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 222 | "../rtp_rtcp:rtp_rtcp_format", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 223 | "//testing/gmock", |
| 224 | ] |
| 225 | if (is_win) { |
| 226 | cflags = [ |
| 227 | # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. |
| 228 | "/wd4373", # virtual function override. |
| 229 | ] |
| 230 | } |
| 231 | if (!build_with_chromium && is_clang) { |
| 232 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 233 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 234 | } |
| 235 | } |
ehmaldonado | 9cbb0a1 | 2017-01-30 03:07:03 -0800 | [diff] [blame] | 236 | |
| 237 | rtc_test("bwe_simulations_tests") { |
| 238 | testonly = true |
| 239 | |
| 240 | sources = [ |
| 241 | "bwe_simulations.cc", |
| 242 | ] |
| 243 | deps = [ |
| 244 | ":bwe_simulator_lib", |
| 245 | ":remote_bitrate_estimator", |
| 246 | "../..:webrtc_common", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 247 | "../../rtc_base:rtc_base_approved", |
ehmaldonado | 9cbb0a1 | 2017-01-30 03:07:03 -0800 | [diff] [blame] | 248 | "../../test:test_main", |
ehmaldonado | 9cbb0a1 | 2017-01-30 03:07:03 -0800 | [diff] [blame] | 249 | "//testing/gmock", |
| 250 | "//testing/gtest", |
ehmaldonado | 9cbb0a1 | 2017-01-30 03:07:03 -0800 | [diff] [blame] | 251 | ] |
Edward Lemur | 09d9014 | 2017-10-11 20:47:48 +0200 | [diff] [blame] | 252 | data = [ |
| 253 | "//resources/sprint-uplink.rx", |
| 254 | "//resources/verizon4g-downlink.rx", |
| 255 | "//resources/google-wifi-3mbps.rx", |
| 256 | ] |
ehmaldonado | 9cbb0a1 | 2017-01-30 03:07:03 -0800 | [diff] [blame] | 257 | |
| 258 | if (!build_with_chromium && is_clang) { |
| 259 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 260 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 261 | } |
| 262 | |
| 263 | if (is_win) { |
| 264 | cflags = [ |
| 265 | # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. |
| 266 | "/wd4373", # virtual function override. |
| 267 | ] |
| 268 | } |
| 269 | } |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 270 | } |