NetEq: Introduce TickTimer in DelayPeakDetector
Specifically, this change replaces peak_period_counter_ms_ with peak_period_stopwatch_ which obtains a Stopwatch object from TickTimer. Necessary plumbing to get the TickTimer through to the DelayPeakDetector is also included. BUG=webrtc:5608 NOTRY=True Review-Url: https://codereview.webrtc.org/1921163003 Cr-Commit-Position: refs/heads/master@{#12542}
This commit is contained in:
committed by
Commit bot
parent
bebf54cad1
commit
f393370f02
@ -81,7 +81,8 @@ class NetEqImplTest : public ::testing::Test {
|
||||
decoder_database_ = deps.decoder_database.get();
|
||||
|
||||
if (use_mock_delay_peak_detector_) {
|
||||
std::unique_ptr<MockDelayPeakDetector> mock(new MockDelayPeakDetector);
|
||||
std::unique_ptr<MockDelayPeakDetector> mock(
|
||||
new MockDelayPeakDetector(tick_timer_));
|
||||
mock_delay_peak_detector_ = mock.get();
|
||||
EXPECT_CALL(*mock_delay_peak_detector_, Reset()).Times(1);
|
||||
deps.delay_peak_detector = std::move(mock);
|
||||
|
||||
Reference in New Issue
Block a user