Delete struct rtc::PacketTime.

Replaced by a int64_t representing time in us. To aid transition of
downstream code, rtc::PacketTime is made an alias for int64_t.

Bug: webrtc:9584
Change-Id: Ic3a5ee87d6de2aad7712894906dab074f1443df9
Reviewed-on: https://webrtc-review.googlesource.com/c/91860
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25503}
This commit is contained in:
Niels Möller
2018-11-05 13:01:41 +01:00
committed by Commit Bot
parent 007065522a
commit e693381cda
67 changed files with 232 additions and 246 deletions

View File

@ -80,7 +80,7 @@ void TestController::OnReadPacket(rtc::AsyncPacketSocket* socket,
const char* data,
size_t len,
const rtc::SocketAddress& remote_addr,
const rtc::PacketTime& packet_time) {
const int64_t& packet_time_us) {
RTC_DCHECK_RUN_ON(&test_controller_thread_checker_);
size_t packet_size = data[0];
std::string receive_data(&data[1], packet_size);
@ -109,7 +109,7 @@ void TestController::OnReadPacket(rtc::AsyncPacketSocket* socket,
break;
}
case NetworkTesterPacket::TEST_DATA: {
packet.set_arrival_timestamp(packet_time);
packet.set_arrival_timestamp(packet_time_us);
packet.set_packet_size(len);
packet_logger_.LogPacket(packet);
break;