tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 649a32d11467b99171e93f16bb0882da437adf4c
parent 9b907c63b115be80cb54687dcd6f8c8c441fdcba
Author: Dan Baker <dbaker@mozilla.com>
Date:   Thu, 23 Oct 2025 16:47:26 -0600

Bug 1995393 - Vendor libwebrtc from 21209d505a

Upstream commit: https://webrtc.googlesource.com/src/+/21209d505afb11c51cb0edcad4545d65d12014e9
    Add nanoseconds accessor to Timestamp

    Bug: webrtc:42223992
    Change-Id: I21f0c5b319ddf08b27462679f19cc32dc3e7923a
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/404965
    Reviewed-by: Harald Alvestrand <hta@webrtc.org>
    Commit-Queue: Harald Alvestrand <hta@webrtc.org>
    Auto-Submit: Evan Shrubsole <eshr@webrtc.org>
    Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#45364}

Diffstat:
Mthird_party/libwebrtc/README.mozilla.last-vendor | 4++--
Mthird_party/libwebrtc/api/units/timestamp.h | 4++++
Mthird_party/libwebrtc/api/units/timestamp_unittest.cc | 1+
3 files changed, 7 insertions(+), 2 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 /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc --commit mozpatches libwebrtc -libwebrtc updated from /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-10-23T22:44:00.232693+00:00. +libwebrtc updated from /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-10-23T22:47:13.640748+00:00. # base of lastest vendoring -23eec04cbd +21209d505a diff --git a/third_party/libwebrtc/api/units/timestamp.h b/third_party/libwebrtc/api/units/timestamp.h @@ -60,6 +60,10 @@ class Timestamp final : public rtc_units_impl::UnitBase<Timestamp> { constexpr T us() const { return ToValue<T>(); } + template <typename T = int64_t> + constexpr T ns() const { + return ToMultiple<1000, T>(); + } constexpr int64_t seconds_or(int64_t fallback_value) const { return ToFractionOr<1000000>(fallback_value); diff --git a/third_party/libwebrtc/api/units/timestamp_unittest.cc b/third_party/libwebrtc/api/units/timestamp_unittest.cc @@ -37,6 +37,7 @@ TEST(TimestampTest, ConstExpr) { EXPECT_EQ(kTimestampSeconds.seconds(), kValue); EXPECT_EQ(kTimestampMs.ms(), kValue); EXPECT_EQ(kTimestampUs.us(), kValue); + EXPECT_EQ(kTimestampUs.ns(), kValue * 1000); } TEST(TimestampTest, GetBackSameValues) {