blob: 79a1d61df2668a070bbacb1cb718b0f069278587 [file] [log] [blame]
Sebastian Janssonfc7ec8e2018-02-28 16:48:00 +01001# 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
9import("../../../webrtc.gni")
10
11config("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
19rtc_static_library("goog_cc") {
20 configs += [ ":bwe_test_logging" ]
21 sources = [
Sebastian Janssonfc7ec8e2018-02-28 16:48:00 +010022 "goog_cc_factory.cc",
23 "goog_cc_network_control.cc",
24 "goog_cc_network_control.h",
25 "include/goog_cc_factory.h",
Sebastian Janssonfc7ec8e2018-02-28 16:48:00 +010026 ]
27
Sebastian Janssonfc7ec8e2018-02-28 16:48:00 +010028 deps = [
Sebastian Janssonf9f49a32018-06-25 17:56:08 +020029 ":alr_detector",
Sebastian Janssonfc7ec8e2018-02-28 16:48:00 +010030 ":delay_based_bwe",
31 ":estimators",
Sebastian Janssonb2ecc3d2018-07-13 17:22:01 +020032 ":probe_controller",
Sebastian Janssonfc7ec8e2018-02-28 16:48:00 +010033 "../..:module_api",
34 "../../..:webrtc_common",
Sebastian Janssonc6c44262018-05-09 10:33:39 +020035 "../../../api/transport:network_control",
Sebastian Janssonfc7ec8e2018-02-28 16:48:00 +010036 "../../../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 Janssonfc7ec8e2018-02-28 16:48:00 +010045 "../../remote_bitrate_estimator",
46 "../../rtp_rtcp:rtp_rtcp_format",
Karl Wiberg918f50c2018-07-05 11:40:33 +020047 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalov0040b662018-06-18 10:48:16 +020048 "//third_party/abseil-cpp/absl/types:optional",
Sebastian Janssonfc7ec8e2018-02-28 16:48:00 +010049 ]
50}
51
Sebastian Janssonf9f49a32018-06-25 17:56:08 +020052rtc_source_set("alr_detector") {
53 sources = [
54 "alr_detector.cc",
55 "alr_detector.h",
56 ]
Sebastian Janssonf9f49a32018-06-25 17:56:08 +020057 deps = [
58 "../../..:webrtc_common",
Sebastian Janssonf9f49a32018-06-25 17:56:08 +020059 "../../../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 Wiberg918f50c2018-07-05 11:40:33 +020066 "//third_party/abseil-cpp/absl/memory",
Sebastian Janssonf9f49a32018-06-25 17:56:08 +020067 "//third_party/abseil-cpp/absl/types:optional",
68 ]
69}
Sebastian Janssonfc7ec8e2018-02-28 16:48:00 +010070rtc_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 Janssonfc7ec8e2018-02-28 16:48:00 +010089 deps = [
Sebastian Janssonfc7ec8e2018-02-28 16:48:00 +010090 "../../../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 Wiberg12edf4c2018-03-07 14:18:56 +010095 "../../../rtc_base:safe_minmax",
Sebastian Janssonfc7ec8e2018-02-28 16:48:00 +010096 "../../../system_wrappers:field_trial_api",
97 "../../../system_wrappers:metrics_api",
98 "../../remote_bitrate_estimator",
99 "../../rtp_rtcp:rtp_rtcp_format",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200100 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200101 "//third_party/abseil-cpp/absl/types:optional",
Sebastian Janssonfc7ec8e2018-02-28 16:48:00 +0100102 ]
103}
104
105rtc_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 Janssonfc7ec8e2018-02-28 16:48:00 +0100114 "../../../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 Wiberg918f50c2018-07-05 11:40:33 +0200122 "//third_party/abseil-cpp/absl/memory",
Sebastian Janssonfc7ec8e2018-02-28 16:48:00 +0100123 ]
Sebastian Janssonfc7ec8e2018-02-28 16:48:00 +0100124}
125
Sebastian Janssonb2ecc3d2018-07-13 17:22:01 +0200126rtc_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 Janssonda2ec402018-08-02 16:27:28 +0200138 "../../../rtc_base/system:unused",
Sebastian Janssonb2ecc3d2018-07-13 17:22:01 +0200139 "../../../system_wrappers:field_trial_api",
140 "../../../system_wrappers:metrics_api",
141 "//third_party/abseil-cpp/absl/types:optional",
142 ]
Sebastian Janssonb2ecc3d2018-07-13 17:22:01 +0200143}
144
Sebastian Janssonfc7ec8e2018-02-28 16:48:00 +0100145if (rtc_include_tests) {
Sebastian Jansson13171bd2018-07-03 18:11:45 +0200146 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 Janssonfc7ec8e2018-02-28 16:48:00 +0100157 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 Jansson34ee4192018-08-30 14:57:40 +0200166 "goog_cc_network_control_unittest.cc",
Sebastian Janssonfc7ec8e2018-02-28 16:48:00 +0100167 "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 Janssonf9f49a32018-06-25 17:56:08 +0200173 ":alr_detector",
Sebastian Janssonfc7ec8e2018-02-28 16:48:00 +0100174 ":delay_based_bwe",
175 ":estimators",
176 ":goog_cc",
Sebastian Janssonb2ecc3d2018-07-13 17:22:01 +0200177 ":probe_controller",
Sebastian Janssonc6c44262018-05-09 10:33:39 +0200178 "../../../api/transport:network_control",
179 "../../../api/transport:network_control_test",
Sebastian Jansson34ee4192018-08-30 14:57:40 +0200180 "../../../logging:mocks",
Sebastian Janssonfc7ec8e2018-02-28 16:48:00 +0100181 "../../../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 Terelius0c7ec802018-07-18 14:59:56 +0200191 "//system_wrappers:field_trial_api",
Sebastian Janssonfc7ec8e2018-02-28 16:48:00 +0100192 "//testing/gmock",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200193 "//third_party/abseil-cpp/absl/memory",
Sebastian Janssonfc7ec8e2018-02-28 16:48:00 +0100194 ]
Sebastian Janssonfc7ec8e2018-02-28 16:48:00 +0100195 }
196}