You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.6 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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. import("../../webrtc.gni")
  9. config("bwe_test_logging") {
  10. if (rtc_enable_bwe_test_logging) {
  11. defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ]
  12. } else {
  13. defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ]
  14. }
  15. }
  16. rtc_library("congestion_controller") {
  17. visibility = [ "*" ]
  18. configs += [ ":bwe_test_logging" ]
  19. sources = [
  20. "include/receive_side_congestion_controller.h",
  21. "receive_side_congestion_controller.cc",
  22. ]
  23. deps = [
  24. "..:module_api",
  25. "../../api/transport:field_trial_based_config",
  26. "../../api/transport:network_control",
  27. "../pacing",
  28. "../remote_bitrate_estimator",
  29. "../rtp_rtcp:rtp_rtcp_format",
  30. ]
  31. if (!build_with_mozilla) {
  32. deps += [ "../../rtc_base" ]
  33. }
  34. }
  35. if (rtc_include_tests) {
  36. rtc_library("congestion_controller_unittests") {
  37. testonly = true
  38. sources = [
  39. "receive_side_congestion_controller_unittest.cc",
  40. ]
  41. deps = [
  42. ":congestion_controller",
  43. "../../system_wrappers",
  44. "../../test:test_support",
  45. "../../test/scenario",
  46. "../pacing",
  47. "bbr:bbr_unittests",
  48. "goog_cc:estimators",
  49. "goog_cc:goog_cc_unittests",
  50. "pcc:pcc_unittests",
  51. "rtp:congestion_controller_unittests",
  52. ]
  53. }
  54. }