From 5f83cf0c6d842352d8e017321f0223aefebb1bef Mon Sep 17 00:00:00 2001 From: Sebastian Jansson Date: Tue, 8 May 2018 14:52:22 +0200 Subject: Replacing rtc::TimeDelta with webrtc::TimeDelta. This removes the redundant type and replaces all usages. A slight change in behavior is that we no longer get nanosecond resolution. This should not matter since no current code requires nanosecond resolution. Bug: webrtc:9155 Change-Id: I04334e08c686d95731621a6c8a7e40400d0ae3b2 Reviewed-on: https://webrtc-review.googlesource.com/71163 Commit-Queue: Sebastian Jansson Reviewed-by: Karl Wiberg Cr-Commit-Position: refs/heads/master@{#23174} --- audio/audio_send_stream_unittest.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'audio/audio_send_stream_unittest.cc') diff --git a/audio/audio_send_stream_unittest.cc b/audio/audio_send_stream_unittest.cc index 8fb7e7e197..d39912000c 100644 --- a/audio/audio_send_stream_unittest.cc +++ b/audio/audio_send_stream_unittest.cc @@ -12,6 +12,7 @@ #include #include +#include "api/units/time_delta.h" #include "audio/audio_send_stream.h" #include "audio/audio_state.h" #include "audio/conversion.h" @@ -28,7 +29,6 @@ #include "rtc_base/fakeclock.h" #include "rtc_base/ptr_util.h" #include "rtc_base/task_queue.h" -#include "rtc_base/timedelta.h" #include "test/gtest.h" #include "test/mock_audio_encoder.h" #include "test/mock_audio_encoder_factory.h" @@ -545,8 +545,7 @@ TEST(AudioSendStreamTest, UpdateLifetime) { EXPECT_CALL(mock_transport, SendRtp(_, _, _)).Times(2); const PacketOptions options; registered_transport->SendRtp(nullptr, 0, options); - fake_clock.AdvanceTime( - rtc::TimeDelta::FromMilliseconds(kTimeBetweenSendRtpCallsMs)); + fake_clock.AdvanceTime(TimeDelta::ms(kTimeBetweenSendRtpCallsMs)); registered_transport->SendRtp(nullptr, 0, options); } EXPECT_TRUE(!helper.active_lifetime()->Empty()); -- cgit v1.2.3