Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 1 | # Copyright (c) 2018 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 | |
| 9 | import("../../../webrtc.gni") |
| 10 | |
| 11 | config("bwe_test_logging") { |
| 12 | if (rtc_enable_bwe_test_logging) { |
| 13 | defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ] |
| 14 | } else { |
| 15 | defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ] |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | rtc_static_library("goog_cc") { |
| 20 | configs += [ ":bwe_test_logging" ] |
| 21 | sources = [ |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 22 | "goog_cc_factory.cc", |
| 23 | "goog_cc_network_control.cc", |
| 24 | "goog_cc_network_control.h", |
| 25 | "include/goog_cc_factory.h", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 26 | ] |
| 27 | |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 28 | deps = [ |
Sebastian Jansson | f9f49a3 | 2018-06-25 17:56:08 +0200 | [diff] [blame] | 29 | ":alr_detector", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 30 | ":delay_based_bwe", |
| 31 | ":estimators", |
Sebastian Jansson | b2ecc3d | 2018-07-13 17:22:01 +0200 | [diff] [blame] | 32 | ":probe_controller", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 33 | "../..:module_api", |
| 34 | "../../..:webrtc_common", |
Sebastian Jansson | c6c4426 | 2018-05-09 10:33:39 +0200 | [diff] [blame] | 35 | "../../../api/transport:network_control", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 36 | "../../../logging:rtc_event_log_api", |
| 37 | "../../../logging:rtc_event_pacing", |
| 38 | "../../../rtc_base:checks", |
| 39 | "../../../rtc_base:rtc_base_approved", |
| 40 | "../../../rtc_base/experiments:alr_experiment", |
| 41 | "../../../system_wrappers", |
| 42 | "../../../system_wrappers:field_trial_api", |
| 43 | "../../../system_wrappers:metrics_api", |
| 44 | "../../bitrate_controller", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 45 | "../../remote_bitrate_estimator", |
| 46 | "../../rtp_rtcp:rtp_rtcp_format", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 47 | "//third_party/abseil-cpp/absl/memory", |
Danil Chapovalov | 0040b66 | 2018-06-18 10:48:16 +0200 | [diff] [blame] | 48 | "//third_party/abseil-cpp/absl/types:optional", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 49 | ] |
| 50 | } |
| 51 | |
Sebastian Jansson | f9f49a3 | 2018-06-25 17:56:08 +0200 | [diff] [blame] | 52 | rtc_source_set("alr_detector") { |
| 53 | sources = [ |
| 54 | "alr_detector.cc", |
| 55 | "alr_detector.h", |
| 56 | ] |
Sebastian Jansson | f9f49a3 | 2018-06-25 17:56:08 +0200 | [diff] [blame] | 57 | deps = [ |
| 58 | "../../..:webrtc_common", |
Sebastian Jansson | f9f49a3 | 2018-06-25 17:56:08 +0200 | [diff] [blame] | 59 | "../../../logging:rtc_event_log_api", |
| 60 | "../../../logging:rtc_event_pacing", |
| 61 | "../../../rtc_base:checks", |
| 62 | "../../../rtc_base:rtc_base_approved", |
| 63 | "../../../rtc_base/experiments:alr_experiment", |
| 64 | "../../../system_wrappers:field_trial_api", |
| 65 | "../../pacing:interval_budget", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 66 | "//third_party/abseil-cpp/absl/memory", |
Sebastian Jansson | f9f49a3 | 2018-06-25 17:56:08 +0200 | [diff] [blame] | 67 | "//third_party/abseil-cpp/absl/types:optional", |
| 68 | ] |
| 69 | } |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 70 | rtc_source_set("estimators") { |
| 71 | configs += [ ":bwe_test_logging" ] |
| 72 | sources = [ |
| 73 | "acknowledged_bitrate_estimator.cc", |
| 74 | "acknowledged_bitrate_estimator.h", |
| 75 | "bitrate_estimator.cc", |
| 76 | "bitrate_estimator.h", |
| 77 | "delay_increase_detector_interface.h", |
| 78 | "median_slope_estimator.cc", |
| 79 | "median_slope_estimator.h", |
| 80 | "probe_bitrate_estimator.cc", |
| 81 | "probe_bitrate_estimator.h", |
| 82 | "trendline_estimator.cc", |
| 83 | "trendline_estimator.h", |
| 84 | ] |
| 85 | |
| 86 | # TODO(jschuh): Bug 1348: fix this warning. |
| 87 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 88 | |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 89 | deps = [ |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 90 | "../../../logging:rtc_event_bwe", |
| 91 | "../../../logging:rtc_event_log_api", |
| 92 | "../../../rtc_base:checks", |
| 93 | "../../../rtc_base:rtc_base_approved", |
| 94 | "../../../rtc_base:rtc_numerics", |
Karl Wiberg | 12edf4c | 2018-03-07 14:18:56 +0100 | [diff] [blame] | 95 | "../../../rtc_base:safe_minmax", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 96 | "../../../system_wrappers:field_trial_api", |
| 97 | "../../../system_wrappers:metrics_api", |
| 98 | "../../remote_bitrate_estimator", |
| 99 | "../../rtp_rtcp:rtp_rtcp_format", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 100 | "//third_party/abseil-cpp/absl/memory", |
Danil Chapovalov | 0040b66 | 2018-06-18 10:48:16 +0200 | [diff] [blame] | 101 | "//third_party/abseil-cpp/absl/types:optional", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 102 | ] |
| 103 | } |
| 104 | |
| 105 | rtc_source_set("delay_based_bwe") { |
| 106 | configs += [ ":bwe_test_logging" ] |
| 107 | sources = [ |
| 108 | "delay_based_bwe.cc", |
| 109 | "delay_based_bwe.h", |
| 110 | ] |
| 111 | |
| 112 | deps = [ |
| 113 | ":estimators", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 114 | "../../../logging:rtc_event_bwe", |
| 115 | "../../../logging:rtc_event_log_api", |
| 116 | "../../../rtc_base:checks", |
| 117 | "../../../rtc_base:rtc_base_approved", |
| 118 | "../../../system_wrappers:field_trial_api", |
| 119 | "../../../system_wrappers:metrics_api", |
| 120 | "../../pacing", |
| 121 | "../../remote_bitrate_estimator", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 122 | "//third_party/abseil-cpp/absl/memory", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 123 | ] |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 124 | } |
| 125 | |
Sebastian Jansson | b2ecc3d | 2018-07-13 17:22:01 +0200 | [diff] [blame] | 126 | rtc_source_set("probe_controller") { |
| 127 | sources = [ |
| 128 | "probe_controller.cc", |
| 129 | "probe_controller.h", |
| 130 | ] |
| 131 | |
| 132 | deps = [ |
| 133 | "../../../api/transport:network_control", |
| 134 | "../../../logging:rtc_event_log_api", |
| 135 | "../../../logging:rtc_event_pacing", |
| 136 | "../../../rtc_base:checks", |
| 137 | "../../../rtc_base:rtc_base_approved", |
Sebastian Jansson | da2ec40 | 2018-08-02 16:27:28 +0200 | [diff] [blame] | 138 | "../../../rtc_base/system:unused", |
Sebastian Jansson | b2ecc3d | 2018-07-13 17:22:01 +0200 | [diff] [blame] | 139 | "../../../system_wrappers:field_trial_api", |
| 140 | "../../../system_wrappers:metrics_api", |
| 141 | "//third_party/abseil-cpp/absl/types:optional", |
| 142 | ] |
Sebastian Jansson | b2ecc3d | 2018-07-13 17:22:01 +0200 | [diff] [blame] | 143 | } |
| 144 | |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 145 | if (rtc_include_tests) { |
Sebastian Jansson | 13171bd | 2018-07-03 18:11:45 +0200 | [diff] [blame] | 146 | rtc_source_set("test_goog_cc_printer") { |
| 147 | testonly = true |
| 148 | sources = [ |
| 149 | "test/goog_cc_printer.cc", |
| 150 | "test/goog_cc_printer.h", |
| 151 | ] |
| 152 | deps = [ |
| 153 | ":goog_cc", |
| 154 | "..:test_controller_printer", |
| 155 | ] |
| 156 | } |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 157 | rtc_source_set("goog_cc_unittests") { |
| 158 | testonly = true |
| 159 | |
| 160 | sources = [ |
| 161 | "acknowledged_bitrate_estimator_unittest.cc", |
| 162 | "alr_detector_unittest.cc", |
| 163 | "delay_based_bwe_unittest.cc", |
| 164 | "delay_based_bwe_unittest_helper.cc", |
| 165 | "delay_based_bwe_unittest_helper.h", |
Sebastian Jansson | 34ee419 | 2018-08-30 14:57:40 +0200 | [diff] [blame^] | 166 | "goog_cc_network_control_unittest.cc", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 167 | "median_slope_estimator_unittest.cc", |
| 168 | "probe_bitrate_estimator_unittest.cc", |
| 169 | "probe_controller_unittest.cc", |
| 170 | "trendline_estimator_unittest.cc", |
| 171 | ] |
| 172 | deps = [ |
Sebastian Jansson | f9f49a3 | 2018-06-25 17:56:08 +0200 | [diff] [blame] | 173 | ":alr_detector", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 174 | ":delay_based_bwe", |
| 175 | ":estimators", |
| 176 | ":goog_cc", |
Sebastian Jansson | b2ecc3d | 2018-07-13 17:22:01 +0200 | [diff] [blame] | 177 | ":probe_controller", |
Sebastian Jansson | c6c4426 | 2018-05-09 10:33:39 +0200 | [diff] [blame] | 178 | "../../../api/transport:network_control", |
| 179 | "../../../api/transport:network_control_test", |
Sebastian Jansson | 34ee419 | 2018-08-30 14:57:40 +0200 | [diff] [blame^] | 180 | "../../../logging:mocks", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 181 | "../../../rtc_base:checks", |
| 182 | "../../../rtc_base:rtc_base_approved", |
| 183 | "../../../rtc_base:rtc_base_tests_utils", |
| 184 | "../../../rtc_base/experiments:alr_experiment", |
| 185 | "../../../system_wrappers", |
| 186 | "../../../test:field_trial", |
| 187 | "../../../test:test_support", |
| 188 | "../../pacing", |
| 189 | "../../remote_bitrate_estimator", |
| 190 | "../../rtp_rtcp:rtp_rtcp_format", |
Bjorn Terelius | 0c7ec80 | 2018-07-18 14:59:56 +0200 | [diff] [blame] | 191 | "//system_wrappers:field_trial_api", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 192 | "//testing/gmock", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 193 | "//third_party/abseil-cpp/absl/memory", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 194 | ] |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 195 | } |
| 196 | } |