src/net/third_party/quiche/src/http2/hpack/decoder/hpack_whole_entry_buffer_test.cc
TEST_F(HpackWholeEntryBufferTest, NameTooLong) {
  entry_buffer_.OnStartLiteralHeader(HpackEntryType::kIndexedLiteralHeader, 0);
  EXPECT_CALL(listener_,
              OnHpackDecodeError(HpackDecodingError::kNameTooLong, _));
  entry_buffer_.OnNameStart(false, kMaxStringSize + 1);
}
// Verify that a name longer than the allowed size generates an error.
Verify that a name longer than the allowed size generates an error.
Verify that a name longer than the allowed size generates an error .
TEST_F(HpackWholeEntryBufferTest, NameTooLong) {
  entry_buffer_.OnStartLiteralHeader(HpackEntryType::kIndexedLiteralHeader, 0);
  EXPECT_CALL(listener_,
              OnHpackDecodeError(HpackDecodingError::kNameTooLong, _));
  entry_buffer_.OnNameStart(false, kMaxStringSize + 1);
}
TEST_F ( HpackWholeEntryBufferTest , NameTooLong ) { entry_buffer_ . OnStartLiteralHeader ( HpackEntryType :: kIndexedLiteralHeader , 0 ) ; EXPECT_CALL ( listener_ , OnHpackDecodeError ( HpackDecodingError :: kNameTooLong , _ ) ) ; entry_buffer_ . OnNameStart ( false , kMaxStringSize + 1 ) ; }
Verify that a name longer than the allowed size generates an error.
Verify that a name longer than the allowed size generates an error .