Make Clock::ConvertTimestampToNtpTime pure virtual

No-Try because of lack of infra lack of capacity on macs.

No-Try: True
Bug: webrtc:11327
Change-Id: I9296bb92fdd62800da3ddd80789164c80350577d
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/219782
Commit-Queue: Paul Hallak <phallak@google.com>
Reviewed-by: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#34073}
This commit is contained in:
Paul Hallak
2021-05-21 07:31:52 +02:00
committed by WebRTC LUCI CQ
parent e93fe6c532
commit 2491dbdf0b

View File

@ -47,11 +47,7 @@ class RTC_EXPORT Clock {
int64_t CurrentNtpInMilliseconds() { return CurrentNtpTime().ToMs(); }
// Converts between a relative timestamp returned by this clock, to NTP time.
// TODO(bugs.webrtc.org/11327): Make this method pure virtual,
// and delete default dummy implementation.
virtual NtpTime ConvertTimestampToNtpTime(Timestamp timestamp) {
return NtpTime();
}
virtual NtpTime ConvertTimestampToNtpTime(Timestamp timestamp) = 0;
int64_t ConvertTimestampToNtpTimeInMilliseconds(int64_t timestamp_ms) {
return ConvertTimestampToNtpTime(Timestamp::Millis(timestamp_ms)).ToMs();
}