Reland "Deprecate microsecond timestamps in RTC event log."
This is a reland of e6ee8fab7eac915b2b6abc9b71b6d33ad086f3d1 Original change's description: > Deprecate microsecond timestamps in RTC event log. > > (Microsecond timestamps are only used in the legacy wire-format, > and the clocks only have microsecond resolution on some platforms.) > > Also convert structs on the parsing side to use a Timestamp instead > of a uint64_t to represent the log time. > > Bug: webrtc:11933 > Change-Id: Ide5a0217d99f13f2e243115b163f13e0525648c7 > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/219467 > Commit-Queue: Björn Terelius <terelius@webrtc.org> > Reviewed-by: Christoffer Rodbro <crodbro@webrtc.org> > Reviewed-by: Sebastian Jansson <srte@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#34097} Bug: webrtc:11933 Change-Id: I295be966ee96b50719ceb4690dad7e7ce958dbac Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/221361 Commit-Queue: Björn Terelius <terelius@webrtc.org> Reviewed-by: Sebastian Jansson <srte@webrtc.org> Reviewed-by: Christoffer Rodbro <crodbro@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34321}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
1bb36d2c77
commit
ada810aab2
@ -944,7 +944,7 @@ TEST_P(RtcEventLogCircularBufferTest, KeepsMostRecentEvents) {
|
||||
EXPECT_LT(probe_success_events.size(), kNumEvents);
|
||||
|
||||
ASSERT_GT(probe_success_events.size(), 1u);
|
||||
int64_t first_timestamp_us = probe_success_events[0].timestamp_us;
|
||||
int64_t first_timestamp_ms = probe_success_events[0].timestamp.ms();
|
||||
uint32_t first_id = probe_success_events[0].id;
|
||||
int32_t first_bitrate_bps = probe_success_events[0].bitrate_bps;
|
||||
// We want to reset the time to what we used when generating the events, but
|
||||
@ -953,7 +953,7 @@ TEST_P(RtcEventLogCircularBufferTest, KeepsMostRecentEvents) {
|
||||
// destroyed before the new one is created, so we have to reset() first.
|
||||
fake_clock.reset();
|
||||
fake_clock = std::make_unique<rtc::ScopedFakeClock>();
|
||||
fake_clock->SetTime(Timestamp::Micros(first_timestamp_us));
|
||||
fake_clock->SetTime(Timestamp::Millis(first_timestamp_ms));
|
||||
for (size_t i = 1; i < probe_success_events.size(); i++) {
|
||||
fake_clock->AdvanceTime(TimeDelta::Millis(10));
|
||||
verifier_.VerifyLoggedBweProbeSuccessEvent(
|
||||
|
||||
Reference in New Issue
Block a user