Add RtcEventProcessor TieBreaker for LoggedRtcpPacketSenderReport. This is needed to use the `webrtc::RtcEventProcessor` together with `LoggedRtcpPacketSenderReport`s. Bug: b/374706598 Change-Id: Ic8d5b2da8dfbf59d487b681c9d1cac49a47d1413 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/381040 Reviewed-by: Björn Terelius <terelius@webrtc.org> Auto-Submit: Rasmus Brandt <brandtr@webrtc.org> Commit-Queue: Björn Terelius <terelius@webrtc.org> Cr-Commit-Position: refs/heads/main@{#44113}
diff --git a/logging/rtc_event_log/rtc_event_processor_order.h b/logging/rtc_event_log/rtc_event_processor_order.h index 262bd10..7c2c7e8 100644 --- a/logging/rtc_event_log/rtc_event_processor_order.h +++ b/logging/rtc_event_log/rtc_event_processor_order.h
@@ -439,6 +439,20 @@ }; template <> +class TieBreaker<LoggedRtcpPacketSenderReport> { + public: + static constexpr int type_order(PacketDirection direction) { + return static_cast<int>(direction == PacketDirection::kIncomingPacket + ? TypeOrder::RtcpIn + : TypeOrder::RtcpOut); + } + static std::optional<uint16_t> transport_seq_num_accessor( + const LoggedRtcpPacketSenderReport&) { + return std::optional<uint16_t>(); + } +}; + +template <> class TieBreaker<LoggedRtcpPacketReceiverReport> { public: static constexpr int type_order(PacketDirection direction) {