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 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_library("control_handler") { 20 visibility = [ "*" ] 21 sources = [ 22 "control_handler.cc", 23 "control_handler.h", 24 ] 25 26 deps = [ 27 "../../../api/transport:network_control", 28 "../../../api/units:data_rate", 29 "../../../api/units:data_size", 30 "../../../api/units:time_delta", 31 "../../../rtc_base:checks", 32 "../../../rtc_base:safe_minmax", 33 "../../../rtc_base/synchronization:sequence_checker", 34 "../../../system_wrappers:field_trial", 35 "../../pacing", 36 ] 37 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] 38 39 if (!build_with_mozilla) { 40 deps += [ "../../../rtc_base" ] 41 } 42} 43rtc_library("transport_feedback") { 44 visibility = [ "*" ] 45 sources = [ 46 "transport_feedback_adapter.cc", 47 "transport_feedback_adapter.h", 48 "transport_feedback_demuxer.cc", 49 "transport_feedback_demuxer.h", 50 ] 51 52 deps = [ 53 "../..:module_api_public", 54 "../../../api/transport:network_control", 55 "../../../api/units:data_size", 56 "../../../api/units:timestamp", 57 "../../../rtc_base", 58 "../../../rtc_base:checks", 59 "../../../rtc_base:rtc_base_approved", 60 "../../../rtc_base/network:sent_packet", 61 "../../../rtc_base/synchronization:mutex", 62 "../../../system_wrappers", 63 "../../../system_wrappers:field_trial", 64 "../../rtp_rtcp:rtp_rtcp_format", 65 ] 66 absl_deps = [ 67 "//third_party/abseil-cpp/absl/algorithm:container", 68 "//third_party/abseil-cpp/absl/types:optional", 69 ] 70} 71 72if (rtc_include_tests) { 73 rtc_library("congestion_controller_unittests") { 74 testonly = true 75 76 sources = [ 77 "transport_feedback_adapter_unittest.cc", 78 "transport_feedback_demuxer_unittest.cc", 79 ] 80 deps = [ 81 ":transport_feedback", 82 "../:congestion_controller", 83 "../../../api/transport:network_control", 84 "../../../logging:mocks", 85 "../../../rtc_base", 86 "../../../rtc_base:checks", 87 "../../../rtc_base:rtc_base_approved", 88 "../../../rtc_base/network:sent_packet", 89 "../../../system_wrappers", 90 "../../../test:field_trial", 91 "../../../test:test_support", 92 "../../pacing", 93 "../../remote_bitrate_estimator", 94 "../../rtp_rtcp:rtp_rtcp_format", 95 "//testing/gmock", 96 ] 97 } 98} 99