QuicStreamPriority refactor
Create QuicStreamPriority class in a dedicated build target, move parsing and
serializing functions and their tests together. Consolidate constants like
minimum, maximum and default values, and structured header dictionary keys "u"
and "i", and re-use them in both the parsing and serializing methods (previously
ParsePriorityFieldValue() had these values hardcoded).
https://github.com/google/quiche/issues/25
PiperOrigin-RevId: 494755193
diff --git a/build/source_list.bzl b/build/source_list.bzl
index 4d627c1..76eb89b 100644
--- a/build/source_list.bzl
+++ b/build/source_list.bzl
@@ -328,6 +328,7 @@
"quic/core/quic_stream.h",
"quic/core/quic_stream_frame_data_producer.h",
"quic/core/quic_stream_id_manager.h",
+ "quic/core/quic_stream_priority.h",
"quic/core/quic_stream_send_buffer.h",
"quic/core/quic_stream_sequencer.h",
"quic/core/quic_stream_sequencer_buffer.h",
@@ -650,6 +651,7 @@
"quic/core/quic_socket_address_coder.cc",
"quic/core/quic_stream.cc",
"quic/core/quic_stream_id_manager.cc",
+ "quic/core/quic_stream_priority.cc",
"quic/core/quic_stream_send_buffer.cc",
"quic/core/quic_stream_sequencer.cc",
"quic/core/quic_stream_sequencer_buffer.cc",
@@ -1226,6 +1228,7 @@
"quic/core/quic_session_test.cc",
"quic/core/quic_socket_address_coder_test.cc",
"quic/core/quic_stream_id_manager_test.cc",
+ "quic/core/quic_stream_priority_test.cc",
"quic/core/quic_stream_send_buffer_test.cc",
"quic/core/quic_stream_sequencer_buffer_test.cc",
"quic/core/quic_stream_sequencer_test.cc",