Add the byte_offset field to QuicRstStreamFrame's operator<< output. gfe-relnote: n/a - logging only PiperOrigin-RevId: 254331697 Change-Id: I3c41bf081a012de72191efbe5e232bd4ed1ac05b
diff --git a/quic/core/frames/quic_frames_test.cc b/quic/core/frames/quic_frames_test.cc index bf60b7b..3467c78 100644 --- a/quic/core/frames/quic_frames_test.cc +++ b/quic/core/frames/quic_frames_test.cc
@@ -78,11 +78,13 @@ SetControlFrameId(1, &frame); EXPECT_EQ(1u, GetControlFrameId(frame)); rst_stream.stream_id = 1; + rst_stream.byte_offset = 3; rst_stream.error_code = QUIC_STREAM_CANCELLED; std::ostringstream stream; stream << rst_stream; - EXPECT_EQ("{ control_frame_id: 1, stream_id: 1, error_code: 6 }\n", - stream.str()); + EXPECT_EQ( + "{ control_frame_id: 1, stream_id: 1, byte_offset: 3, error_code: 6 }\n", + stream.str()); EXPECT_TRUE(IsControlFrame(frame.type)); }
diff --git a/quic/core/frames/quic_rst_stream_frame.cc b/quic/core/frames/quic_rst_stream_frame.cc index 7fbf365..63cf6ea 100644 --- a/quic/core/frames/quic_rst_stream_frame.cc +++ b/quic/core/frames/quic_rst_stream_frame.cc
@@ -35,6 +35,7 @@ const QuicRstStreamFrame& rst_frame) { os << "{ control_frame_id: " << rst_frame.control_frame_id << ", stream_id: " << rst_frame.stream_id + << ", byte_offset: " << rst_frame.byte_offset << ", error_code: " << rst_frame.error_code << " }\n"; return os; }