Adds packet_size to rtc::SentPacket in testing code.

Bug: webrtc:9796
Change-Id: Id67bb02858164dba696474b1b60ebfa1597a2577
Reviewed-on: https://webrtc-review.googlesource.com/102685
Commit-Queue: Sebastian Jansson <srte@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24901}
diff --git a/test/direct_transport.cc b/test/direct_transport.cc
index 0ae0730..6aa8c91 100644
--- a/test/direct_transport.cc
+++ b/test/direct_transport.cc
@@ -72,6 +72,8 @@
   if (send_call_) {
     rtc::SentPacket sent_packet(options.packet_id,
                                 clock_->TimeInMilliseconds());
+    sent_packet.info.packet_size_bytes = length;
+    sent_packet.info.packet_type = rtc::PacketType::kData;
     send_call_->OnSentPacket(sent_packet);
   }
   SendPacket(data, length);