mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-16 07:10:38 +01:00

Since there is no way to enable/disable these diagnostics at runtime, this CL moves the suppression into the rtc_* templates in order to remove the need to explicitly add the snippet of code needed to suppress it (currently copy/pasted in 144 locations). The diagnostic that causes the most problems is the one about "complex class/struct explicit ctor/dtor" [1] because WebRTC doesn't find it useful enough. Other diagnostics are good (for example the one that warns about using "virtual" instead of "override", but that will be covered by this clang-tidy check [2]) while others are Chromium related so they have never triggered. [1] - https://cs.chromium.org/chromium/src/tools/clang/plugins/FindBadConstructsConsumer.cpp?l=147-167&rcl=b4bebe1aa15dba7ca5fcc6456a81a55665327c3a [2] - https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-override.html Bug: webrtc:163 Change-Id: Icbf27efa5b369100a31e6a32df1a0913729b3b34 Reviewed-on: https://webrtc-review.googlesource.com/c/125088 Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#26918}
242 lines
7.2 KiB
Text
242 lines
7.2 KiB
Text
# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license
|
|
# that can be found in the LICENSE file in the root of the source
|
|
# tree. An additional intellectual property rights grant can be found
|
|
# in the file PATENTS. All contributing project authors may
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
import("../../webrtc.gni")
|
|
|
|
rtc_static_library("remote_bitrate_estimator") {
|
|
visibility = [ "*" ]
|
|
sources = [
|
|
"aimd_rate_control.cc",
|
|
"aimd_rate_control.h",
|
|
"bwe_defines.cc",
|
|
"include/bwe_defines.h",
|
|
"include/remote_bitrate_estimator.h",
|
|
"inter_arrival.cc",
|
|
"inter_arrival.h",
|
|
"overuse_detector.cc",
|
|
"overuse_detector.h",
|
|
"overuse_estimator.cc",
|
|
"overuse_estimator.h",
|
|
"remote_bitrate_estimator_abs_send_time.cc",
|
|
"remote_bitrate_estimator_abs_send_time.h",
|
|
"remote_bitrate_estimator_single_stream.cc",
|
|
"remote_bitrate_estimator_single_stream.h",
|
|
"remote_estimator_proxy.cc",
|
|
"remote_estimator_proxy.h",
|
|
"test/bwe_test_logging.h",
|
|
]
|
|
|
|
if (rtc_enable_bwe_test_logging) {
|
|
defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ]
|
|
|
|
sources += [ "test/bwe_test_logging.cc" ]
|
|
} else {
|
|
defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ]
|
|
}
|
|
|
|
deps = [
|
|
"../..:webrtc_common",
|
|
"../../api:libjingle_peerconnection_api",
|
|
"../../api/units:data_rate",
|
|
"../../api/units:timestamp",
|
|
"../../modules:module_api",
|
|
"../../modules:module_api_public",
|
|
"../../modules/congestion_controller/goog_cc:link_capacity_estimator",
|
|
"../../modules/rtp_rtcp:rtp_rtcp_format",
|
|
"../../rtc_base:checks",
|
|
"../../rtc_base:rtc_base_approved",
|
|
"../../rtc_base:safe_minmax",
|
|
"../../system_wrappers",
|
|
"../../system_wrappers:field_trial",
|
|
"../../system_wrappers:metrics",
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
]
|
|
}
|
|
|
|
if (!build_with_chromium) {
|
|
rtc_source_set("bwe_rtp") {
|
|
testonly = true
|
|
sources = [
|
|
"tools/bwe_rtp.cc",
|
|
"tools/bwe_rtp.h",
|
|
]
|
|
deps = [
|
|
":remote_bitrate_estimator",
|
|
"../../rtc_base:rtc_base_approved",
|
|
"../../test:rtp_test_utils",
|
|
"../rtp_rtcp",
|
|
]
|
|
}
|
|
}
|
|
|
|
if (rtc_include_tests) {
|
|
rtc_static_library("bwe_simulator_lib") {
|
|
testonly = true
|
|
sources = [
|
|
"test/bbr_paced_sender.cc",
|
|
"test/bbr_paced_sender.h",
|
|
"test/bwe.cc",
|
|
"test/bwe.h",
|
|
"test/bwe_test.cc",
|
|
"test/bwe_test.h",
|
|
"test/bwe_test_baselinefile.cc",
|
|
"test/bwe_test_baselinefile.h",
|
|
"test/bwe_test_fileutils.cc",
|
|
"test/bwe_test_fileutils.h",
|
|
"test/bwe_test_framework.cc",
|
|
"test/bwe_test_framework.h",
|
|
"test/bwe_test_logging.h",
|
|
"test/estimators/bbr.cc",
|
|
"test/estimators/bbr.h",
|
|
"test/estimators/congestion_window.cc",
|
|
"test/estimators/congestion_window.h",
|
|
"test/estimators/max_bandwidth_filter.cc",
|
|
"test/estimators/max_bandwidth_filter.h",
|
|
"test/estimators/min_rtt_filter.cc",
|
|
"test/estimators/min_rtt_filter.h",
|
|
"test/estimators/nada.cc",
|
|
"test/estimators/nada.h",
|
|
"test/estimators/remb.cc",
|
|
"test/estimators/remb.h",
|
|
"test/estimators/send_side.cc",
|
|
"test/estimators/send_side.h",
|
|
"test/estimators/tcp.cc",
|
|
"test/estimators/tcp.h",
|
|
"test/metric_recorder.cc",
|
|
"test/metric_recorder.h",
|
|
"test/packet.cc",
|
|
"test/packet.h",
|
|
"test/packet_receiver.cc",
|
|
"test/packet_receiver.h",
|
|
"test/packet_sender.cc",
|
|
"test/packet_sender.h",
|
|
]
|
|
|
|
if (rtc_enable_bwe_test_logging) {
|
|
defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ]
|
|
} else {
|
|
defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ]
|
|
}
|
|
|
|
deps = [
|
|
":remote_bitrate_estimator",
|
|
"..:module_api",
|
|
"..:module_api_public",
|
|
"../..:webrtc_common",
|
|
"../../api:libjingle_peerconnection_api",
|
|
"../../api/transport:field_trial_based_config",
|
|
"../../api/transport:network_control",
|
|
"../../logging:mocks",
|
|
"../../rtc_base:checks",
|
|
"../../rtc_base:gtest_prod",
|
|
"../../rtc_base:rtc_base",
|
|
"../../rtc_base:rtc_base_approved",
|
|
"../../rtc_base:rtc_numerics",
|
|
"../../rtc_base:safe_minmax",
|
|
"../../rtc_base/experiments:alr_experiment",
|
|
"../../rtc_base/system:fallthrough",
|
|
"../../rtc_base/system:unused",
|
|
"../../system_wrappers",
|
|
"../../system_wrappers:field_trial",
|
|
"../../test:fileutils",
|
|
"../../test:perf_test",
|
|
"../../test:test_support",
|
|
"../bitrate_controller",
|
|
"../congestion_controller",
|
|
"../congestion_controller:transport_feedback",
|
|
"../congestion_controller/goog_cc:delay_based_bwe",
|
|
"../congestion_controller/goog_cc:estimators",
|
|
"../congestion_controller/rtp:transport_feedback",
|
|
"../pacing",
|
|
"../rtp_rtcp",
|
|
"../rtp_rtcp:rtp_rtcp_format",
|
|
"../video_coding:video_coding_utility",
|
|
"//testing/gtest",
|
|
"//third_party/abseil-cpp/absl/memory",
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
]
|
|
}
|
|
|
|
rtc_source_set("remote_bitrate_estimator_perf_tests") {
|
|
testonly = true
|
|
|
|
sources = [
|
|
"remote_bitrate_estimators_test.cc",
|
|
]
|
|
deps = [
|
|
":bwe_simulator_lib",
|
|
":remote_bitrate_estimator",
|
|
"../../rtc_base:rtc_base_approved",
|
|
"../../system_wrappers:system_wrappers",
|
|
"../../test:field_trial",
|
|
"../../test:fileutils",
|
|
"../../test:test_support",
|
|
]
|
|
}
|
|
|
|
rtc_source_set("remote_bitrate_estimator_unittests") {
|
|
testonly = true
|
|
|
|
sources = [
|
|
"aimd_rate_control_unittest.cc",
|
|
"inter_arrival_unittest.cc",
|
|
"overuse_detector_unittest.cc",
|
|
"remote_bitrate_estimator_abs_send_time_unittest.cc",
|
|
"remote_bitrate_estimator_single_stream_unittest.cc",
|
|
"remote_bitrate_estimator_unittest_helper.cc",
|
|
"remote_bitrate_estimator_unittest_helper.h",
|
|
"remote_estimator_proxy_unittest.cc",
|
|
"test/bwe_test_framework_unittest.cc",
|
|
"test/bwe_unittest.cc",
|
|
"test/estimators/congestion_window_unittest.cc",
|
|
"test/estimators/max_bandwidth_filter_unittest.cc",
|
|
"test/estimators/min_rtt_filter_unittest.cc",
|
|
"test/estimators/nada_unittest.cc",
|
|
"test/metric_recorder_unittest.cc",
|
|
]
|
|
deps = [
|
|
":bwe_simulator_lib",
|
|
":remote_bitrate_estimator",
|
|
"..:module_api_public",
|
|
"../..:webrtc_common",
|
|
"../../rtc_base:checks",
|
|
"../../rtc_base:rtc_base",
|
|
"../../rtc_base:rtc_base_approved",
|
|
"../../system_wrappers",
|
|
"../../test:field_trial",
|
|
"../../test:fileutils",
|
|
"../../test:test_support",
|
|
"../pacing:pacing",
|
|
"../rtp_rtcp:rtp_rtcp_format",
|
|
]
|
|
}
|
|
|
|
rtc_test("bwe_simulations_tests") {
|
|
testonly = true
|
|
|
|
sources = [
|
|
"bwe_simulations.cc",
|
|
]
|
|
deps = [
|
|
":bwe_simulator_lib",
|
|
":remote_bitrate_estimator",
|
|
"../..:webrtc_common",
|
|
"../../rtc_base:rtc_base_approved",
|
|
"../../system_wrappers:system_wrappers",
|
|
"../../test:fileutils",
|
|
"../../test:test_main",
|
|
"../../test:test_support",
|
|
"//testing/gtest",
|
|
]
|
|
data = [
|
|
"//resources/sprint-uplink.rx",
|
|
"//resources/verizon4g-downlink.rx",
|
|
"//resources/google-wifi-3mbps.rx",
|
|
]
|
|
}
|
|
}
|