commit 001d694b28865a9e454c1725724aee0e3d8340f1 parent 38fd2c44b60b05dfe3a0592d3199c29dc3f3f572 Author: Michael Froman <mfroman@mozilla.com> Date: Wed, 8 Oct 2025 18:41:27 -0500 Bug 1993083 - Vendor libwebrtc from e972e87576 Upstream commit: https://webrtc.googlesource.com/src/+/e972e875763707e3c8e73f20b42fcddf1e00ac3a IWYU system_wrappers using find system_wrappers/ -name "*.cc" -o -name "*.h" | xargs tools_webrtc/iwyu/apply-include-cleaner followed by tools_webrtc/gn_check_autofix.py followed by git cl format Also replace some C style headers with their C++ equivalents Bug: webrtc:42226242 Change-Id: Ib807f8b70e90454e348d7e798f351394ee3807e7 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/398650 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Commit-Queue: Philipp Hancke <phancke@meta.com> Cr-Commit-Position: refs/heads/main@{#45074} Diffstat:
11 files changed, 36 insertions(+), 15 deletions(-)
diff --git a/third_party/libwebrtc/README.mozilla.last-vendor b/third_party/libwebrtc/README.mozilla.last-vendor @@ -1,4 +1,4 @@ # ./mach python dom/media/webrtc/third_party_build/vendor-libwebrtc.py --from-local /home/mfroman/mozilla/elm/.moz-fast-forward/moz-libwebrtc --commit mozpatches libwebrtc -libwebrtc updated from /home/mfroman/mozilla/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-10-08T23:40:10.154600+00:00. +libwebrtc updated from /home/mfroman/mozilla/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-10-08T23:41:18.001214+00:00. # base of lastest vendoring -3ca21dedef +e972e87576 diff --git a/third_party/libwebrtc/moz-patch-stack/s0044.patch b/third_party/libwebrtc/moz-patch-stack/s0044.patch @@ -77,7 +77,7 @@ index 3f738fcebc..d9536b71be 100644 // Stops future invocations of the repeating task closure. Can only be called diff --git a/system_wrappers/include/clock.h b/system_wrappers/include/clock.h -index ec4bae0aed..70b6e3aa16 100644 +index 5f1c665cfe..61af59782d 100644 --- a/system_wrappers/include/clock.h +++ b/system_wrappers/include/clock.h @@ -66,7 +66,7 @@ class RTC_EXPORT Clock { @@ -90,10 +90,10 @@ index ec4bae0aed..70b6e3aa16 100644 class SimulatedClock : public Clock { diff --git a/system_wrappers/source/clock.cc b/system_wrappers/source/clock.cc -index 0fe5abc71d..8efb1ce789 100644 +index 9290d19f4d..8b69b25362 100644 --- a/system_wrappers/source/clock.cc +++ b/system_wrappers/source/clock.cc -@@ -55,7 +55,7 @@ class RealTimeClock : public Clock { +@@ -62,7 +62,7 @@ class RealTimeClock : public Clock { } }; diff --git a/third_party/libwebrtc/moz-patch-stack/s0103.patch b/third_party/libwebrtc/moz-patch-stack/s0103.patch @@ -741,7 +741,7 @@ index a18d353a0e..bf3f51badd 100644 ] } diff --git a/system_wrappers/BUILD.gn b/system_wrappers/BUILD.gn -index 8222263e1f..913382709e 100644 +index 70d0dcb6d9..b03bcfe0f5 100644 --- a/system_wrappers/BUILD.gn +++ b/system_wrappers/BUILD.gn @@ -7,8 +7,8 @@ diff --git a/third_party/libwebrtc/system_wrappers/BUILD.gn b/third_party/libwebrtc/system_wrappers/BUILD.gn @@ -24,8 +24,10 @@ rtc_library("system_wrappers") { libs = [] deps = [ "../api:array_view", + "../api/units:time_delta", "../api/units:timestamp", "../rtc_base:checks", + "../rtc_base:divide_round", "../rtc_base:logging", "../rtc_base:rtc_numerics", "../rtc_base:safe_conversions", @@ -93,6 +95,7 @@ if (rtc_include_tests && !build_with_chromium) { ":metrics", ":system_wrappers", "../api/units:time_delta", + "../api/units:timestamp", "../rtc_base:checks", "../rtc_base:random", "../rtc_base:stringutils", diff --git a/third_party/libwebrtc/system_wrappers/include/clock.h b/third_party/libwebrtc/system_wrappers/include/clock.h @@ -11,12 +11,12 @@ #ifndef SYSTEM_WRAPPERS_INCLUDE_CLOCK_H_ #define SYSTEM_WRAPPERS_INCLUDE_CLOCK_H_ -#include <stdint.h> - #include <atomic> -#include <memory> +#include <cstdint> +#include "api/units/time_delta.h" #include "api/units/timestamp.h" +#include "rtc_base/numerics/divide_round.h" #include "rtc_base/system/rtc_export.h" #include "system_wrappers/include/ntp_time.h" diff --git a/third_party/libwebrtc/system_wrappers/include/metrics.h b/third_party/libwebrtc/system_wrappers/include/metrics.h @@ -11,9 +11,8 @@ #ifndef SYSTEM_WRAPPERS_INCLUDE_METRICS_H_ #define SYSTEM_WRAPPERS_INCLUDE_METRICS_H_ -#include <stddef.h> - #include <atomic> // IWYU pragma: keep +#include <cstddef> #include <map> #include <memory> #include <string> diff --git a/third_party/libwebrtc/system_wrappers/source/clock.cc b/third_party/libwebrtc/system_wrappers/source/clock.cc @@ -10,7 +10,14 @@ #include "system_wrappers/include/clock.h" +#include <atomic> +#include <cstdint> + +#include "api/units/time_delta.h" +#include "api/units/timestamp.h" +#include "rtc_base/checks.h" #include "rtc_base/time_utils.h" +#include "system_wrappers/include/ntp_time.h" namespace webrtc { namespace { diff --git a/third_party/libwebrtc/system_wrappers/source/clock_unittest.cc b/third_party/libwebrtc/system_wrappers/source/clock_unittest.cc @@ -10,7 +10,11 @@ #include "system_wrappers/include/clock.h" +#include <cstdint> + #include "api/units/time_delta.h" +#include "api/units/timestamp.h" +#include "system_wrappers/include/ntp_time.h" #include "test/gtest.h" namespace webrtc { diff --git a/third_party/libwebrtc/system_wrappers/source/field_trial.cc b/third_party/libwebrtc/system_wrappers/source/field_trial.cc @@ -9,20 +9,21 @@ #include "system_wrappers/include/field_trial.h" -#include <stddef.h> - +#include <cstddef> #include <map> #include <string> #include <utility> #include <vector> -#include "absl/algorithm/container.h" +#include "absl/algorithm/container.h" // IWYU pragma: keep #include "absl/strings/string_view.h" -#include "experiments/registered_field_trials.h" #include "rtc_base/checks.h" #include "rtc_base/logging.h" #include "rtc_base/string_encode.h" +// Generated file. +#include "experiments/registered_field_trials.h" // IWYU pragma: keep + // Simple field trial implementation, which allows client to // specify desired flags in InitFieldTrialsFromString. namespace webrtc { diff --git a/third_party/libwebrtc/system_wrappers/source/metrics_unittest.cc b/third_party/libwebrtc/system_wrappers/source/metrics_unittest.cc @@ -10,7 +10,11 @@ #include "system_wrappers/include/metrics.h" +#include <map> +#include <string> + #include "absl/strings/string_view.h" +#include "rtc_base/checks.h" #include "test/gmock.h" #include "test/gtest.h" diff --git a/third_party/libwebrtc/system_wrappers/source/ntp_time_unittest.cc b/third_party/libwebrtc/system_wrappers/source/ntp_time_unittest.cc @@ -10,6 +10,9 @@ #include "system_wrappers/include/ntp_time.h" +#include <cstdint> +#include <cstdlib> +#include <limits> #include <random> #include "system_wrappers/include/clock.h"