commit df698c2d83f3fec5e743868cd2dbca9906939738
parent bf01367356c3a337e9a24d1d833cf7bade74f249
Author: Dan Baker <dbaker@mozilla.com>
Date: Thu, 23 Oct 2025 17:12:14 -0600
Bug 1995393 - Vendor libwebrtc from 5cfd38f595
Upstream commit: https://webrtc.googlesource.com/src/+/5cfd38f595b7793eafbbee8162bec10c3cfa3494
Use injected clock in test_audio_device_impl
Stops using the global clock methods from time_utils.
This CL was uploaded by an experimental version of git cl split
(https://crbug.com/389069356).
Bug: webrtc:42223992
Change-Id: Ia084aba3e8ee1a63fe06f8051fa54278f906a77d
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/404961
Auto-Submit: Evan Shrubsole <eshr@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Commit-Queue: Evan Shrubsole <eshr@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#45373}
Diffstat:
2 files changed, 3 insertions(+), 4 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-23T23:09:16.165301+00:00.
+libwebrtc updated from /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-10-23T23:12:02.260134+00:00.
# base of lastest vendoring
-a7cb662276
+5cfd38f595
diff --git a/third_party/libwebrtc/modules/audio_device/test_audio_device_impl.cc b/third_party/libwebrtc/modules/audio_device/test_audio_device_impl.cc
@@ -25,7 +25,6 @@
#include "rtc_base/checks.h"
#include "rtc_base/synchronization/mutex.h"
#include "rtc_base/task_utils/repeating_task.h"
-#include "rtc_base/time_utils.h"
namespace webrtc {
namespace {
@@ -175,7 +174,7 @@ void TestAudioDevice::ProcessAudio() {
audio_buffer_->SetRecordedBuffer(
recording_buffer_.data(),
recording_buffer_.size() / capturer_->NumChannels(),
- std::make_optional(TimeNanos()));
+ std::make_optional(env_.clock().CurrentTime().ns()));
audio_buffer_->DeliverRecordedData();
}
if (!keep_capturing) {