|
|
|
@ -16,6 +16,7 @@ |
|
|
|
|
|
|
|
|
|
#include <cstdint> |
|
|
|
|
|
|
|
|
|
#include "absl/log/check.h" |
|
|
|
|
#include "absl/random/random.h" |
|
|
|
|
#include "absl/status/status.h" |
|
|
|
|
#include "absl/status/statusor.h" |
|
|
|
@ -34,7 +35,8 @@ template <typename T> |
|
|
|
|
void AssertRoundTrips(const T& input, FrameType expected_frame_type) { |
|
|
|
|
HPackCompressor hpack_compressor; |
|
|
|
|
auto serialized = input.Serialize(&hpack_compressor); |
|
|
|
|
CHECK_GE(serialized.control.Length() ,24); // Initial output buffer size is 64 byte.
|
|
|
|
|
CHECK_GE(serialized.control.Length(), |
|
|
|
|
24); // Initial output buffer size is 64 byte.
|
|
|
|
|
uint8_t header_bytes[24]; |
|
|
|
|
serialized.control.MoveFirstNBytesIntoBuffer(24, header_bytes); |
|
|
|
|
auto header = FrameHeader::Parse(header_bytes); |
|
|
|
|