Clean up QuicPacketCreatorTest. gfe-relnote: n/a. test only. PiperOrigin-RevId: 276096857 Change-Id: I34982aac4a59e4270834eace35aee1223c086283
diff --git a/quic/core/frames/quic_stream_frame.cc b/quic/core/frames/quic_stream_frame.cc index b9413c7..c7626d3 100644 --- a/quic/core/frames/quic_stream_frame.cc +++ b/quic/core/frames/quic_stream_frame.cc
@@ -43,4 +43,10 @@ return os; } +bool QuicStreamFrame::operator==(const QuicStreamFrame& rhs) const { + return fin == rhs.fin && data_length == rhs.data_length && + stream_id == rhs.stream_id && data_buffer == rhs.data_buffer && + offset == rhs.offset; +} + } // namespace quic
diff --git a/quic/core/frames/quic_stream_frame.h b/quic/core/frames/quic_stream_frame.h index 6cd510d..5e7439d 100644 --- a/quic/core/frames/quic_stream_frame.h +++ b/quic/core/frames/quic_stream_frame.h
@@ -31,6 +31,8 @@ friend QUIC_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, const QuicStreamFrame& s); + bool operator==(const QuicStreamFrame& rhs) const; + bool fin; QuicPacketLength data_length; QuicStreamId stream_id;