src/net/third_party/quiche/src/http2/decoder/payload_decoders/priority_update_payload_decoder_test.cc
TEST_P(PriorityUpdatePayloadDecoderTest, Truncated) {
  auto approve_size = [](size_t size) {
    return size != Http2PriorityUpdateFields::EncodedSize();
  };
  Http2FrameBuilder fb;
  fb.Append(Http2PriorityUpdateFields(123));
  EXPECT_TRUE(VerifyDetectsFrameSizeError(0, fb.buffer(), approve_size));
}
// Confirm we get an error if the payload is not long enough to hold
// Http2PriorityUpdateFields.
Confirm we get an error if the payload is not long enough to hold
Http2PriorityUpdateFields.
Confirm we get an error if the payload is not long enough to hold Http2PriorityUpdateFields .
TEST_P(PriorityUpdatePayloadDecoderTest, Truncated) {
  auto approve_size = [](size_t size) {
    return size != Http2PriorityUpdateFields::EncodedSize();
  };
  Http2FrameBuilder fb;
  fb.Append(Http2PriorityUpdateFields(123));
  EXPECT_TRUE(VerifyDetectsFrameSizeError(0, fb.buffer(), approve_size));
}
TEST_P ( PriorityUpdatePayloadDecoderTest , Truncated ) { auto approve_size = [ ] ( size_t size ) { return size != Http2PriorityUpdateFields :: EncodedSize ( ) ; } ; Http2FrameBuilder fb ; fb . Append ( Http2PriorityUpdateFields ( 123 ) ) ; EXPECT_TRUE ( VerifyDetectsFrameSizeError ( 0 , fb . buffer ( ) , approve_size ) ) ; }
Confirm we get an error if the payload is not long enough to hold
Http2PriorityUpdateFields.
Confirm we get an error if the payload is not long enough to hold Http2PriorityUpdateFields .